[EMAIL PROTECTED] wrote: >
As Derick said.
Previous Comments: ------------------------------------------------------------------------
[2004-01-02 05:56:39] [EMAIL PROTECTED]
I don't think that anything is broken here. You just can't have a
conditional class definition (just like you can't instantiate a class
before it's declared anymore).
Is there absolutely no way to keep this, apart from the example below, It will probably break a huge number of not amazingly well written scripts......
The code below is a nasty enough kludge to deal with overload method changes, but removing support for conditional classes makes it even worse.. - either an eval or include I guess........
if ( substr(phpversion(),0,1) == 5) { class DB_DataObject_Overload { function __call($method,$args) { $return = null; $this->_call($method,$args,$return); return $return; } } } else { class DB_DataObject_Overload { function __call($method,$args,&$return) { return $this->_call($method,$args,$return);; } }
}
Regards Alan
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php