xref: /php-src/Zend/tests/031.phpt (revision 9c144e0d)
1--TEST--
2Testing array with '[]' passed as argument by value
3--FILE--
4<?php
5
6function test($var) { }
7test($arr[]);
8
9?>
10--EXPECTF--
11Fatal error: Cannot use [] for reading in %s on line %d
12