xref: /PHP-7.0/Zend/tests/031.phpt (revision e4c76641)
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