RE: [PHP-DEV] overload extension

From: Date: Wed, 22 Oct 2003 23:43:34 +0000
Subject: RE: [PHP-DEV] overload extension
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-4930@lists.php.net to get a copy of this message
Hi, > The methods of an object that has been passed to the overload() > function lose their ability to have parameters passed by > reference. For > example: > > class Foo > { > function hello(&$array) > { > $array[] = "hello"; > } > } > > $array = null; > $foo = & new foo(); > $foo->hello($array); > print_r($array) > > Output: > Array > ( > [0] => hello > ) > > class Foo extends PEAR_Autoloader > { > function hello(&$array) > { > $array[] = "hello"; > } > } > > $array = null; > $foo = & new foo(); > $foo->hello($array); > print_r($array) > > Output: > > Nothing! I'm not into this topic, but I suppose you should send a bug report about it (visit http://bugs.php.net and enter info there). This should then enable the php internal people to refer to that bug when fixing the problem and committing the changes needed. Regards Dennis

« previous php.internals (#4930) next »