mirror of
https://github.com/php/php-src.git
synced 2024-12-19 06:50:17 +08:00
be7eab3202
Op2 is def here, not a use, so treat it accordingly.
13 lines
238 B
PHP
13 lines
238 B
PHP
--TEST--
|
|
FE_FETCH op2 is a def and needs special live range handling
|
|
--FILE--
|
|
<?php
|
|
try {
|
|
foreach (["test"] as $k => func()[]) {}
|
|
} catch (Error $e) {
|
|
echo $e->getMessage(), "\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
Call to undefined function func()
|