Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:275 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20673 invoked from network); 25 Mar 2003 16:49:58 -0000 Received: from unknown (HELO mail.communityconnect.com) (209.10.169.57) by pb1.pair.com with SMTP; 25 Mar 2003 16:49:58 -0000 Received: from amavis by mail.communityconnect.com with scanned-ok (Exim 3.20 #1) id 18xrcb-0005ll-00 for internals@lists.php.net; Tue, 25 Mar 2003 11:49:57 -0500 Received: from [192.168.2.240] (helo=dhcp-101-50.hq.communityconnect.com) by mail.communityconnect.com with esmtp (Exim 3.20 #1) id 18xrcY-0005k2-00 for internals@lists.php.net; Tue, 25 Mar 2003 11:49:54 -0500 Date: Tue, 25 Mar 2003 11:50:00 -0500 (EST) X-X-Sender: dan@dhcp-101-50.hq.communityconnect.com To: internals@lists.php.net Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: ternary expr/reference bug? From: dan@mail.communityconnect.com (Daniel Cowgill) Referring to bug #12247 (http://bugs.php.net/bug.php?id=12247): Is this bug really "bogus"? The argument that the ternary expression should deep-copy reference values precisely because it's an expression doesn't hold water: "$x" and "foo()" are expressions. I'm curious whether others have run across this problem and what they think of it. It strikes me as non-orthogonal and quite surprising (I can't think of another programming language which exhibits similar behavior).