blob: b8c263c424cf4832317bacfc3efb32a1f1a21e82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
--TEST--
Throwing undef var in verify return
--FILE--
<?php
set_error_handler(function(int $severity, string $message, string $filename, int $lineNumber): void {
throw new ErrorException($message, 0, $severity, $filename, $lineNumber);
});
function test(): string {
return $test;
}
test();
?>
--EXPECTF--
Fatal error: Uncaught ErrorException: Undefined variable $test in %s:%d
Stack trace:
#0 %s(%d): {closure}(2, 'Undefined varia...', '%s', 8)
#1 %s(%d): test()
#2 {main}
thrown in %s on line %d
|