]> granicus.if.org Git - php/commitdiff
tests for 60169
authorXinchen Hui <laruence@php.net>
Sun, 30 Oct 2011 06:28:24 +0000 (06:28 +0000)
committerXinchen Hui <laruence@php.net>
Sun, 30 Oct 2011 06:28:24 +0000 (06:28 +0000)
Zend/tests/bug60169.phpt [new file with mode: 0755]

diff --git a/Zend/tests/bug60169.phpt b/Zend/tests/bug60169.phpt
new file mode 100755 (executable)
index 0000000..047c24f
--- /dev/null
@@ -0,0 +1,12 @@
+--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;
+echo "ok\n";
+--EXPECT--
+ok