php-src/Zend/tests/bug80030.phpt
2020-08-31 12:38:11 +02:00

20 lines
408 B
PHP

--TEST--
Bug #80030: Optimizer segfault with isset on static property with undef dynamic class name
--FILE--
<?php
function test() {
var_dump(isset($className::$test));
}
test();
?>
--EXPECTF--
Warning: Undefined variable $className in %s on line %d
Fatal error: Uncaught Error: Class name must be a valid object or a string in %s:%d
Stack trace:
#0 %s(%d): test()
#1 {main}
thrown in %s on line %d