Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:5742 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15183 invoked by uid 1010); 27 Nov 2003 10:33:28 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 15114 invoked from network); 27 Nov 2003 10:33:27 -0000 Received: from unknown (HELO mail.zend.com) (192.117.235.230) by pb1.pair.com with SMTP; 27 Nov 2003 10:33:27 -0000 Received: (qmail 6627 invoked from network); 27 Nov 2003 10:33:25 -0000 Received: from guardian.zend.office (HELO andi-laptop.zend.com) (10.1.1.4) by int.zend.com with SMTP; 27 Nov 2003 10:33:25 -0000 Message-ID: <5.1.0.14.2.20031127123209.02a61918@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Thu, 27 Nov 2003 12:33:22 +0200 To: Christian Schneider ,internals@lists.php.net In-Reply-To: <20031127100027.67912.qmail@pb1.pair.com> References: <5.1.0.14.2.20031126172833.06829bb8@127.0.0.1> <5.1.0.14.2.20031126172833.06829bb8@127.0.0.1> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] Re: Compatibility problems with PHP 5 From: andi@zend.com (Andi Gutmans) At 11:00 AM 11/27/2003 +0100, Christian Schneider wrote: >Andi Gutmans wrote: >>issues and many of them might be solvable (using the already existing >>compatibility mode for object cloning or by other means). > >Could we please, please, please have a way of cloning objects which works >in both versions? I'd like to use the new semantics as soon as it's >available (no compatibility mode) but still be able to run my application >on PHP4. > >See my posting about the need for a clone() function. I didn't get an >answer there so I wonder how everyone else is dealing with this issue. You can use the zend2.implicit_clone INI directive (change it at run-time if you want at the beginning of the application). Andi