Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7481 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54667 invoked by uid 1010); 2 Feb 2004 18:31:10 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 54633 invoked from network); 2 Feb 2004 18:31:10 -0000 Received: from unknown (HELO smtprelay01.ispgateway.de) (62.67.200.156) by pb1.pair.com with SMTP; 2 Feb 2004 18:31:10 -0000 Received: (qmail 11521 invoked from network); 2 Feb 2004 18:31:08 -0000 Received: from unknown (HELO heinz-ruediger) (126482@[212.202.104.234]) (envelope-sender ) by smtprelay01.ispgateway.de (qmail-ldap-1.03) with SMTP for ; 2 Feb 2004 18:31:08 -0000 To: zeev@zend.com, internals@lists.php.net Date: Mon, 02 Feb 2004 19:32:20 +0100 MIME-Version: 1.0 Message-ID: <401EA5C4.16597.9DB0E8@localhost> Priority: normal In-reply-to: <5.1.0.14.2.20040202143324.05bb27a0@localhost> References: <20040122143711.23632.qmail@pb1.pair.com> X-mailer: Pegasus Mail for Windows (v4.12a) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Subject: Re: [PHP-DEV] __clone() implementation From: fb@fbeyer.com ("Ferdinand Beyer") On 2 Feb 2004 at 14:36, Zeev Suraski wrote: > Clone methods must now be declared as follows: > function __clone($that) > { > } I just had a look at zend_compile.c - it seems as if the variable name $that was mandantory: [...] || strcmp(CG(active_op_array)->arg_info[0].name, "that")!=0)) { zend_error(E_COMPILE_ERROR, "The clone method must be declared as __clone($that)"); [...] Why shouldn't I be able to name it as I want, e.g. $clone? Don't understand the reason for that... -- Ferdinand Beyer