ID: 16621 Updated by: [EMAIL PROTECTED] -Summary: different ?: operator precedence then in C Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Feature/Change Request Operating System: linux PHP Version: 4.1.2 New Comment:
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). Previous Comments: ------------------------------------------------------------------------ [2002-04-15 10:00:43] [EMAIL PROTECTED] 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 this bug report at http://bugs.php.net/?id=16621&edit=1