Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7860 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6345 invoked by uid 1010); 16 Feb 2004 02:14:18 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 6309 invoked from network); 16 Feb 2004 02:14:17 -0000 Received: from unknown (HELO imf25aec.mail.bellsouth.net) (205.152.59.73) by pb1.pair.com with SMTP; 16 Feb 2004 02:14:17 -0000 Received: from [192.168.1.109] ([68.18.73.208]) by imf25aec.mail.bellsouth.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with ESMTP id <20040216021417.NZXF23866.imf25aec.mail.bellsouth.net@[192.168.1.109]> for ; Sun, 15 Feb 2004 21:14:17 -0500 Mime-Version: 1.0 (Apple Message framework v612) In-Reply-To: <82437074406.20040216020453@marcus-boerger.de> References: <6428860843.20040215234759@marcus-boerger.de> <9D7B9586-6018-11D8-8178-000393030CE6@bellsouth.net> <1435934703.20040216014553@marcus-boerger.de> <82437074406.20040216020453@marcus-boerger.de> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-ID: Content-Transfer-Encoding: 7bit Date: Sun, 15 Feb 2004 21:14:16 -0500 To: PHP Development X-Mailer: Apple Mail (2.612) Subject: Re: [PHP-DEV] clone wars From: lingwitt@bellsouth.net (Herr Witten) Here, I have reproduced the problem: class A { var $a = array(); public function makeAReference() { $array = $this->getA(); } public function &getA() { return $this->a; } } $A = new A; $A->a = array(1); $A->makeAReference(); $clone = clone $A; $clone->a = array(); print_r($A); Try it with an without $A->makeAReference() I sent in a report. Thanks. On 15 Feb 2004, at 8:04 PM, Marcus Boerger wrote: > Ok, so you are sure var_dump() doesn't show the & for the property in > question? If so i would need to know where exactly the array comes > from. > And the best way to proceed tehn is to create a bug report with a short > reproducing script.