Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23986 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52199 invoked by uid 1010); 8 Jun 2006 01:19:51 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 52184 invoked from network); 8 Jun 2006 01:19:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jun 2006 01:19:51 -0000 X-PHP-List-Original-Sender: ceo@l-i-e.com X-Host-Fingerprint: 67.139.134.202 o2.hostbaby.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from ([67.139.134.202:3350] helo=o2.hostbaby.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id F3/0E-00946-63B77844 for ; Wed, 07 Jun 2006 21:19:51 -0400 Received: (qmail 79189 invoked by uid 98); 8 Jun 2006 01:19:51 -0000 Received: from 127.0.0.1 by o2.hostbaby.com (envelope-from , uid 1013) with qmail-scanner-1.25 ( Clear:RC:1(127.0.0.1):. Processed in 0.070064 secs); 08 Jun 2006 01:19:51 -0000 X-Qmail-Scanner-Mail-From: ceo@l-i-e.com via o2.hostbaby.com X-Qmail-Scanner: 1.25 (Clear:RC:1(127.0.0.1):. Processed in 0.070064 secs) Received: from unknown (HELO l-i-e.com) (127.0.0.1) by localhost with SMTP; 8 Jun 2006 01:19:51 -0000 Received: from 67.108.68.36 (SquirrelMail authenticated user ceo@l-i-e.com) by www.l-i-e.com with HTTP; Wed, 7 Jun 2006 20:19:51 -0500 (CDT) Message-ID: <64088.67.108.68.36.1149729591.squirrel@www.l-i-e.com> In-Reply-To: <286CF0DE-43A7-4987-8AE4-97FEE62A1A5A@prohost.org> References: <286CF0DE-43A7-4987-8AE4-97FEE62A1A5A@prohost.org> Date: Wed, 7 Jun 2006 20:19:51 -0500 (CDT) To: "Ilia Alshanetsky" Cc: internals@lists.php.net Reply-To: ceo@l-i-e.com User-Agent: Hostbaby Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP-DEV] Clone Operations From: ceo@l-i-e.com ("Richard Lynch") On Wed, June 7, 2006 8:56 am, Ilia Alshanetsky wrote: > When it comes to "empty" clone statements, should they be executed > and then free the result (current behavior) or avoid clone all > together. > For example when class x { function __clone() { echo "hello"; } } > clone new x(); code is executed, should it print hello or not print > anything at all, treating the clone operation as a NOOP? > > Current behavior calls clone and then frees the result, meaning that > "hello" is printed, but I am uncertain that this is the correct > behavior, any comments? Seems to me that if they want echo "hello"; on __clone() for debugging, we shouldn't cripple it... [shrug] -- Like Music? http://l-i-e.com/artists.htm