#47004 [NEW]: Erratic short conditionals
From: am at webhike dot de
Operating system: XAMPP 1.6.8
PHP version: 5.2.8
PHP Bug Type: *Programming Data Structures
Bug description: Erratic short conditionals
Description:
------------
Using Short Conditionals with more lines is causing wrong results:
Reproduce code:
---------------
$x = 7;
echo
$x == 5 ? 'five' :
$x == 6 ? 'six' :
$x == 7 ? 'seven' :
$x == 8 ? 'eight' :
$x == 9 ? 'nine' :
null;
Actual result:
--------------
Returns 'nine'. Multiline Short Conditionals fail.
--
Edit bug report at http://bugs.php.net/?id=47004&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47004&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47004&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47004&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=47004&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47004&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=47004&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=47004&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=47004&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=47004&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=47004&r=support
Expected behavior: http://bugs.php.net/fix.php?id=47004&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=47004&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=47004&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=47004&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47004&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=47004&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=47004&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=47004&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=47004&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=47004&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=47004&r=mysqlcfg
Thread (3 messages)
- am at webhike dot de