File tree Expand file tree Collapse file tree 7 files changed +27
-6
lines changed Expand file tree Collapse file tree 7 files changed +27
-6
lines changed Original file line number Diff line number Diff line change 6
6
. Fixed bug #76846 (Segfault in shutdown function after memory limit error).
7
7
(Nikita)
8
8
. Fixed bug #76946 (Cyclic reference in generator not detected). (Nikita)
9
+ . Fixed bug #72635 (Undefined class used by class constant in constexpr
10
+ generates fatal error). (Nikita)
9
11
10
12
27 Sep 2018, PHP 7.3.0RC2
11
13
Original file line number Diff line number Diff line change @@ -9,4 +9,8 @@ function f($a=Foo::bar) {
9
9
echo f ()."\n" ;
10
10
?>
11
11
--EXPECTF--
12
- Fatal error: Class 'Foo\Foo' not found in %sbug43344_3.php on line %d
12
+ Fatal error: Uncaught Error: Class 'Foo\Foo' not found in %s:%d
13
+ Stack trace:
14
+ #0 %s(%d): Foo\f()
15
+ #1 {main}
16
+ thrown in %s on line %d
Original file line number Diff line number Diff line change @@ -9,4 +9,8 @@ function f($a=array(Foo::bar)) {
9
9
echo f ()."\n" ;
10
10
?>
11
11
--EXPECTF--
12
- Fatal error: Class 'Foo\Foo' not found in %sbug43344_4.php on line %d
12
+ Fatal error: Uncaught Error: Class 'Foo\Foo' not found in %s:%d
13
+ Stack trace:
14
+ #0 %s(%d): Foo\f()
15
+ #1 {main}
16
+ thrown in %s on line %d
Original file line number Diff line number Diff line change @@ -10,4 +10,8 @@ function f($a=array(Foo::bar=>0)) {
10
10
echo f ()."\n" ;
11
11
?>
12
12
--EXPECTF--
13
- Fatal error: Class 'Foo\Foo' not found in %sbug43344_5.php on line %d
13
+ Fatal error: Uncaught Error: Class 'Foo\Foo' not found in %s:%d
14
+ Stack trace:
15
+ #0 %s(%d): Foo\f()
16
+ #1 {main}
17
+ thrown in %s on line %d
Original file line number Diff line number Diff line change 28
28
int(5)
29
29
int(10)
30
30
31
- Fatal error: Class 'NoSuchClass' not found in %s on line %d
31
+ Fatal error: Uncaught Error: Class 'NoSuchClass' not found in %s:%d
32
+ Stack trace:
33
+ #0 %s(%d): bar()
34
+ #1 {main}
35
+ thrown in %s on line %d
Original file line number Diff line number Diff line change @@ -8033,7 +8033,7 @@ void zend_compile_const_expr_class_const(zend_ast **ast_ptr) /* {{{ */
8033
8033
zend_ast_destroy (ast );
8034
8034
zend_string_release_ex (class_name , 0 );
8035
8035
8036
- * ast_ptr = zend_ast_create_constant (name , fetch_type );
8036
+ * ast_ptr = zend_ast_create_constant (name , fetch_type | ZEND_FETCH_CLASS_EXCEPTION );
8037
8037
}
8038
8038
/* }}} */
8039
8039
Original file line number Diff line number Diff line change @@ -10,4 +10,7 @@ Class constant whose initial value references a non-existent class
10
10
$ a = new C ();
11
11
?>
12
12
--EXPECTF--
13
- Fatal error: Class 'D' not found in %s on line %d
13
+ Fatal error: Uncaught Error: Class 'D' not found in %s:%d
14
+ Stack trace:
15
+ #0 {main}
16
+ thrown in %s on line %d
You can’t perform that action at this time.
0 commit comments