Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:278 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84805 invoked from network); 25 Mar 2003 20:40:25 -0000 Received: from unknown (HELO bimba.bezeqint.net) (192.115.106.39) by pb1.pair.com with SMTP; 25 Mar 2003 20:40:25 -0000 Received: from mr2.bezeqint.net (pip-17.bezeqint.net [192.115.106.17]) by bimba.bezeqint.net (Bezeq International SMTP out Mail Server) with ESMTP id 24ED56F6 for ; Tue, 25 Mar 2003 22:36:43 +0200 (IST) Received: from mail.zend.com (bzq-117-235-230.cust.bezeqint.net [192.117.235.230]) by mr2.bezeqint.net (Mirapoint Messaging Server MOS 3.3.3-GR) with SMTP id AVC71791; Tue, 25 Mar 2003 22:26:09 +0200 (IST) Received: (qmail 31318 invoked from network); 25 Mar 2003 20:26:00 -0000 Received: from localhost (HELO andi-laptop.zend.com) (127.0.0.1) by localhost with SMTP; 25 Mar 2003 20:26:00 -0000 Message-ID: <5.1.0.14.2.20030325222459.036d0ea0@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Tue, 25 Mar 2003 22:27:01 +0200 To: Daniel Cowgill , internals@lists.php.net In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] ternary expr/reference bug? From: andi@zend.com (Andi Gutmans) References: It's not "really" bogus but it's the way PHP behaves. Don't expect this to change. Basically like the bug report states, references both when returned from functions and using the =& operator work only on variables. ?: is considered an expression including ++$var and so on... Andi At 11:50 AM 3/25/2003 -0500, Daniel Cowgill wrote: >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). > > > > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php