Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48333 invoked from network); 20 Mar 2003 09:54:43 -0000 Received: from unknown (HELO mailimailo.univ-rennes1.fr) (129.20.131.1) by pb1.pair.com with SMTP; 20 Mar 2003 09:54:43 -0000 Received: from localhost (localhost [127.0.0.1]) by mailimailo.univ-rennes1.fr (Postfix) with ESMTP id EBAC5D68 for ; Thu, 20 Mar 2003 09:54:42 +0000 (MET) Received: from winzedesk (radioM.univ-rennes1.fr [129.20.82.51]) by mailimailo.univ-rennes1.fr (Postfix) with SMTP id CCA34E3D for ; Thu, 20 Mar 2003 10:54:40 +0100 (MET) Message-ID: <001c01c2eec6$700cd660$fd64a8c0@winzedesk> To: Date: Thu, 20 Mar 2003 10:52:36 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0019_01C2EECE.D1B6FFA0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Virus-Scanned: by AMaViS snapshot-20020300 Subject: Pb __clone method crash From: fabrice.lecoz@zedesk.com ("Fabrice Le Coz") ------=_NextPart_000_0019_01C2EECE.D1B6FFA0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, return of the __clone() method crash. name =3D $name; } =20 function __clone() { echo "cloning ...\n"; $this->name =3D "test ".$that->name; } } $test =3D new test("essai"); $test1 =3D $test; $test2 =3D $test->__clone(); $test1->name =3D "arthur"; echo "test : $test->name\n"; echo "test2 : $test2->name\n"; ?> -- expect -- cloning ... test : arthur test2 : test essai -- result -- cloning ... php crash AppName: php.exe AppVer: 5.0.0.0 ModName: php4ts.dll ModVer: 5.0.0.0=20 Offset: 000ee8a5 ------=_NextPart_000_0019_01C2EECE.D1B6FFA0--