Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:4934 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89848 invoked by uid 1010); 23 Oct 2003 00:45:04 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 89805 invoked from network); 23 Oct 2003 00:45:04 -0000 Received: from unknown (HELO alanathome.ossc.com.hk) (202.81.246.113) by pb1.pair.com with SMTP; 23 Oct 2003 00:45:04 -0000 Received: from [192.168.0.40] (helo=akbkhome.com ident=alan) by alanathome.ossc.com.hk with esmtp (Exim 4.22) id 1ACTdj-0007fJ-8k; Thu, 23 Oct 2003 08:47:47 +0800 Message-ID: <3F97253A.9010505@akbkhome.com> Date: Thu, 23 Oct 2003 08:47:54 +0800 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5b) Gecko/20030909 X-Accept-Language: en-us, en MIME-Version: 1.0 To: LingWitt@insightbb.com CC: internals@lists.php.net References: <215B2C89-04E8-11D8-A4F7-000393030CE6@insightbb.com> In-Reply-To: <215B2C89-04E8-11D8-A4F7-000393030CE6@insightbb.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] overload extension From: alan@akbkhome.com (Alan Knowles) There is already a bug report on it, however It sounds like it's unlikely to be fixed in PHP4... Regards Alan LingWitt@insightbb.com wrote: > 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! > -- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com