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