|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-01-05 11:10 UTC] jani@php.net
[2009-01-05 21:01 UTC] am at webhike dot de
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 16:00:01 2025 UTC |
Description: ------------ Using Short Conditionals with more lines is causing wrong results: Reproduce code: --------------- $x = 7; echo $x == 5 ? 'five' : $x == 6 ? 'six' : $x == 7 ? 'seven' : $x == 8 ? 'eight' : $x == 9 ? 'nine' : null; Actual result: -------------- Returns 'nine'. Multiline Short Conditionals fail.