Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7853 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40150 invoked by uid 1010); 15 Feb 2004 22:47:54 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 40118 invoked from network); 15 Feb 2004 22:47:54 -0000 Received: from unknown (HELO shiva.mind.de) (212.42.230.204) by pb1.pair.com with SMTP; 15 Feb 2004 22:47:54 -0000 Received: from [192.168.1.100] (p508EAAA4.dip.t-dialin.net [80.142.170.164]) by shiva.mind.de (Postfix) with ESMTP id 38F8097B59; Sun, 15 Feb 2004 23:47:48 +0100 (CET) Date: Sun, 15 Feb 2004 23:47:59 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <6428860843.20040215234759@marcus-boerger.de> To: Herr Witten Cc: PHP Development In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] clone wars From: helly@php.net (Marcus Boerger) Hello, most probably that property is a reference in which case the result is correct. Sunday, February 15, 2004, 11:45:56 PM, you wrote: > It appears that cloning is broken, since a modification to the clone > modifies the original. For my __clone method implementation, I allow > all of the variables to be set by default except for one. But this > problem persists even when I don't modify that one variable. -- Best regards, Marcus mailto:helly@php.net