summaryrefslogtreecommitdiff
path: root/Zend/tests/bug80030.phpt
blob: cf5a668345ce537256278bae722a4190518907ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--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