summaryrefslogtreecommitdiff
path: root/Zend/tests/ternary_associativity_1.phpt
blob: 87dc3972d2407ddb66baef18142c1767c706e138 (plain)
1
2
3
4
5
6
7
8
9
10
--TEST--
Forbidden nested ternary, case 1
--FILE--
<?php

1 ? 2 : 3 ? 4 : 5;

?>
--EXPECTF--
Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in %s on line %d