mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
7aacc705d0
Closes GH-5958
13 lines
234 B
PHP
13 lines
234 B
PHP
--TEST--
|
|
Bug #60169 (Conjunction of ternary and list crashes PHP)
|
|
--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
|