mirror of
https://github.com/php/php-src.git
synced 2026-10-28 17:56:50 +08:00
16 lines
288 B
PHP
16 lines
288 B
PHP
--TEST--
|
|
FETCH_DIM_FUNC_ARG that cannot be optimized to FETCH_DIM_R because it appends
|
|
--FILE--
|
|
<?php
|
|
function test($x) {
|
|
test($x[][$y]);
|
|
}
|
|
try {
|
|
test([]);
|
|
} catch (Throwable $e) {
|
|
echo $e::class, ': ', $e->getMessage(), "\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
Error: Cannot use [] for reading
|