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