php-src/Zend/tests/bug60169.phpt
2012-10-10 10:31:53 +08:00

12 lines
231 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