xref: /PHP-7.0/Zend/tests/bug60169.phpt (revision 45e938ec)
1--TEST--
2Bug #60169 (Conjunction of ternary and list crashes PHP)
3--FILE--
4<?php
5error_reporting(0);
6$arr  = array("test");
7list($a,$b) = is_array($arr)? $arr : $arr;
8list($c,$d) = is_array($arr)?: NULL;
9echo "ok\n";
10--EXPECT--
11ok
12