1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/Zend/tests/bug60169.phpt
Máté Kocsis 7aacc705d0 Add many missing closing PHP tags to tests
Closes GH-5958
2020-08-09 22:03:36 +02:00

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