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/bug79828.phpt
2020-07-13 09:55:13 +02:00

18 lines
393 B
PHP

--TEST--
Bug #79828: Segfault when trying to access non-existing variable
--FILE--
<?php
function foo(): AnyType {
return $uninitialized;
}
foo();
?>
--EXPECTF--
Warning: Undefined variable $uninitialized in %s on line %d
Fatal error: Uncaught TypeError: foo(): Return value must be of type AnyType, null returned in %s:%d
Stack trace:
#0 %s(%d): foo()
#1 {main}
thrown in %s on line %d