Bug #16621: different ?: operator precedence then in C

From: Date: Mon, 15 Apr 2002 14:00:43 +0000
Subject: Bug #16621: different ?: operator precedence then in C
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-5026@lists.php.net to get a copy of this message
From: pete@ana.sk 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

« previous php.bugs (#5026) next »