mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
19 lines
300 B
PHP
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
|