diff options
Diffstat (limited to 'Zend/tests/031.phpt')
-rw-r--r-- | Zend/tests/031.phpt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Zend/tests/031.phpt b/Zend/tests/031.phpt new file mode 100644 index 0000000..8db52a5 --- /dev/null +++ b/Zend/tests/031.phpt @@ -0,0 +1,11 @@ +--TEST-- +Testing array with '[]' passed as argument by value +--FILE-- +<?php + +function test($var) { } +test($arr[]); + +?> +--EXPECTF-- +Fatal error: Cannot use [] for reading in %s on line %d |