Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30097 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69052 invoked by uid 1010); 5 Jun 2007 22:16:13 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 69037 invoked from network); 5 Jun 2007 22:16:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jun 2007 22:16:13 -0000 Authentication-Results: pb1.pair.com smtp.mail=pstradomski@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pstradomski@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 66.249.92.171 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pstradomski@gmail.com X-Host-Fingerprint: 66.249.92.171 ug-out-1314.google.com Linux 2.4/2.6 Received: from [66.249.92.171] ([66.249.92.171:18184] helo=ug-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1B/C1-33808-DA0E5664 for ; Tue, 05 Jun 2007 18:16:13 -0400 Received: by ug-out-1314.google.com with SMTP id m2so331057uge for ; Tue, 05 Jun 2007 15:16:10 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:reply-to:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=B11MmIbWxwV/5KWqDLOIgLsPaWMWRr3fk7l3O8zetIqxPt3xiVPEClc5Fv4xr0QceSGFpcUTxNAoDsNjETyXNxpYrtLphcuAgKLXe4EILV7s/z8f9wlnMFG6aOHlTR9o8YFglt2NN3tBI1I1T+p9V1PpynBLSeekElSl0Y8H4Pc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:reply-to:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=EWHGiXoq6gZownTka4RaZX6wpUuIqybCjoIFszRr+dQjOI93viH0mHmII8dIoTZytK791b9hHE3EqEetVL5c4tduPoWAiXyi6LO0gsZRoRrNciQTlASSXgyGn58fyYmyXCU3ZHvtZConkcZlwSLx2WZRkhs+DnbyslD1wKQRvyo= Received: by 10.82.136.4 with SMTP id j4mr9326104bud.1181081769679; Tue, 05 Jun 2007 15:16:09 -0700 (PDT) Received: from deimos ( [195.136.196.130]) by mx.google.com with ESMTP id 31sm2309135nfu.2007.06.05.15.16.07; Tue, 05 Jun 2007 15:16:08 -0700 (PDT) Reply-To: =?iso-8859-2?q?Pawe=B3_Stradomski?= To: internals@lists.php.net Date: Wed, 6 Jun 2007 00:15:51 +0200 User-Agent: KMail/1.9.7 References: <4665D15F.2040501@cyanox.nl> In-Reply-To: <4665D15F.2040501@cyanox.nl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-ID: <200706060015.51543.pstradomski@gmail.com> Subject: Re: [PHP-DEV] Recursive classes ... possible bug? From: pstradomski@gmail.com (=?iso-8859-2?q?Pawe=B3_Stradomski?=) mark@cyanox.nl wrote: > Dear internals, > > I stumbled upon the following odd error message from PHP which I was not > expecting. > function test(){ > echo $this =3D=3D $this->c1->c2?'equals':'not equals'; // Somehow this Use =3D=3D=3D (shallow test - returns true iff the variables refer to the s= ame=20 instance) instead of =3D=3D (deep comparision - member-by-member). AFAIK this behaviour was introduced in 5.2 or 5.1 - well, just another BC=20 break. =2D-=20 Pawe=B3 Stradomski