mirror of
https://github.com/php/php-src.git
synced 2024-09-23 02:47:26 +00:00
14 lines
275 B
PHP
Executable File
14 lines
275 B
PHP
Executable File
--TEST--
|
|
Bug #60169 (Conjunction of ternary and list crashes PHP)
|
|
--XFAIL--
|
|
See Bug #60169, doesn't fixed yet
|
|
--FILE--
|
|
<?php
|
|
error_reporting(0);
|
|
$arr = array("test");
|
|
list($a,$b) = is_array($arr)? $arr : $arr;
|
|
list($c,$d) = is_array($arr)?: NULL;
|
|
echo "ok\n";
|
|
--EXPECT--
|
|
ok
|