summaryrefslogtreecommitdiff
path: root/Zend/tests/031.phpt
blob: 116a0e8f2c5d47d1be51ffc79983cad73b88d774 (plain)
1
2
3
4
5
6
7
8
9
10
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