mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
2e29817005
This can happen if a call is optimized, but FETCH_DIM_FUNC_ARG cannot be converted to FETCH_DIM_R because it uses an UNUSED op2, which is not supported by FETCH_DIM_R. Fixes oss-fuzz 6144185837682688.
16 lines
260 B
PHP
16 lines
260 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 (Error $e) {
|
|
echo $e->getMessage(), "\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
Cannot use [] for reading
|