From:             [EMAIL PROTECTED]
Operating system: linux
PHP version:      4.1.2
PHP Bug Type:     Feature/Change Request
Bug description:  different ?: operator precedence then in C

Maybe its intentional, but i think that it would be best to have some
consitence with C.
1 ? "A" : 1 ? "B" : "C"
return "A" in C (since ?: is associated from right to left)
but it returns "B" in  PHP (since its left to right).

-- 
Edit bug report at http://bugs.php.net/?id=16621&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=16621&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=16621&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=16621&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=16621&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16621&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=16621&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=16621&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=16621&r=submittedtwice

Reply via email to