#22611 [NEW]: ? : operator precedence is wrong

From: Date: Sat, 08 Mar 2003 19:46:47 +0000
Subject: #22611 [NEW]: ? : operator precedence is wrong
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-35128@lists.php.net to get a copy of this message
From: pts+phpbug at math dot bme dot hu Operating system: Linux PHP version: 4.3.1 PHP Bug Type: Zend Engine 2 problem Bug description: ? : operator precedence is wrong <?php echo 1 ? 2 : 3 ? 4 : 5; # ^^^ should echo 2', but echoes 4' in PHP 4.3.1 -- Edit bug report at http://bugs.php.net/?id=22611&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22611&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22611&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22611&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22611&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22611&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22611&r=support Expected behavior: http://bugs.php.net/fix.php?id=22611&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22611&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22611&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22611&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22611&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22611&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22611&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22611&r=gnused

« previous php.bugs (#35128) next »