📄 Viewing: fixedarray_013.phpt

--TEST--
SPL: FixedArray: Passing the object using [] as parameter
--FILE--
<?php

$a = new SplFixedArray(100);


function test(SplFixedArray &$arr) {
	print "ok\n";
}

try {
	test($a[]);
} catch (Exception $e) {
	echo $e->getMessage(), "\n";
}

?>
--EXPECT--
Index invalid or out of range

🌑 DarkStealth — WP Plugin Edition

Directory: /usr/src/php-7.4.23/ext/spl/tests