|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-01-08 09:12 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
[2018-01-08 09:12 UTC] requinix@php.net
[2018-01-08 09:13 UTC] haseeb dot basil at gmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 18:00:01 2025 UTC |
Description: ------------ Hello, today I discovered bug (I think) which occurs in parsing shorthand ifs. It happens when we use shorthand if in shorthand if without braces. Test script: --------------- <?php echo (true ? "a" : (false) ? "b" : "c"); //Output is: `b` instead of `a`. //Java and C# tells it's `a` ?> Expected result: ---------------- to see letter `a` Actual result: -------------- b