1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/Zend/tests/frameless_undefined_var.phpt
Ilija Tovilo 631bc81607 Implement stackless internal function calls
Co-authored-by: Dmitry Stogov <dmitry@zend.com>

Closes GH-12461
2024-02-06 17:42:28 +01:00

19 lines
300 B
PHP

--TEST--
Undefined var in frameless call
--FILE--
<?php
set_error_handler(function ($errno, $errstr) {
throw new Exception($errstr);
});
function test() {
strpos($foo, 'o');
}
try {
test();
} catch (Exception $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
Undefined variable $foo