Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:5604 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81931 invoked by uid 1010); 20 Nov 2003 07:23:39 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 81907 invoked from network); 20 Nov 2003 07:23:39 -0000 Received: from unknown (HELO mail.zend.com) (192.117.235.230) by pb1.pair.com with SMTP; 20 Nov 2003 07:23:39 -0000 Received: (qmail 30157 invoked from network); 20 Nov 2003 07:23:37 -0000 Received: from guardian.zend.office (HELO andi-laptop.zend.com) (10.1.1.4) by int.zend.com with SMTP; 20 Nov 2003 07:23:37 -0000 Message-ID: <5.1.0.14.2.20031120092251.01d21e88@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Thu, 20 Nov 2003 09:23:35 +0200 To: Sebastian Bergmann ,internals@lists.php.net Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] allow_call_time_pass_reference From: andi@zend.com (Andi Gutmans) I think it should stay the way it is (except for the bug). It should print a warning when people use it and the default allow_call_time_pass_reference directive is off. Andi At 07:52 AM 11/20/2003 +0100, Sebastian Bergmann wrote: > I am wondering what should happen to the > > allow_call_time_pass_reference > > php.ini directive. > > The following code, for instance, prints no warning with PHP 5 but with > PHP 4. > > error_reporting(E_ALL); > > class Foo { > function bar($foobar) {} > } > > $a = new Foo; > $b = new Foo; > > $a->bar(&$b); > ?> > > I think the allow_call_time_pass_reference directive should be > removed as it is no longer needed. > >-- >Sebastian Bergmann >http://sebastian-bergmann.de/ http://phpOpenTracker.de/ > >Das Buch zu PHP 5: http://professionelle-softwareentwicklung-mit-php5.de/ > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php