@ -9,4 +9,8 @@ function f($a=Foo::bar) {
echo f()."\n";
?>
--EXPECTF--
Fatal error: Class 'Foo\Foo' not found in %sbug43344_3.php on line %d
Fatal error: Uncaught Error: Class 'Foo\Foo' not found in %s:%d
Stack trace:
#0 %s(%d): Foo\f()
#1 {main}
thrown in %s on line %d
@ -9,4 +9,8 @@ function f($a=array(Foo::bar)) {
Fatal error: Class 'Foo\Foo' not found in %sbug43344_4.php on line %d
@ -10,4 +10,8 @@ function f($a=array(Foo::bar=>0)) {
Fatal error: Class 'Foo\Foo' not found in %sbug43344_5.php on line %d
@ -28,4 +28,8 @@ int(1)
int(5)
int(10)
Fatal error: Class 'NoSuchClass' not found in %s on line %d
Fatal error: Uncaught Error: Class 'NoSuchClass' not found in %s:%d
#0 %s(%d): bar()
@ -7929,7 +7929,7 @@ void zend_compile_const_expr_class_const(zend_ast **ast_ptr) /* {{{ */
zend_ast_destroy(ast);
zend_string_release_ex(class_name, 0);
*ast_ptr = zend_ast_create_constant(name, fetch_type);
*ast_ptr = zend_ast_create_constant(name, fetch_type | ZEND_FETCH_CLASS_EXCEPTION);
}
/* }}} */
@ -10,4 +10,7 @@ Class constant whose initial value references a non-existent class
$a = new C();
Fatal error: Class 'D' not found in %s on line %d
Fatal error: Uncaught Error: Class 'D' not found in %s:%d
#0 {main}