mirror of
https://github.com/php/php-src.git
synced 2026-04-10 09:33:06 +02:00
Deprecate nesting ternary operators without explicit parentheses. RFC: https://wiki.php.net/rfc/ternary_associativity
13 lines
329 B
PHP
13 lines
329 B
PHP
--TEST--
|
|
Bug #72944 (Null pointer deref in zval_delref_p).
|
|
--FILE--
|
|
<?php
|
|
("a"== e & $A = $A? 0 : 0) ?:0;
|
|
echo "OK\n";
|
|
?>
|
|
--EXPECTF--
|
|
Warning: Use of undefined constant e - assumed 'e' (this will throw an Error in a future version of PHP) in %sbug72944.php on line 2
|
|
|
|
Notice: Undefined variable: A in %sbug72944.php on line 2
|
|
OK
|