ternary expr/reference bug?

From: Date: Tue, 25 Mar 2003 16:50:00 +0000
Subject: ternary expr/reference bug?
Groups: php.internals 
Request: Send a blank email to internals+get-275@lists.php.net to get a copy of this message
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).

« previous php.internals (#275) next »