Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:2553 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64336 invoked from network); 22 Jun 2003 18:18:45 -0000 Received: from unknown (HELO mail.bauer-kirch.de) (80.237.234.121) by pb1.pair.com with SMTP; 22 Jun 2003 18:18:45 -0000 Received: (qmail 21502 invoked from network); 22 Jun 2003 18:19:30 -0000 Received: from somewhere (IP somewhere) by mail.bauer-kirch.de with SMTP; 22 Jun 2003 18:19:30 -0000 Date: Sun, 22 Jun 2003 20:23:16 +0200 To: Sterling Hughes Cc: internals@lists.php.net Message-ID: <20030622182316.GB11778@martinjansen.com> References: <1056304763.6262.5.camel@hasele> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1056304763.6262.5.camel@hasele> User-Agent: Mutt/1.5.3i Subject: Re: [PHP-DEV] implicit_clone From: mj@php.net (Martin Jansen) On Sun Jun 22, 2003 at 01:5924PM -0400, Sterling Hughes wrote: > I think we should remove this ini option in favor of a function that > does the same thing. This way implicit_clone() is not globally > settable, but is settable per script. Something in the way of a: > > pragma_set('implicit_clone', true); > > Which would turn on implicit_clone for the current script (current > portion of code.) Sounds like a good idea for me, especially when taking into account that pragma_set() can be called within a auto_prepend-file, which makes it pretty easy to add "backwards compatibility" to a whole project without much work. -- - Martin Martin Jansen http://martinjansen.com/