summaryrefslogtreecommitdiff
path: root/Zend/tests/bug60169.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug60169.phpt')
-rw-r--r--Zend/tests/bug60169.phpt11
1 files changed, 11 insertions, 0 deletions
diff --git a/Zend/tests/bug60169.phpt b/Zend/tests/bug60169.phpt
new file mode 100644
index 0000000000..f97574191c
--- /dev/null
+++ b/Zend/tests/bug60169.phpt
@@ -0,0 +1,11 @@
+--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