ru_php/Zend/tests/frameless_undefined_var.phpt

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