Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:4948 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81109 invoked by uid 1010); 23 Oct 2003 21:47:20 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 81085 invoked from network); 23 Oct 2003 21:47:20 -0000 Received: from unknown (HELO sccmmhc02.asp.att.net) (204.127.203.184) by pb1.pair.com with SMTP; 23 Oct 2003 21:47:20 -0000 Received: from insightbb.com (12-223-87-232.client.insightbb.com[12.223.87.232]) by sccmmhc02.asp.att.net (sccmmhc02) with SMTP id <20031023214719mm2003c6c2e>; Thu, 23 Oct 2003 21:47:20 +0000 Date: Wed, 22 Oct 2003 23:09:36 -0400 Content-Type: text/plain; charset=US-ASCII; format=flowed Resent-Date: Thu, 23 Oct 2003 17:47:19 -0400 Content-Transfer-Encoding: 7bit Resent-Message-Id: <556F9740-0506-11D8-A8BB-000393030CE6@insightbb.com> Resent-To: internals@lists.php.net Mime-Version: 1.0 (Apple Message framework v552) To: internals@lists.php.net Message-ID: <79F8BD1A-05A2-11D8-8546-000393030CE6@insightbb.com> Resent-From: LingWitt@insightbb.com X-Mailer: Apple Mail (2.552) Subject: Re: [PHP-DEV] overload extension From: LingWitt@insightbb.com This may be where the problem: zend_get_parameters_array_ex(ZEND_NUM_ARGS(), args); Would this do the trick? zend_get_parameters_array(ZEND_NUM_ARGS(), args); On Wednesday, Oct 22, 2003, at 20:47 America/New_York, Alan Knowles wrote: > 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 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >