diff options
Diffstat (limited to 'Zend/tests/bug72441.phpt')
-rw-r--r-- | Zend/tests/bug72441.phpt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Zend/tests/bug72441.phpt b/Zend/tests/bug72441.phpt new file mode 100644 index 0000000000..af57b3adb0 --- /dev/null +++ b/Zend/tests/bug72441.phpt @@ -0,0 +1,14 @@ +--TEST-- +Bug #72441 (Segmentation fault: RFC list_keys) +--FILE-- +<?php + +$array = []; + +list( + '' => $foo, + $bar +) = $array; +?> +--EXPECTF-- +Fatal error: Cannot mix keyed and unkeyed array entries in assignments in %sbug72441.php on line %d |