Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23977 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64195 invoked by uid 1010); 7 Jun 2006 13:56:51 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 64180 invoked from network); 7 Jun 2006 13:56:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Jun 2006 13:56:51 -0000 X-PHP-List-Original-Sender: iliaal@gmail.com X-Host-Fingerprint: 64.233.184.227 wr-out-0506.google.com Linux 2.4/2.6 Received: from ([64.233.184.227:38878] helo=wr-out-0506.google.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id A2/9F-00946-22BD6844 for ; Wed, 07 Jun 2006 09:56:50 -0400 Received: by wr-out-0506.google.com with SMTP id 67so380209wri for ; Wed, 07 Jun 2006 06:56:48 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer:sender; b=gDCUu8BPe8shlq1DHLQkrSykFdnaTRx2GExXx0ozu9WvxlSGRjqXco2jtB0SNwFAPU2Q33tAfFyjmhnN1x/DEyRWd+nJymPtSvVyJC7cR7AYwoAFzwvmdmQ3hxdnk6jxbc5NN5EeUKEHeD2O0qNSBZKvtku6kRw8MWuHR8rydpU= Received: by 10.65.204.8 with SMTP id g8mr409237qbq; Wed, 07 Jun 2006 06:56:47 -0700 (PDT) Received: from ?192.168.1.6? ( [72.59.8.142]) by mx.gmail.com with ESMTP id e14sm203670qba.2006.06.07.06.56.47; Wed, 07 Jun 2006 06:56:47 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v750) Content-Transfer-Encoding: 7bit Message-ID: <286CF0DE-43A7-4987-8AE4-97FEE62A1A5A@prohost.org> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: internals@lists.php.net Date: Wed, 7 Jun 2006 09:56:44 -0400 X-Mailer: Apple Mail (2.750) Sender: Ilia Alshanetsky Subject: Clone Operations From: ilia@prohost.org (Ilia Alshanetsky) 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? Ilia Alshanetsky