[PHP-DEV] Bug #12566 Updated: Cascaded ternaries evaluate incorrectly

2001-08-04 Thread jeroen
ID: 12566 Updated by: jeroen Reported By: [EMAIL PROTECTED] Status: Open Bug Type: *Programming Data Structures Operating System: Linux PHP Version: 4.0.6 New Comment: Confirmed in latest CVS: --- echo TRUE ? 'one' : TRUE ? 'two' : 'unknown'; = two --- echo TRUE ? 'one' : FALSE ? 'two' :

[PHP-DEV] Bug #12566 Updated: Cascaded ternaries evaluate incorrectly

2001-08-04 Thread jeroen
ID: 12566 Updated by: jeroen Reported By: [EMAIL PROTECTED] Status: Open Bug Type: *Programming Data Structures Operating System: Linux PHP Version: 4.0.6 New Comment: [EMAIL PROTECTED]: It's not a bug, but a feature. :) PHP has the inverse associativity of ?: compared to C (and every

Re: [PHP-DEV] Bug #12566 Updated: Cascaded ternaries evaluate incorrectly

2001-08-04 Thread Jeroen van Wolffelaar
See some messages I had on php-dev back around the first week of January, 2001 on this topic. FWIW, I would like to change it. On http://marc.theaimsgroup.com/?w=4r=1s=trachtenbergq=a , I could only find messages about break/continue in switch statements... Am I overlooking something? Of did