Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:4928 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80853 invoked by uid 1010); 22 Oct 2003 23:33:26 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 80819 invoked from network); 22 Oct 2003 23:33:26 -0000 Received: from unknown (HELO sccmmhc02.asp.att.net) (204.127.203.184) by pb1.pair.com with SMTP; 22 Oct 2003 23:33:26 -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 <20031022233326mm2003c1tbe>; Wed, 22 Oct 2003 23:33:26 +0000 Date: Wed, 22 Oct 2003 19:33:24 -0400 Mime-Version: 1.0 (Apple Message framework v552) Content-Type: text/plain; charset=US-ASCII; format=flowed To: internals@lists.php.net Content-Transfer-Encoding: 7bit Message-ID: <215B2C89-04E8-11D8-A4F7-000393030CE6@insightbb.com> X-Mailer: Apple Mail (2.552) Subject: overload extension From: LingWitt@insightbb.com 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!