diff --git a/Zend/tests/019.phpt b/Zend/tests/019.phpt index bab02dd565d50..3cdbf5b3d33b2 100644 --- a/Zend/tests/019.phpt +++ b/Zend/tests/019.phpt @@ -357,7 +357,7 @@ bool(true) bool(true) bool(true) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -369,7 +369,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -381,7 +381,7 @@ bool(true) bool(true) bool(true) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -393,7 +393,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -405,7 +405,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -417,7 +417,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -429,7 +429,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -441,7 +441,7 @@ bool(true) bool(true) bool(true) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -453,7 +453,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -465,7 +465,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -477,7 +477,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -489,7 +489,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -501,7 +501,7 @@ bool(true) bool(true) bool(true) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -513,7 +513,7 @@ bool(true) bool(true) bool(true) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -525,7 +525,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -537,7 +537,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -549,7 +549,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -561,7 +561,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -573,7 +573,7 @@ bool(true) bool(true) bool(true) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -585,7 +585,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -597,7 +597,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -609,7 +609,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -621,7 +621,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -633,7 +633,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -645,7 +645,7 @@ bool(true) bool(true) bool(true) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -657,7 +657,7 @@ bool(true) bool(true) bool(false) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -669,7 +669,7 @@ bool(true) bool(true) bool(true) -Warning: Undefined variable $scalar_var in %s on line %d +Warning: Undefined variable $scalar_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -686,7 +686,7 @@ bool(true) bool(true) bool(true) -Warning: Undefined variable $array_var in %s on line %d +Warning: Undefined variable $array_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -702,18 +702,18 @@ bool(true) array(0) { } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(0) { } -Warning: Undefined variable $array_var in %s on line %d +Warning: Undefined variable $array_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -729,18 +729,18 @@ bool(true) array(0) { } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(0) { } -Warning: Undefined variable $array_var in %s on line %d +Warning: Undefined variable $array_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -756,18 +756,18 @@ bool(true) array(0) { } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(0) { } -Warning: Undefined variable $array_var in %s on line %d +Warning: Undefined variable $array_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -783,18 +783,18 @@ bool(true) array(0) { } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(0) { } -Warning: Undefined variable $array_var in %s on line %d +Warning: Undefined variable $array_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -816,13 +816,13 @@ array(3) { int(4) } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(3) { [1]=> @@ -840,13 +840,13 @@ array(2) { int(4) } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(2) { [2]=> @@ -860,13 +860,13 @@ array(1) { int(4) } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(1) { [3]=> @@ -876,18 +876,18 @@ array(1) { array(0) { } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(0) { } -Warning: Undefined variable $array_var in %s on line %d +Warning: Undefined variable $array_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -907,13 +907,13 @@ array(2) { float(5.6) } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(2) { [1]=> @@ -927,13 +927,13 @@ array(1) { float(5.6) } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(1) { [2]=> @@ -943,18 +943,18 @@ array(1) { array(0) { } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(0) { } -Warning: Undefined variable $array_var in %s on line %d +Warning: Undefined variable $array_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -972,13 +972,13 @@ array(1) { string(3) "two" } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(1) { [2]=> @@ -988,18 +988,18 @@ array(1) { array(0) { } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(0) { } -Warning: Undefined variable $array_var in %s on line %d +Warning: Undefined variable $array_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -1017,13 +1017,13 @@ array(1) { string(2) "30" } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(1) { ["Age"]=> @@ -1033,18 +1033,18 @@ array(1) { array(0) { } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(0) { } -Warning: Undefined variable $array_var in %s on line %d +Warning: Undefined variable $array_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -1068,13 +1068,13 @@ array(4) { string(0) "" } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(4) { [1]=> @@ -1096,13 +1096,13 @@ array(3) { string(0) "" } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(3) { ["One"]=> @@ -1120,13 +1120,13 @@ array(2) { string(0) "" } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(2) { [2]=> @@ -1140,13 +1140,13 @@ array(1) { string(0) "" } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(1) { [""]=> @@ -1156,18 +1156,18 @@ array(1) { array(0) { } -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $key_val in %s on line %d +Warning: Undefined variable $key_val (this will become an error in PHP 9.0) in %s on line %d bool(true) array(0) { } -Warning: Undefined variable $array_var in %s on line %d +Warning: Undefined variable $array_var (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) @@ -1185,7 +1185,7 @@ bool(true) bool(false) bool(false) -Warning: Undefined variable $resource in %s on line %d +Warning: Undefined variable $resource (this will become an error in PHP 9.0) in %s on line %d NULL -- Iteration 2 -- resource(%d) of type (stream) @@ -1198,10 +1198,10 @@ bool(true) bool(false) bool(false) -Warning: Undefined variable $resource in %s on line %d +Warning: Undefined variable $resource (this will become an error in PHP 9.0) in %s on line %d NULL -Warning: Undefined variable $resources in %s on line %d +Warning: Undefined variable $resources (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(true) @@ -1218,16 +1218,16 @@ object(Point)#%d (3) { bool(true) bool(false) -Warning: Undefined variable $lable in %s on line %d +Warning: Undefined variable $lable (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $lable in %s on line %d +Warning: Undefined variable $lable (this will become an error in PHP 9.0) in %s on line %d bool(true) -Warning: Undefined variable $lable in %s on line %d +Warning: Undefined variable $lable (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $lable in %s on line %d +Warning: Undefined variable $lable (this will become an error in PHP 9.0) in %s on line %d bool(true) object(Point)#%d (3) { ["x"]=> @@ -1252,7 +1252,7 @@ bool(false) bool(false) bool(true) -Warning: Undefined variable $point1 in %s on line %d +Warning: Undefined variable $point1 (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(true) @@ -1282,7 +1282,7 @@ value of static_var before unset: 1 bool(true) bool(false) -Warning: Undefined variable $static_var in %s on line %d +Warning: Undefined variable $static_var (this will become an error in PHP 9.0) in %s on line %d value of static_var after unset: bool(false) bool(true) @@ -1291,7 +1291,7 @@ value of static_var before unset: 2 bool(true) bool(false) -Warning: Undefined variable $static_var in %s on line %d +Warning: Undefined variable $static_var (this will become an error in PHP 9.0) in %s on line %d value of static_var after unset: bool(false) bool(true) @@ -1300,7 +1300,7 @@ value of static_var before unset: 3 bool(true) bool(false) -Warning: Undefined variable $static_var in %s on line %d +Warning: Undefined variable $static_var (this will become an error in PHP 9.0) in %s on line %d value of static_var after unset: bool(false) bool(true) diff --git a/Zend/tests/024.phpt b/Zend/tests/024.phpt index 22d93483fed87..acd8515f5f3e0 100644 --- a/Zend/tests/024.phpt +++ b/Zend/tests/024.phpt @@ -15,30 +15,30 @@ var_dump($a->$b->{$c[1]}); ?> --EXPECTF-- -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d Warning: Trying to access array offset on value of type null in %s on line %d NULL -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $c in %s on line %d +Warning: Undefined variable $c (this will become an error in PHP 9.0) in %s on line %d Warning: Trying to access array offset on value of type null in %s on line %d NULL -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d int(1) -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $b in %s on line %d +Warning: Undefined variable $b (this will become an error in PHP 9.0) in %s on line %d int(0) -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d NULL -Warning: Undefined variable $b in %s on line %d +Warning: Undefined variable $b (this will become an error in PHP 9.0) in %s on line %d int(1) Warning: Attempt to read property "1" on int in %s on line %d @@ -47,7 +47,7 @@ NULL Warning: Attempt to read property "1" on int in %s on line %d NULL -Warning: Undefined variable $c in %s on line %d +Warning: Undefined variable $c (this will become an error in PHP 9.0) in %s on line %d Warning: Trying to access array offset on value of type null in %s on line %d diff --git a/Zend/tests/033.phpt b/Zend/tests/033.phpt index 22e4b6a12097f..9289807c046dd 100644 --- a/Zend/tests/033.phpt +++ b/Zend/tests/033.phpt @@ -25,7 +25,7 @@ try { ?> --EXPECTF-- -Warning: Undefined variable $arr in %s on line %d +Warning: Undefined variable $arr (this will become an error in PHP 9.0) in %s on line %d Warning: Trying to access array offset on value of type null in %s on line %d @@ -37,7 +37,7 @@ Warning: Trying to access array offset on value of type null in %s on line %d Warning: Trying to access array offset on value of type null in %s on line %d -Warning: Undefined variable $arr in %s on line %d +Warning: Undefined variable $arr (this will become an error in PHP 9.0) in %s on line %d Warning: Trying to access array offset on value of type null in %s on line %d @@ -49,7 +49,7 @@ Warning: Trying to access array offset on value of type null in %s on line %d Warning: Trying to access array offset on value of type null in %s on line %d -Warning: Undefined variable $arr in %s on line %d +Warning: Undefined variable $arr (this will become an error in PHP 9.0) in %s on line %d Warning: Trying to access array offset on value of type null in %s on line %d diff --git a/Zend/tests/array_unpack/undef_var.phpt b/Zend/tests/array_unpack/undef_var.phpt index 383805c46a294..8759c5ee8a71b 100644 --- a/Zend/tests/array_unpack/undef_var.phpt +++ b/Zend/tests/array_unpack/undef_var.phpt @@ -7,7 +7,7 @@ var_dump([...$arr]); ?> --EXPECTF-- -Warning: Undefined variable $arr in %s on line %d +Warning: Undefined variable $arr (this will become an error in PHP 9.0) in %s on line %d Fatal error: Uncaught Error: Only arrays and Traversables can be unpacked in %s:%d Stack trace: diff --git a/Zend/tests/arrow_functions/002.phpt b/Zend/tests/arrow_functions/002.phpt index b805b57c60eed..aa8619ac75f03 100644 --- a/Zend/tests/arrow_functions/002.phpt +++ b/Zend/tests/arrow_functions/002.phpt @@ -9,5 +9,5 @@ var_dump((fn() => $b + $c)()); ?> --EXPECTF-- -Warning: Undefined variable $c in %s on line %d +Warning: Undefined variable $c (this will become an error in PHP 9.0) in %s on line %d int(1) diff --git a/Zend/tests/arrow_functions/003.phpt b/Zend/tests/arrow_functions/003.phpt index ae72efedc62e0..d75b6df592552 100644 --- a/Zend/tests/arrow_functions/003.phpt +++ b/Zend/tests/arrow_functions/003.phpt @@ -14,8 +14,8 @@ var_dump($fn()); ?> --EXPECTF-- -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d NULL -Warning: Undefined variable $5 in %s on line %d +Warning: Undefined variable $5 (this will become an error in PHP 9.0) in %s on line %d NULL diff --git a/Zend/tests/assign_coalesce_007.phpt b/Zend/tests/assign_coalesce_007.phpt index f569aa5cbfb61..f28a722678486 100644 --- a/Zend/tests/assign_coalesce_007.phpt +++ b/Zend/tests/assign_coalesce_007.phpt @@ -6,7 +6,7 @@ $a[0] ??= $a; var_dump($a); ?> --EXPECTF-- -Warning: Undefined variable $a in %sassign_coalesce_007.php on line 2 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sassign_coalesce_007.php on line 2 array(1) { [0]=> NULL diff --git a/Zend/tests/assign_dim_op_undef.phpt b/Zend/tests/assign_dim_op_undef.phpt index 187aed97857a4..dd03e2ec4cbf4 100644 --- a/Zend/tests/assign_dim_op_undef.phpt +++ b/Zend/tests/assign_dim_op_undef.phpt @@ -6,9 +6,9 @@ $a[$b] += 1; var_dump($a); ?> --EXPECTF-- -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $b in %s on line %d +Warning: Undefined variable $b (this will become an error in PHP 9.0) in %s on line %d Warning: Undefined array key "" in %s on line %d array(1) { diff --git a/Zend/tests/bug30162.phpt b/Zend/tests/bug30162.phpt index e2c21366f23b7..c1029156b42e6 100644 --- a/Zend/tests/bug30162.phpt +++ b/Zend/tests/bug30162.phpt @@ -44,7 +44,7 @@ $db = new hariCow; var_dump($db); ?> --EXPECTF-- -Warning: Undefined variable $db in %s on line %d +Warning: Undefined variable $db (this will become an error in PHP 9.0) in %s on line %d NULL object(hariCow)#%d (2) { ["x"]=> diff --git a/Zend/tests/bug31720.phpt b/Zend/tests/bug31720.phpt index 083ea78a01163..c9cf40792806c 100644 --- a/Zend/tests/bug31720.phpt +++ b/Zend/tests/bug31720.phpt @@ -11,5 +11,5 @@ try { } ?> --EXPECTF-- -Warning: Undefined variable $nonesuchvar in %s on line %d +Warning: Undefined variable $nonesuchvar (this will become an error in PHP 9.0) in %s on line %d array_walk(): Argument #2 ($callback) must be a valid callback, first array member is not a valid class name or object diff --git a/Zend/tests/bug39036.phpt b/Zend/tests/bug39036.phpt index 669ca9255ec4f..522c963ef1328 100644 --- a/Zend/tests/bug39036.phpt +++ b/Zend/tests/bug39036.phpt @@ -14,6 +14,6 @@ var_dump($key); echo "Done\n"; ?> --EXPECTF-- -Warning: Undefined variable $key in %s on line %d +Warning: Undefined variable $key (this will become an error in PHP 9.0) in %s on line %d NULL Done diff --git a/Zend/tests/bug41209.phpt b/Zend/tests/bug41209.phpt index 1a7ee8aa515c0..ac20ddd782fea 100644 --- a/Zend/tests/bug41209.phpt +++ b/Zend/tests/bug41209.phpt @@ -39,7 +39,7 @@ var_dump(isset($cache[$id])); echo "Done\n"; ?> --EXPECTF-- -Fatal error: Uncaught ErrorException: Undefined variable $id in %s:%d +Fatal error: Uncaught ErrorException: Undefined variable $id (this will become an error in PHP 9.0) in %s:%d Stack trace: #0 %s(%d): env::errorHandler(2, 'Undefined varia...', '%s', %d) #1 {main} diff --git a/Zend/tests/bug43201.phpt b/Zend/tests/bug43201.phpt index c93b118e1696d..72c51b8ac1350 100644 --- a/Zend/tests/bug43201.phpt +++ b/Zend/tests/bug43201.phpt @@ -26,39 +26,39 @@ Notice: Indirect modification of overloaded property Foo::$arr has no effect in Notice: Indirect modification of overloaded property Foo::$arr has no effect in %sbug43201.php on line 14 -Warning: Undefined variable $ref in %s on line %d +Warning: Undefined variable $ref (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d Deprecated: chop(): Passing null to parameter #1 ($string) of type string is deprecated in %s on line %d Notice: Indirect modification of overloaded property Foo::$arr has no effect in %sbug43201.php on line 17 -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d Deprecated: chop(): Passing null to parameter #1 ($string) of type string is deprecated in %s on line %d Notice: Indirect modification of overloaded property Foo::$arr has no effect in %sbug43201.php on line 17 -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d Deprecated: chop(): Passing null to parameter #1 ($string) of type string is deprecated in %s on line %d Notice: Indirect modification of overloaded property Foo::$arr has no effect in %sbug43201.php on line 17 -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d Deprecated: chop(): Passing null to parameter #1 ($string) of type string is deprecated in %s on line %d Notice: Indirect modification of overloaded property Foo::$arr has no effect in %sbug43201.php on line 17 -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d Deprecated: chop(): Passing null to parameter #1 ($string) of type string is deprecated in %s on line %d Notice: Indirect modification of overloaded property Foo::$arr has no effect in %sbug43201.php on line 17 -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d Deprecated: chop(): Passing null to parameter #1 ($string) of type string is deprecated in %s on line %d diff --git a/Zend/tests/bug47109.phpt b/Zend/tests/bug47109.phpt index 591edfa747cfa..08d99bbcecd8a 100644 --- a/Zend/tests/bug47109.phpt +++ b/Zend/tests/bug47109.phpt @@ -5,6 +5,6 @@ Bug #47109 (Memory leak on $a->{"a"."b"} when $a is not an object) $a->{"a"."b"}; ?> --EXPECTF-- -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d Warning: Attempt to read property "ab" on null in %s on line %d diff --git a/Zend/tests/bug52001.phpt b/Zend/tests/bug52001.phpt index b473157511aaf..57bb5ad6fd2b6 100644 --- a/Zend/tests/bug52001.phpt +++ b/Zend/tests/bug52001.phpt @@ -11,7 +11,7 @@ var_dump($temp1); function a($b,$c) {} ?> --EXPECTF-- -Warning: Undefined variable $var in %s on line %d +Warning: Undefined variable $var (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $ in %s on line %d +Warning: Undefined variable $ (this will become an error in PHP 9.0) in %s on line %d int(1) diff --git a/Zend/tests/bug52041.phpt b/Zend/tests/bug52041.phpt index 7debab3f8bebb..c64f595c2e4b3 100644 --- a/Zend/tests/bug52041.phpt +++ b/Zend/tests/bug52041.phpt @@ -47,47 +47,47 @@ foo()[0][0] += 2; var_dump(foo()); ?> --EXPECTF-- -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d Attempt to assign property "a" on null -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d Attempt to modify property "a" on null -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d Attempt to increment/decrement property "a" on null -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d Attempt to modify property "a" on null -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d Attempt to assign property "a" on null -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d Attempt to modify property "a" on null -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d Warning: Undefined array key 0 in %s on line %d -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d Warning: Undefined array key 0 in %s on line %d Warning: Undefined array key 0 in %s on line %d -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d Warning: Undefined array key 0 in %s on line %d -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d Warning: Undefined array key 0 in %s on line %d Warning: Undefined array key 0 in %s on line %d -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d NULL diff --git a/Zend/tests/bug61767.phpt b/Zend/tests/bug61767.phpt index f47eb0cbe82c4..430ce8bf8ea24 100644 --- a/Zend/tests/bug61767.phpt +++ b/Zend/tests/bug61767.phpt @@ -16,9 +16,9 @@ register_shutdown_function(function(){ $undefined->foo(); ?> --EXPECTF-- -Error handler called (Undefined variable $undefined) +Error handler called (Undefined variable $undefined (this will become an error in PHP 9.0)) -Fatal error: Uncaught ErrorException: Undefined variable $undefined in %sbug61767.php:%d +Fatal error: Uncaught ErrorException: Undefined variable $undefined (this will become an error in PHP 9.0) in %sbug61767.php:%d Stack trace: #0 %sbug61767.php(%d): {closure}(%s, 'Undefined varia...', '%s', %d) #1 {main} diff --git a/Zend/tests/bug67314.phpt b/Zend/tests/bug67314.phpt index 8077b01881b0a..51d97efc9ac2f 100644 --- a/Zend/tests/bug67314.phpt +++ b/Zend/tests/bug67314.phpt @@ -16,8 +16,8 @@ crash(); echo "ok\n"; ?> --EXPECTF-- -Warning: Undefined variable $i in %s on line %d +Warning: Undefined variable $i (this will become an error in PHP 9.0) in %s on line %d made it once -Warning: Undefined variable $i in %s on line %d +Warning: Undefined variable $i (this will become an error in PHP 9.0) in %s on line %d ok diff --git a/Zend/tests/bug70124.phpt b/Zend/tests/bug70124.phpt index 51f592d24d197..fb7b99b69fbf6 100644 --- a/Zend/tests/bug70124.phpt +++ b/Zend/tests/bug70124.phpt @@ -39,7 +39,7 @@ try { } ?> --EXPECTF-- -Warning: Undefined variable $f in %s on line %d +Warning: Undefined variable $f (this will become an error in PHP 9.0) in %s on line %d string(34) "Value of type null is not callable" string(31) "Call to undefined method A::y()" string(31) "Call to undefined method A::y()" diff --git a/Zend/tests/bug72944.phpt b/Zend/tests/bug72944.phpt index b5c76be3ae20c..2e03ec36cd455 100644 --- a/Zend/tests/bug72944.phpt +++ b/Zend/tests/bug72944.phpt @@ -7,5 +7,5 @@ define('e', 'e'); echo "OK\n"; ?> --EXPECTF-- -Warning: Undefined variable $A in %s on line %d +Warning: Undefined variable $A (this will become an error in PHP 9.0) in %s on line %d OK diff --git a/Zend/tests/bug75921.phpt b/Zend/tests/bug75921.phpt index ab82c85840c43..8a0a09bc81bdf 100644 --- a/Zend/tests/bug75921.phpt +++ b/Zend/tests/bug75921.phpt @@ -47,21 +47,21 @@ unset($null); --EXPECTF-- Attempt to assign property "a" on null -Warning: Undefined variable $null in %s on line %d +Warning: Undefined variable $null (this will become an error in PHP 9.0) in %s on line %d NULL Attempt to modify property "a" on null -Warning: Undefined variable $null in %s on line %d +Warning: Undefined variable $null (this will become an error in PHP 9.0) in %s on line %d NULL Attempt to modify property "a" on null -Warning: Undefined variable $null in %s on line %d +Warning: Undefined variable $null (this will become an error in PHP 9.0) in %s on line %d NULL Attempt to modify property "a" on null -Warning: Undefined variable $null in %s on line %d +Warning: Undefined variable $null (this will become an error in PHP 9.0) in %s on line %d NULL Attempt to modify property "a" on null -Warning: Undefined variable $null in %s on line %d +Warning: Undefined variable $null (this will become an error in PHP 9.0) in %s on line %d NULL diff --git a/Zend/tests/bug76667.phpt b/Zend/tests/bug76667.phpt index 03bd490a04090..8d09a55454248 100644 --- a/Zend/tests/bug76667.phpt +++ b/Zend/tests/bug76667.phpt @@ -23,7 +23,7 @@ try { } ?> --EXPECTF-- -Warning: Undefined variable $undefined in %s on line %d +Warning: Undefined variable $undefined (this will become an error in PHP 9.0) in %s on line %d Warning: Attempt to read property "1" on null in %s on line %d Division by zero diff --git a/Zend/tests/bug78531.phpt b/Zend/tests/bug78531.phpt index b818afb79a863..e1bc2c3b73834 100644 --- a/Zend/tests/bug78531.phpt +++ b/Zend/tests/bug78531.phpt @@ -24,14 +24,14 @@ try { } ?> --EXPECTF-- -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d Attempt to assign property "a" on null -Warning: Undefined variable $u2 in %s on line %d +Warning: Undefined variable $u2 (this will become an error in PHP 9.0) in %s on line %d Attempt to increment/decrement property "a" on null -Warning: Undefined variable $u3 in %s on line %d +Warning: Undefined variable $u3 (this will become an error in PHP 9.0) in %s on line %d Attempt to increment/decrement property "a" on null -Warning: Undefined variable $u4 in %s on line %d +Warning: Undefined variable $u4 (this will become an error in PHP 9.0) in %s on line %d Attempt to modify property "a" on null diff --git a/Zend/tests/bug79599.phpt b/Zend/tests/bug79599.phpt index 57e5332431f53..38fdcd310f7ee 100644 --- a/Zend/tests/bug79599.phpt +++ b/Zend/tests/bug79599.phpt @@ -23,5 +23,5 @@ try{ } ?> --EXPECT-- -string(21) "Undefined variable $b" -string(21) "Undefined variable $c" +string(60) "Undefined variable $b (this will become an error in PHP 9.0)" +string(60) "Undefined variable $c (this will become an error in PHP 9.0)" diff --git a/Zend/tests/bug79828.phpt b/Zend/tests/bug79828.phpt index 2bcb18e3e9de1..a563ec851e733 100644 --- a/Zend/tests/bug79828.phpt +++ b/Zend/tests/bug79828.phpt @@ -8,7 +8,7 @@ function foo(): AnyType { foo(); ?> --EXPECTF-- -Warning: Undefined variable $uninitialized in %s on line %d +Warning: Undefined variable $uninitialized (this will become an error in PHP 9.0) in %s on line %d Fatal error: Uncaught TypeError: foo(): Return value must be of type AnyType, null returned in %s:%d Stack trace: diff --git a/Zend/tests/bug80030.phpt b/Zend/tests/bug80030.phpt index cf5a668345ce5..c47bbab63f02f 100644 --- a/Zend/tests/bug80030.phpt +++ b/Zend/tests/bug80030.phpt @@ -10,7 +10,7 @@ test(); ?> --EXPECTF-- -Warning: Undefined variable $className in %s on line %d +Warning: Undefined variable $className (this will become an error in PHP 9.0) in %s on line %d Fatal error: Uncaught Error: Class name must be a valid object or a string in %s:%d Stack trace: diff --git a/Zend/tests/bug81631.phpt b/Zend/tests/bug81631.phpt index 191ea951274d2..c7e5b59c52781 100644 --- a/Zend/tests/bug81631.phpt +++ b/Zend/tests/bug81631.phpt @@ -6,7 +6,7 @@ $a = 0; var_dump($b::class); ?> --EXPECTF-- -Warning: Undefined variable $b in %s on line 3 +Warning: Undefined variable $b (this will become an error in PHP 9.0) in %s on line 3 Fatal error: Uncaught TypeError: Cannot use "::class" on value of type null in %s:3 Stack trace: diff --git a/Zend/tests/call_user_func_002.phpt b/Zend/tests/call_user_func_002.phpt index 443334cd2375c..8eff00df3250b 100644 --- a/Zend/tests/call_user_func_002.phpt +++ b/Zend/tests/call_user_func_002.phpt @@ -34,8 +34,8 @@ string(3) "foo" call_user_func(): Argument #1 ($callback) must be a valid callback, class "foo" not found call_user_func(): Argument #1 ($callback) must be a valid callback, class "" not found -Warning: Undefined variable $foo in %s on line %d +Warning: Undefined variable $foo (this will become an error in PHP 9.0) in %s on line %d call_user_func(): Argument #1 ($callback) must be a valid callback, first array member is not a valid class name or object -Warning: Undefined variable $foo in %s on line %d +Warning: Undefined variable $foo (this will become an error in PHP 9.0) in %s on line %d call_user_func(): Argument #1 ($callback) must be a valid callback, first array member is not a valid class name or object diff --git a/Zend/tests/clone_003.phpt b/Zend/tests/clone_003.phpt index f163616a876dc..833b15aab3f41 100644 --- a/Zend/tests/clone_003.phpt +++ b/Zend/tests/clone_003.phpt @@ -7,7 +7,7 @@ $a = clone $b; ?> --EXPECTF-- -Warning: Undefined variable $b in %s on line %d +Warning: Undefined variable $b (this will become an error in PHP 9.0) in %s on line %d Fatal error: Uncaught Error: __clone method called on non-object in %s:%d Stack trace: diff --git a/Zend/tests/closure_012.phpt b/Zend/tests/closure_012.phpt index 044de936ca972..30eb8b4991a3e 100644 --- a/Zend/tests/closure_012.phpt +++ b/Zend/tests/closure_012.phpt @@ -16,8 +16,8 @@ $lambda(); var_dump($i); ?> --EXPECTF-- -Warning: Undefined variable $i in %s on line %d +Warning: Undefined variable $i (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $i in %s on line %d +Warning: Undefined variable $i (this will become an error in PHP 9.0) in %s on line %d NULL int(2) diff --git a/Zend/tests/closure_027.phpt b/Zend/tests/closure_027.phpt index 7ecfa55e0f14c..561abe7e15bdf 100644 --- a/Zend/tests/closure_027.phpt +++ b/Zend/tests/closure_027.phpt @@ -27,7 +27,7 @@ object(stdClass)#%d (0) { } NULL -Warning: Undefined variable $y in %s on line %d +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %s on line %d Exception: Too few arguments to function {closure}(), 0 passed in %s on line %d and exactly 1 expected Fatal error: Uncaught TypeError: test(): Argument #1 ($a) must be of type Closure, stdClass given, called in %s:%d diff --git a/Zend/tests/code_before_loop_var_free.phpt b/Zend/tests/code_before_loop_var_free.phpt index 3e0d8caf154dc..5f9678c9dab40 100644 --- a/Zend/tests/code_before_loop_var_free.phpt +++ b/Zend/tests/code_before_loop_var_free.phpt @@ -9,4 +9,4 @@ default: } ?> --EXPECTF-- -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/tests/dead_array_type_inference.phpt b/Zend/tests/dead_array_type_inference.phpt index f0f9d51ee2d45..6fd0ad5f29b6f 100644 --- a/Zend/tests/dead_array_type_inference.phpt +++ b/Zend/tests/dead_array_type_inference.phpt @@ -13,6 +13,6 @@ test(); ?> --EXPECTF-- -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d Warning: foreach() argument must be of type array|object, null given in %s on line %d diff --git a/Zend/tests/dereference_007.phpt b/Zend/tests/dereference_007.phpt index 90fed2cfb883e..c31d9ddf10f7e 100644 --- a/Zend/tests/dereference_007.phpt +++ b/Zend/tests/dereference_007.phpt @@ -33,5 +33,5 @@ print "ok\n"; ?> --EXPECTF-- -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d ok diff --git a/Zend/tests/div_by_zero_compound_with_conversion.phpt b/Zend/tests/div_by_zero_compound_with_conversion.phpt index ba391328169fe..6ea1d6f8b05ea 100644 --- a/Zend/tests/div_by_zero_compound_with_conversion.phpt +++ b/Zend/tests/div_by_zero_compound_with_conversion.phpt @@ -10,5 +10,5 @@ try { } ?> --EXPECTF-- -Warning: Undefined variable $42 in %s on line %d +Warning: Undefined variable $42 (this will become an error in PHP 9.0) in %s on line %d Division by zero diff --git a/Zend/tests/dynamic_call_004.phpt b/Zend/tests/dynamic_call_004.phpt index e29671f711d78..5c937cc020f6c 100644 --- a/Zend/tests/dynamic_call_004.phpt +++ b/Zend/tests/dynamic_call_004.phpt @@ -7,7 +7,7 @@ $a::$b(); ?> --EXPECTF-- -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d Fatal error: Uncaught Error: Class name must be a valid object or a string in %s:%d Stack trace: diff --git a/Zend/tests/entry_block_with_predecessors.phpt b/Zend/tests/entry_block_with_predecessors.phpt index ee1dc16b78de5..415e7d3915ea3 100644 --- a/Zend/tests/entry_block_with_predecessors.phpt +++ b/Zend/tests/entry_block_with_predecessors.phpt @@ -28,6 +28,6 @@ test2(); ?> --EXPECTF-- -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d int(1) int(2) diff --git a/Zend/tests/errmsg_045.phpt b/Zend/tests/errmsg_045.phpt index 4a75cf5df4168..840ac49ac56d0 100644 --- a/Zend/tests/errmsg_045.phpt +++ b/Zend/tests/errmsg_045.phpt @@ -17,4 +17,4 @@ eval('class A { private function __invoke() { } }'); string(%d) "The magic method A::__invoke() must have public visibility" string(%d) "%s(%d) : eval()'d code" -Warning: Undefined variable $undefined in %s on line %d +Warning: Undefined variable $undefined (this will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/tests/error_reporting03.phpt b/Zend/tests/error_reporting03.phpt index d6c442bebb053..1a8a6d5ec94d1 100644 --- a/Zend/tests/error_reporting03.phpt +++ b/Zend/tests/error_reporting03.phpt @@ -30,6 +30,6 @@ var_dump(error_reporting()); echo "Done\n"; ?> --EXPECTF-- -Warning: Undefined variable $undef2 in %s on line %d +Warning: Undefined variable $undef2 (this will become an error in PHP 9.0) in %s on line %d int(32767) Done diff --git a/Zend/tests/error_reporting04.phpt b/Zend/tests/error_reporting04.phpt index f53565de9e274..683e6b71abd2b 100644 --- a/Zend/tests/error_reporting04.phpt +++ b/Zend/tests/error_reporting04.phpt @@ -18,6 +18,6 @@ var_dump(error_reporting()); echo "Done\n"; ?> --EXPECTF-- -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d int(32767) Done diff --git a/Zend/tests/error_reporting05.phpt b/Zend/tests/error_reporting05.phpt index 9ffd3971a1217..6cbf156b3be81 100644 --- a/Zend/tests/error_reporting05.phpt +++ b/Zend/tests/error_reporting05.phpt @@ -27,8 +27,8 @@ var_dump(error_reporting()); echo "Done\n"; ?> --EXPECTF-- -Warning: Undefined variable $undef_value in %s on line %d +Warning: Undefined variable $undef_value (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $undef_name in %s on line %d +Warning: Undefined variable $undef_name (this will become an error in PHP 9.0) in %s on line %d int(32767) Done diff --git a/Zend/tests/error_reporting08.phpt b/Zend/tests/error_reporting08.phpt index 2450abfc679df..1ff78f4d03a5b 100644 --- a/Zend/tests/error_reporting08.phpt +++ b/Zend/tests/error_reporting08.phpt @@ -27,6 +27,6 @@ var_dump(error_reporting()); echo "Done\n"; ?> --EXPECTF-- -Warning: Undefined variable $undef3 in %s on line %d +Warning: Undefined variable $undef3 (this will become an error in PHP 9.0) in %s on line %d int(32767) Done diff --git a/Zend/tests/error_reporting09.phpt b/Zend/tests/error_reporting09.phpt index 39e52adbf5476..125b19bfd342a 100644 --- a/Zend/tests/error_reporting09.phpt +++ b/Zend/tests/error_reporting09.phpt @@ -24,8 +24,8 @@ var_dump(error_reporting()); echo "Done\n"; ?> --EXPECTF-- -Warning: Undefined variable $blah in %s on line %d +Warning: Undefined variable $blah (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $undef2 in %s on line %d +Warning: Undefined variable $undef2 (this will become an error in PHP 9.0) in %s on line %d int(32767) Done diff --git a/Zend/tests/exception_before_fatal.phpt b/Zend/tests/exception_before_fatal.phpt index edc63b2394cdf..7d59765b765fd 100644 --- a/Zend/tests/exception_before_fatal.phpt +++ b/Zend/tests/exception_before_fatal.phpt @@ -55,10 +55,10 @@ try { } ?> --EXPECT-- -string(23) "Undefined variable $foo" -string(23) "Undefined variable $foo" -string(23) "Undefined variable $foo" -string(23) "Undefined variable $foo" -string(23) "Undefined variable $foo" -string(23) "Undefined variable $foo" -string(23) "Undefined variable $foo" +string(62) "Undefined variable $foo (this will become an error in PHP 9.0)" +string(62) "Undefined variable $foo (this will become an error in PHP 9.0)" +string(62) "Undefined variable $foo (this will become an error in PHP 9.0)" +string(62) "Undefined variable $foo (this will become an error in PHP 9.0)" +string(62) "Undefined variable $foo (this will become an error in PHP 9.0)" +string(62) "Undefined variable $foo (this will become an error in PHP 9.0)" +string(62) "Undefined variable $foo (this will become an error in PHP 9.0)" diff --git a/Zend/tests/foreach_undefined.phpt b/Zend/tests/foreach_undefined.phpt index 47a1e3053fa38..eafa747c4c5dc 100644 --- a/Zend/tests/foreach_undefined.phpt +++ b/Zend/tests/foreach_undefined.phpt @@ -8,7 +8,7 @@ foreach($a as $val); echo "Done\n"; ?> --EXPECTF-- -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d Warning: foreach() argument must be of type array|object, null given in %s on line %d Done diff --git a/Zend/tests/generators/errors/resume_running_generator_error_003.phpt b/Zend/tests/generators/errors/resume_running_generator_error_003.phpt index c72f9ba87258c..2219b6da2daf9 100644 --- a/Zend/tests/generators/errors/resume_running_generator_error_003.phpt +++ b/Zend/tests/generators/errors/resume_running_generator_error_003.phpt @@ -13,7 +13,7 @@ try { } ?> --EXPECTF-- -Warning: Undefined variable $y in %sresume_running_generator_error_003.php on line 4 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %sresume_running_generator_error_003.php on line 4 Fatal error: Uncaught Error: Cannot resume an already running generator in %sresume_running_generator_error_003.php:4 Stack trace: diff --git a/Zend/tests/globals_001.phpt b/Zend/tests/globals_001.phpt index 7c54046212d07..2d4c22ca3b983 100644 --- a/Zend/tests/globals_001.phpt +++ b/Zend/tests/globals_001.phpt @@ -29,6 +29,6 @@ string(%d) "%s" Warning: Undefined array key "PHP_SELF" in %s on line %d NULL -Warning: Undefined global variable $_SERVER in %s on line %d +Warning: Undefined global variable $_SERVER (this will become an error in PHP 9.0) in %s on line %d NULL Done diff --git a/Zend/tests/globals_002.phpt b/Zend/tests/globals_002.phpt index faa9b94ade2fe..b643cb08f07fd 100644 --- a/Zend/tests/globals_002.phpt +++ b/Zend/tests/globals_002.phpt @@ -32,6 +32,6 @@ string(%d) "%s" Warning: Undefined array key "PHP_SELF" in %s on line %d NULL -Warning: Undefined global variable $_SERVER in %s on line %d +Warning: Undefined global variable $_SERVER (this will become an error in PHP 9.0) in %s on line %d NULL Done diff --git a/Zend/tests/globals_003.phpt b/Zend/tests/globals_003.phpt index 36e74bde64ba8..399153fca0940 100644 --- a/Zend/tests/globals_003.phpt +++ b/Zend/tests/globals_003.phpt @@ -38,6 +38,6 @@ string(%d) "%s" Warning: Undefined array key "PHP_SELF" in %s on line %d NULL -Warning: Undefined global variable $_SERVER in %s on line %d +Warning: Undefined global variable $_SERVER (this will become an error in PHP 9.0) in %s on line %d NULL Done diff --git a/Zend/tests/globals_004.phpt b/Zend/tests/globals_004.phpt index 4c81e5e57a88f..42b28f8853c4a 100644 --- a/Zend/tests/globals_004.phpt +++ b/Zend/tests/globals_004.phpt @@ -23,6 +23,6 @@ string(%d) "%s" Warning: Undefined array key "PHP_SELF" in %s on line %d NULL -Warning: Undefined global variable $_SERVER in %s on line %d +Warning: Undefined global variable $_SERVER (this will become an error in PHP 9.0) in %s on line %d NULL Done diff --git a/Zend/tests/ignore_repeated_errors.phpt b/Zend/tests/ignore_repeated_errors.phpt index b7744e16e9781..0e1365ac712fc 100644 --- a/Zend/tests/ignore_repeated_errors.phpt +++ b/Zend/tests/ignore_repeated_errors.phpt @@ -16,10 +16,10 @@ $u + 1; ?> --EXPECTF-- -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u2 in %s on line %d +Warning: Undefined variable $u2 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u in %s on line %d +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u in %s on line %d +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/tests/ignore_repeated_source.phpt b/Zend/tests/ignore_repeated_source.phpt index 23389474aee94..92c5feaa5fa83 100644 --- a/Zend/tests/ignore_repeated_source.phpt +++ b/Zend/tests/ignore_repeated_source.phpt @@ -17,8 +17,8 @@ $u + 1; ?> --EXPECTF-- -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u2 in %s on line %d +Warning: Undefined variable $u2 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u in %s on line %d +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/tests/incdec_undef.phpt b/Zend/tests/incdec_undef.phpt index c3a18cb53529a..5e448eaf4f10d 100644 --- a/Zend/tests/incdec_undef.phpt +++ b/Zend/tests/incdec_undef.phpt @@ -15,11 +15,11 @@ unset($x); var_dump(++$x); ?> --EXPECT-- -Undefined variable $x +Undefined variable $x (this will become an error in PHP 9.0) NULL -Undefined variable $x +Undefined variable $x (this will become an error in PHP 9.0) NULL -Undefined variable $x +Undefined variable $x (this will become an error in PHP 9.0) NULL -Undefined variable $x +Undefined variable $x (this will become an error in PHP 9.0) int(1) diff --git a/Zend/tests/inference_infinite_loop.phpt b/Zend/tests/inference_infinite_loop.phpt index a0f56e2d2b0b9..8d79b496b4764 100644 --- a/Zend/tests/inference_infinite_loop.phpt +++ b/Zend/tests/inference_infinite_loop.phpt @@ -14,4 +14,4 @@ test(); ?> --EXPECTF-- -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/tests/isset_003.phpt b/Zend/tests/isset_003.phpt index 6979a847af74d..95a3ea1e876e5 100644 --- a/Zend/tests/isset_003.phpt +++ b/Zend/tests/isset_003.phpt @@ -29,9 +29,9 @@ bool(true) bool(false) bool(false) -Warning: Undefined variable $c in %s on line %d +Warning: Undefined variable $c (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $d in %s on line %d +Warning: Undefined variable $d (this will become an error in PHP 9.0) in %s on line %d Warning: Trying to access array offset on value of type null in %s on line %d diff --git a/Zend/tests/match/029.phpt b/Zend/tests/match/029.phpt index e4f9d64ea4189..8eac0f4497300 100644 --- a/Zend/tests/match/029.phpt +++ b/Zend/tests/match/029.phpt @@ -16,7 +16,7 @@ echo "unreachable\n"; ?> --EXPECTF-- -Fatal error: Uncaught Exception: Custom error handler: Undefined variable $undefVar in %s029.php:4 +Fatal error: Uncaught Exception: Custom error handler: Undefined variable $undefVar (this will become an error in PHP 9.0) in %s029.php:4 Stack trace: #0 %s029.php(7): {closure}(%d, 'Undefined varia...', '%s', %d) #1 {main} diff --git a/Zend/tests/match/030.phpt b/Zend/tests/match/030.phpt index 53588600bd7ce..97606899efa5e 100644 --- a/Zend/tests/match/030.phpt +++ b/Zend/tests/match/030.phpt @@ -16,7 +16,7 @@ echo "unreachable\n"; ?> --EXPECTF-- -Fatal error: Uncaught Exception: Custom error handler: Undefined variable $undefVar in %s030.php:4 +Fatal error: Uncaught Exception: Custom error handler: Undefined variable $undefVar (this will become an error in PHP 9.0) in %s030.php:4 Stack trace: #0 %s030.php(7): {closure}(%d, 'Undefined varia...', '%s', %d) #1 {main} diff --git a/Zend/tests/match/042.phpt b/Zend/tests/match/042.phpt index 6ea30dd3764ce..9b5aff83c46fd 100644 --- a/Zend/tests/match/042.phpt +++ b/Zend/tests/match/042.phpt @@ -15,8 +15,8 @@ var_dump(match ($undefinedVariable) { ?> --EXPECTF-- -Warning: Undefined variable $undefinedVariable in %s.php on line 3 +Warning: Undefined variable $undefinedVariable (this will become an error in PHP 9.0) in %s.php on line 3 string(4) "null" -Warning: Undefined variable $undefinedVariable in %s.php on line 8 +Warning: Undefined variable $undefinedVariable (this will become an error in PHP 9.0) in %s.php on line 8 string(3) "bar" diff --git a/Zend/tests/method_argument_binding.phpt b/Zend/tests/method_argument_binding.phpt index 62720030349f0..b6fbf212332b3 100644 --- a/Zend/tests/method_argument_binding.phpt +++ b/Zend/tests/method_argument_binding.phpt @@ -43,4 +43,4 @@ class E extends D { --EXPECTF-- int(2) -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/tests/named_params/undef_var.phpt b/Zend/tests/named_params/undef_var.phpt index 5ef41e26dd2cf..bf270016aa1bb 100644 --- a/Zend/tests/named_params/undef_var.phpt +++ b/Zend/tests/named_params/undef_var.phpt @@ -10,8 +10,8 @@ function func2($arg) { var_dump($arg); } ?> --EXPECTF-- -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d NULL -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d NULL diff --git a/Zend/tests/nullsafe_operator/018.phpt b/Zend/tests/nullsafe_operator/018.phpt index 8d018f53bf11b..2c5734421622f 100644 --- a/Zend/tests/nullsafe_operator/018.phpt +++ b/Zend/tests/nullsafe_operator/018.phpt @@ -9,11 +9,11 @@ var_dump($foo); ?> --EXPECTF-- -Warning: Undefined variable $foo in %s.php on line 3 +Warning: Undefined variable $foo (this will become an error in PHP 9.0) in %s.php on line 3 NULL -Warning: Undefined variable $foo in %s.php on line 4 +Warning: Undefined variable $foo (this will become an error in PHP 9.0) in %s.php on line 4 NULL -Warning: Undefined variable $foo in %s.php on line 5 +Warning: Undefined variable $foo (this will become an error in PHP 9.0) in %s.php on line 5 NULL diff --git a/Zend/tests/nullsafe_operator/025.phpt b/Zend/tests/nullsafe_operator/025.phpt index eadb906866c21..e8ca8c041bc8f 100644 --- a/Zend/tests/nullsafe_operator/025.phpt +++ b/Zend/tests/nullsafe_operator/025.phpt @@ -8,7 +8,7 @@ var_dump(${$a?->b}->c); ?> --EXPECTF-- -Warning: Undefined variable $ in %s on line %d +Warning: Undefined variable $ (this will become an error in PHP 9.0) in %s on line %d Warning: Attempt to read property "c" on null in %s on line %d NULL diff --git a/Zend/tests/nullsafe_operator/039.phpt b/Zend/tests/nullsafe_operator/039.phpt index 92983c1592e0a..3c61bd01dd6c4 100644 --- a/Zend/tests/nullsafe_operator/039.phpt +++ b/Zend/tests/nullsafe_operator/039.phpt @@ -15,4 +15,4 @@ try { ?> --EXPECT-- -Undefined variable $foo +Undefined variable $foo (this will become an error in PHP 9.0) diff --git a/Zend/tests/remove_predecessor_of_pi_node.phpt b/Zend/tests/remove_predecessor_of_pi_node.phpt index 6231f08b3f626..02c53e9ce4065 100644 --- a/Zend/tests/remove_predecessor_of_pi_node.phpt +++ b/Zend/tests/remove_predecessor_of_pi_node.phpt @@ -11,4 +11,4 @@ test(); ?> --EXPECTF-- -Warning: Undefined variable $n in %s on line %d +Warning: Undefined variable $n (this will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/tests/restore_error_reporting.phpt b/Zend/tests/restore_error_reporting.phpt index 9c02e71e350a7..964240a13ee90 100644 --- a/Zend/tests/restore_error_reporting.phpt +++ b/Zend/tests/restore_error_reporting.phpt @@ -8,7 +8,7 @@ var_dump($undef_var); ?> --EXPECTF-- -Warning: Undefined variable $undef_var in %s on line %d +Warning: Undefined variable $undef_var (this will become an error in PHP 9.0) in %s on line %d NULL Fatal error: Cannot use 'self' as class name as it is reserved in %s on line %d diff --git a/Zend/tests/restrict_globals/valid.phpt b/Zend/tests/restrict_globals/valid.phpt index b99bbe402fdd6..a364d6f6d39e1 100644 --- a/Zend/tests/restrict_globals/valid.phpt +++ b/Zend/tests/restrict_globals/valid.phpt @@ -33,7 +33,7 @@ var_dump($x); ?> --EXPECTF-- -Warning: Undefined global variable $x in %s on line %d +Warning: Undefined global variable $x (this will become an error in PHP 9.0) in %s on line %d NULL int(1) int(2) @@ -41,7 +41,7 @@ int(4) bool(true) bool(false) -Warning: Undefined variable $y in %s on line %d +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %s on line %d int(4) NULL array(1) { diff --git a/Zend/tests/str_offset_006.phpt b/Zend/tests/str_offset_006.phpt index 3cdf91656bd27..f23c0c73f593f 100644 --- a/Zend/tests/str_offset_006.phpt +++ b/Zend/tests/str_offset_006.phpt @@ -10,7 +10,7 @@ $a[$y]=$a.=($y); var_dump($a); ?> --EXPECT-- -Err: Undefined variable $y -Err: Undefined variable $y +Err: Undefined variable $y (this will become an error in PHP 9.0) +Err: Undefined variable $y (this will become an error in PHP 9.0) Err: String offset cast occurred NULL diff --git a/Zend/tests/str_offset_007.phpt b/Zend/tests/str_offset_007.phpt index 3998ac401f637..a3cc00d22dce9 100644 --- a/Zend/tests/str_offset_007.phpt +++ b/Zend/tests/str_offset_007.phpt @@ -11,6 +11,6 @@ $a[0][$d]='b'; var_dump($a); ?> --EXPECT-- -Err: Undefined variable $d +Err: Undefined variable $d (this will become an error in PHP 9.0) Err: String offset cast occurred string(0) "" diff --git a/Zend/tests/str_offset_008.phpt b/Zend/tests/str_offset_008.phpt index e99e46e59e749..d3a4defb11c45 100644 --- a/Zend/tests/str_offset_008.phpt +++ b/Zend/tests/str_offset_008.phpt @@ -12,7 +12,7 @@ var_dump($a[0][$b]); var_dump($a); ?> --EXPECT-- -Err: Undefined variable $b +Err: Undefined variable $b (this will become an error in PHP 9.0) Err: String offset cast occurred string(1) "x" int(8) diff --git a/Zend/tests/this_in_extract.phpt b/Zend/tests/this_in_extract.phpt index 2e3f7b497fdbf..53adb27b42433 100644 --- a/Zend/tests/this_in_extract.phpt +++ b/Zend/tests/this_in_extract.phpt @@ -15,5 +15,5 @@ foo(); --EXPECTF-- Cannot re-assign $this -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d NULL diff --git a/Zend/tests/undef_index_to_exception.phpt b/Zend/tests/undef_index_to_exception.phpt index bbe13c0e71d04..3902589e074bf 100644 --- a/Zend/tests/undef_index_to_exception.phpt +++ b/Zend/tests/undef_index_to_exception.phpt @@ -42,5 +42,5 @@ array(0) { Undefined array key "key" array(0) { } -Undefined global variable $test -Undefined variable $test +Undefined global variable $test (this will become an error in PHP 9.0) +Undefined variable $test (this will become an error in PHP 9.0) diff --git a/Zend/tests/undef_var_in_verify_return.phpt b/Zend/tests/undef_var_in_verify_return.phpt index b8c263c424cf4..1703a531d6f49 100644 --- a/Zend/tests/undef_var_in_verify_return.phpt +++ b/Zend/tests/undef_var_in_verify_return.phpt @@ -15,7 +15,7 @@ test(); ?> --EXPECTF-- -Fatal error: Uncaught ErrorException: Undefined variable $test in %s:%d +Fatal error: Uncaught ErrorException: Undefined variable $test (this will become an error in PHP 9.0) in %s:%d Stack trace: #0 %s(%d): {closure}(2, 'Undefined varia...', '%s', 8) #1 %s(%d): test() diff --git a/Zend/tests/unreachable_phi_cycle.phpt b/Zend/tests/unreachable_phi_cycle.phpt index 84bfec214bb85..db21f0a46397b 100644 --- a/Zend/tests/unreachable_phi_cycle.phpt +++ b/Zend/tests/unreachable_phi_cycle.phpt @@ -12,4 +12,4 @@ function test() { test(); ?> --EXPECTF-- -Warning: Undefined variable $i in %s on line %d +Warning: Undefined variable $i (this will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/tests/unset_cv01.phpt b/Zend/tests/unset_cv01.phpt index 55dac22e502a8..f68ecdd4211b8 100644 --- a/Zend/tests/unset_cv01.phpt +++ b/Zend/tests/unset_cv01.phpt @@ -10,4 +10,4 @@ echo $x; --EXPECTF-- ok -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/tests/unset_cv02.phpt b/Zend/tests/unset_cv02.phpt index 8e42005db3b0e..12de9a9f7b432 100644 --- a/Zend/tests/unset_cv02.phpt +++ b/Zend/tests/unset_cv02.phpt @@ -10,4 +10,4 @@ echo $x; --EXPECTF-- ok -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/tests/unset_cv03.phpt b/Zend/tests/unset_cv03.phpt index 87f04d50ca160..394c1b89cab13 100644 --- a/Zend/tests/unset_cv03.phpt +++ b/Zend/tests/unset_cv03.phpt @@ -10,4 +10,4 @@ echo $x; --EXPECTF-- ok -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/tests/unset_cv04.phpt b/Zend/tests/unset_cv04.phpt index e746059727244..066a3ada57a3c 100644 --- a/Zend/tests/unset_cv04.phpt +++ b/Zend/tests/unset_cv04.phpt @@ -13,4 +13,4 @@ f(); --EXPECTF-- ok -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/tests/unset_non_array.phpt b/Zend/tests/unset_non_array.phpt index 5d7ad4d44b879..f4e421e0c0fe7 100644 --- a/Zend/tests/unset_non_array.phpt +++ b/Zend/tests/unset_non_array.phpt @@ -94,7 +94,7 @@ try { ?> --EXPECTF-- -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d Deprecated: Automatic conversion of false to array is deprecated in %s Cannot unset offset in a non-array variable @@ -103,7 +103,7 @@ Cannot unset offset in a non-array variable Cannot unset string offsets Cannot use object of type stdClass as array -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d Deprecated: Automatic conversion of false to array is deprecated in %s Cannot unset offset in a non-array variable diff --git a/Zend/tests/warning_during_heredoc_scan_ahead.phpt b/Zend/tests/warning_during_heredoc_scan_ahead.phpt index a0becbb782a6d..e8b4d421f127e 100644 --- a/Zend/tests/warning_during_heredoc_scan_ahead.phpt +++ b/Zend/tests/warning_during_heredoc_scan_ahead.phpt @@ -16,4 +16,4 @@ Warning: Octal escape sequence overflow \400 is greater than \377 in %s on line Deprecated: Using ${expr} (variable variables) in strings is deprecated, use {${expr}} instead in %s on line %d -Warning: Undefined variable $ in %s on line %d +Warning: Undefined variable $ (this will become an error in PHP 9.0) in %s on line %d diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index b0f87eccb11c9..a565399046d5a 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -269,7 +269,7 @@ static zend_never_inline ZEND_COLD zval* zval_undefined_cv(uint32_t var EXECUTE_ { if (EXPECTED(EG(exception) == NULL)) { zend_string *cv = CV_DEF_OF(EX_VAR_TO_NUM(var)); - zend_error(E_WARNING, "Undefined variable $%s", ZSTR_VAL(cv)); + zend_error(E_WARNING, "Undefined variable $%s (this will become an error in PHP 9.0)", ZSTR_VAL(cv)); } return &EG(uninitialized_zval); } @@ -3700,7 +3700,7 @@ static zend_never_inline void zend_fetch_this_var(int type OPLINE_DC EXECUTE_DAT Z_ADDREF_P(result); } else { ZVAL_NULL(result); - zend_error(E_WARNING, "Undefined variable $this"); + zend_error(E_WARNING, "Undefined variable $this (this will become an error in PHP 9.0)"); } break; case BP_VAR_IS: diff --git a/Zend/zend_vm_def.h b/Zend/zend_vm_def.h index 55f4af0e4aff1..52e36aa819bce 100644 --- a/Zend/zend_vm_def.h +++ b/Zend/zend_vm_def.h @@ -1748,7 +1748,7 @@ ZEND_VM_C_LABEL(fetch_this): } else if (type == BP_VAR_IS || type == BP_VAR_UNSET) { retval = &EG(uninitialized_zval); } else { - zend_error(E_WARNING, "Undefined %svariable $%s", + zend_error(E_WARNING, "Undefined %svariable $%s (this will become an error in PHP 9.0)", (opline->extended_value & ZEND_FETCH_GLOBAL ? "global " : ""), ZSTR_VAL(name)); if (type == BP_VAR_RW && !EG(exception)) { retval = zend_hash_update(target_symbol_table, name, &EG(uninitialized_zval)); @@ -1768,7 +1768,7 @@ ZEND_VM_C_LABEL(fetch_this): } else if (type == BP_VAR_IS || type == BP_VAR_UNSET) { retval = &EG(uninitialized_zval); } else { - zend_error(E_WARNING, "Undefined %svariable $%s", + zend_error(E_WARNING, "Undefined %svariable $%s (this will become an error in PHP 9.0)", (opline->extended_value & ZEND_FETCH_GLOBAL ? "global " : ""), ZSTR_VAL(name)); if (type == BP_VAR_RW && !EG(exception)) { ZVAL_NULL(retval); diff --git a/Zend/zend_vm_execute.h b/Zend/zend_vm_execute.h index 4714ab37101cc..7891411c33f57 100644 --- a/Zend/zend_vm_execute.h +++ b/Zend/zend_vm_execute.h @@ -9873,7 +9873,7 @@ static zend_never_inline ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_fetch_var_ad } else if (type == BP_VAR_IS || type == BP_VAR_UNSET) { retval = &EG(uninitialized_zval); } else { - zend_error(E_WARNING, "Undefined %svariable $%s", + zend_error(E_WARNING, "Undefined %svariable $%s (this will become an error in PHP 9.0)", (opline->extended_value & ZEND_FETCH_GLOBAL ? "global " : ""), ZSTR_VAL(name)); if (type == BP_VAR_RW && !EG(exception)) { retval = zend_hash_update(target_symbol_table, name, &EG(uninitialized_zval)); @@ -9893,7 +9893,7 @@ static zend_never_inline ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_fetch_var_ad } else if (type == BP_VAR_IS || type == BP_VAR_UNSET) { retval = &EG(uninitialized_zval); } else { - zend_error(E_WARNING, "Undefined %svariable $%s", + zend_error(E_WARNING, "Undefined %svariable $%s (this will become an error in PHP 9.0)", (opline->extended_value & ZEND_FETCH_GLOBAL ? "global " : ""), ZSTR_VAL(name)); if (type == BP_VAR_RW && !EG(exception)) { ZVAL_NULL(retval); @@ -17678,7 +17678,7 @@ static zend_never_inline ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_fetch_var_ad } else if (type == BP_VAR_IS || type == BP_VAR_UNSET) { retval = &EG(uninitialized_zval); } else { - zend_error(E_WARNING, "Undefined %svariable $%s", + zend_error(E_WARNING, "Undefined %svariable $%s (this will become an error in PHP 9.0)", (opline->extended_value & ZEND_FETCH_GLOBAL ? "global " : ""), ZSTR_VAL(name)); if (type == BP_VAR_RW && !EG(exception)) { retval = zend_hash_update(target_symbol_table, name, &EG(uninitialized_zval)); @@ -17698,7 +17698,7 @@ static zend_never_inline ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_fetch_var_ad } else if (type == BP_VAR_IS || type == BP_VAR_UNSET) { retval = &EG(uninitialized_zval); } else { - zend_error(E_WARNING, "Undefined %svariable $%s", + zend_error(E_WARNING, "Undefined %svariable $%s (this will become an error in PHP 9.0)", (opline->extended_value & ZEND_FETCH_GLOBAL ? "global " : ""), ZSTR_VAL(name)); if (type == BP_VAR_RW && !EG(exception)) { ZVAL_NULL(retval); @@ -47207,7 +47207,7 @@ static zend_never_inline ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_fetch_var_ad } else if (type == BP_VAR_IS || type == BP_VAR_UNSET) { retval = &EG(uninitialized_zval); } else { - zend_error(E_WARNING, "Undefined %svariable $%s", + zend_error(E_WARNING, "Undefined %svariable $%s (this will become an error in PHP 9.0)", (opline->extended_value & ZEND_FETCH_GLOBAL ? "global " : ""), ZSTR_VAL(name)); if (type == BP_VAR_RW && !EG(exception)) { retval = zend_hash_update(target_symbol_table, name, &EG(uninitialized_zval)); @@ -47227,7 +47227,7 @@ static zend_never_inline ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_fetch_var_ad } else if (type == BP_VAR_IS || type == BP_VAR_UNSET) { retval = &EG(uninitialized_zval); } else { - zend_error(E_WARNING, "Undefined %svariable $%s", + zend_error(E_WARNING, "Undefined %svariable $%s (this will become an error in PHP 9.0)", (opline->extended_value & ZEND_FETCH_GLOBAL ? "global " : ""), ZSTR_VAL(name)); if (type == BP_VAR_RW && !EG(exception)) { ZVAL_NULL(retval); diff --git a/ext/opcache/jit/zend_jit_helpers.c b/ext/opcache/jit/zend_jit_helpers.c index b2539f5c3f429..e74a97c023f97 100644 --- a/ext/opcache/jit/zend_jit_helpers.c +++ b/ext/opcache/jit/zend_jit_helpers.c @@ -105,7 +105,7 @@ static ZEND_COLD void ZEND_FASTCALL zend_jit_invalid_method_call(zval *object) if (Z_TYPE_P(object) == IS_UNDEF && opline->op1_type == IS_CV) { zend_string *cv = EX(func)->op_array.vars[EX_VAR_TO_NUM(opline->op1.var)]; - zend_error(E_WARNING, "Undefined variable $%s", ZSTR_VAL(cv)); + zend_error(E_WARNING, "Undefined variable $%s (this will become an error in PHP 9.0)", ZSTR_VAL(cv)); if (UNEXPECTED(EG(exception) != NULL)) { return; } @@ -350,7 +350,7 @@ static int ZEND_FASTCALL zend_jit_undefined_op_helper(uint32_t var) const zend_execute_data *execute_data = EG(current_execute_data); zend_string *cv = EX(func)->op_array.vars[EX_VAR_TO_NUM(var)]; - zend_error(E_WARNING, "Undefined variable $%s", ZSTR_VAL(cv)); + zend_error(E_WARNING, "Undefined variable $%s (this will become an error in PHP 9.0)", ZSTR_VAL(cv)); return EG(exception) == NULL; } @@ -364,7 +364,7 @@ static int ZEND_FASTCALL zend_jit_undefined_op_helper_write(HashTable *ht, uint3 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE)) { GC_ADDREF(ht); } - zend_error(E_WARNING, "Undefined variable $%s", ZSTR_VAL(cv)); + zend_error(E_WARNING, "Undefined variable $%s (this will become an error in PHP 9.0)", ZSTR_VAL(cv)); if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && GC_DELREF(ht) != 1) { if (!GC_REFCOUNT(ht)) { zend_array_destroy(ht); @@ -2366,7 +2366,7 @@ static void ZEND_FASTCALL zend_jit_invalid_property_incdec(zval *container, cons if (Z_TYPE_P(container) == IS_UNDEF && opline->op1_type == IS_CV) { zend_string *cv = EX(func)->op_array.vars[EX_VAR_TO_NUM(opline->op1.var)]; - zend_error(E_WARNING, "Undefined variable $%s", ZSTR_VAL(cv)); + zend_error(E_WARNING, "Undefined variable $%s (this will become an error in PHP 9.0)", ZSTR_VAL(cv)); } if (opline->result_type & (IS_VAR|IS_TMP_VAR)) { ZVAL_UNDEF(EX_VAR(opline->result.var)); diff --git a/ext/opcache/tests/block_pass_001.phpt b/ext/opcache/tests/block_pass_001.phpt index e89460cc24a6e..6dcc856f5058b 100644 --- a/ext/opcache/tests/block_pass_001.phpt +++ b/ext/opcache/tests/block_pass_001.phpt @@ -9,4 +9,4 @@ opcache (bool) new stdClass; ?> --EXPECTF-- -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d diff --git a/ext/opcache/tests/bool_not_cv.phpt b/ext/opcache/tests/bool_not_cv.phpt index d9ee583fbe2b1..8137ce3e4beaa 100644 --- a/ext/opcache/tests/bool_not_cv.phpt +++ b/ext/opcache/tests/bool_not_cv.phpt @@ -26,9 +26,9 @@ undef_bool_cast(); --EXPECTF-- In undef_negation -Warning: Undefined variable $v in %s on line 4 +Warning: Undefined variable $v (this will become an error in PHP 9.0) in %s on line 4 true In undef_bool_cast -Warning: Undefined variable $v in %s on line 10 +Warning: Undefined variable $v (this will become an error in PHP 9.0) in %s on line 10 false diff --git a/ext/opcache/tests/bug73668.phpt b/ext/opcache/tests/bug73668.phpt index 6c2c61be44b53..7c345e9b1b175 100644 --- a/ext/opcache/tests/bug73668.phpt +++ b/ext/opcache/tests/bug73668.phpt @@ -7,4 +7,4 @@ opcache $a/-1; ?> --EXPECTF-- -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d diff --git a/ext/opcache/tests/bug76446.phpt b/ext/opcache/tests/bug76446.phpt index cb16347843ab8..cdc46ebf15f8e 100644 --- a/ext/opcache/tests/bug76446.phpt +++ b/ext/opcache/tests/bug76446.phpt @@ -18,5 +18,5 @@ function test() var_dump(test()); ?> --EXPECTF-- -Warning: Undefined variable $addlang in %s on line %d +Warning: Undefined variable $addlang (this will become an error in PHP 9.0) in %s on line %d int(0) diff --git a/ext/opcache/tests/bug77058.phpt b/ext/opcache/tests/bug77058.phpt index e241281bd2daf..7c94dfb831876 100644 --- a/ext/opcache/tests/bug77058.phpt +++ b/ext/opcache/tests/bug77058.phpt @@ -18,5 +18,5 @@ myfunc(); ?> --EXPECTF-- -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d '2' is expected to be 2 diff --git a/ext/opcache/tests/bug79412.phpt b/ext/opcache/tests/bug79412.phpt index 8830ba6621fa6..c6f6017c9cfcd 100644 --- a/ext/opcache/tests/bug79412.phpt +++ b/ext/opcache/tests/bug79412.phpt @@ -20,6 +20,6 @@ foreach ($foo as $bar) { } ?> --EXPECTF-- -Warning: Undefined variable $foo in %s on line %d +Warning: Undefined variable $foo (this will become an error in PHP 9.0) in %s on line %d Warning: foreach() argument must be of type array|object, null given in %s on line %d diff --git a/ext/opcache/tests/jit/add_011.phpt b/ext/opcache/tests/jit/add_011.phpt index cd078629b30b0..99a31fe8f7b71 100644 --- a/ext/opcache/tests/jit/add_011.phpt +++ b/ext/opcache/tests/jit/add_011.phpt @@ -20,181 +20,181 @@ function test() { test(); ?> --EXPECTF-- -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-1) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-4) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-13) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-32) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-97) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-228) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-493) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-1024) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-3073) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-7172) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-15373) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-31776) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-64609) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-130276) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-261613) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-524288) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-1572865) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-3670020) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-7864333) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-16252960) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-33030241) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-66584804) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-133693933) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-267912192) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-536349697) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-1073224708) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-2146974733) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-4294474784) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-8589474913) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-17179475172) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-34359475693) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-68719476736) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-206158430209) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-481036337156) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-1030792151053) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-2130303778848) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-4329327034465) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-8727373545700) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-17523466568173) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-35115652613120) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-70300024704001) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-140668768885764) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-281406257249293) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-562881233976352) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-1125831187430497) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-2251731094338788) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-4503530908155373) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-9007130535788544) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-18014329791578113) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-36028728303157252) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-72057525326315533) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-144115119372632096) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-288230307465265249) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-576460683650531556) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-1152921436021064173) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-2305842940762129408) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-4611685950244260865) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 int(-9223371969208523780) -Warning: Undefined variable $u in %sadd_011.php on line 5 +Warning: Undefined variable $u (this will become an error in PHP 9.0) in %sadd_011.php on line 5 Deprecated: Implicit conversion from float %f to int loses precision in %sadd_011.php on line 5 int(66572500992) \ No newline at end of file diff --git a/ext/opcache/tests/jit/assign_022.phpt b/ext/opcache/tests/jit/assign_022.phpt index b3b1a2f0972d0..e785c3e7fbf87 100644 --- a/ext/opcache/tests/jit/assign_022.phpt +++ b/ext/opcache/tests/jit/assign_022.phpt @@ -21,5 +21,5 @@ foo(); echo "ok\n"; ?> --EXPECTF-- -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d ok diff --git a/ext/opcache/tests/jit/assign_023.phpt b/ext/opcache/tests/jit/assign_023.phpt index 4ca6ebe106555..739b6b17d1767 100644 --- a/ext/opcache/tests/jit/assign_023.phpt +++ b/ext/opcache/tests/jit/assign_023.phpt @@ -21,5 +21,5 @@ foo(); echo "ok\n"; ?> --EXPECTF-- -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d ok diff --git a/ext/opcache/tests/jit/assign_024.phpt b/ext/opcache/tests/jit/assign_024.phpt index 2967e9aa09539..ec7b1a730e677 100644 --- a/ext/opcache/tests/jit/assign_024.phpt +++ b/ext/opcache/tests/jit/assign_024.phpt @@ -20,5 +20,5 @@ foo(); echo "ok\n"; ?> --EXPECTF-- -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d ok diff --git a/ext/opcache/tests/jit/assign_025.phpt b/ext/opcache/tests/jit/assign_025.phpt index 2f69b0e87ad55..ea60eff358719 100644 --- a/ext/opcache/tests/jit/assign_025.phpt +++ b/ext/opcache/tests/jit/assign_025.phpt @@ -21,5 +21,5 @@ foo(); echo "ok\n"; ?> --EXPECTF-- -Warning: Undefined variable $ref in %s on line %d +Warning: Undefined variable $ref (this will become an error in PHP 9.0) in %s on line %d ok diff --git a/ext/opcache/tests/jit/assign_040.phpt b/ext/opcache/tests/jit/assign_040.phpt index 0c81506cbef27..b5ecdd60f8bd7 100644 --- a/ext/opcache/tests/jit/assign_040.phpt +++ b/ext/opcache/tests/jit/assign_040.phpt @@ -23,5 +23,5 @@ try { echo $e->getMessage(), "\n"; } --EXPECTF-- -Warning: Undefined variable $y in %s on line %d +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %s on line %d Cannot assign null to reference held by property Test::$x of type string diff --git a/ext/opcache/tests/jit/assign_043.phpt b/ext/opcache/tests/jit/assign_043.phpt index 5931ec4709a02..8becdd7a50802 100644 --- a/ext/opcache/tests/jit/assign_043.phpt +++ b/ext/opcache/tests/jit/assign_043.phpt @@ -19,4 +19,4 @@ try { } ?> --EXPECT-- -Undefined variable $b +Undefined variable $b (this will become an error in PHP 9.0) diff --git a/ext/opcache/tests/jit/assign_046.phpt b/ext/opcache/tests/jit/assign_046.phpt index 201f619f11bdf..d07e0d1321824 100644 --- a/ext/opcache/tests/jit/assign_046.phpt +++ b/ext/opcache/tests/jit/assign_046.phpt @@ -20,19 +20,19 @@ test(); --EXPECTF-- NULL -Warning: Undefined variable $b in %sassign_046.php on line 6 +Warning: Undefined variable $b (this will become an error in PHP 9.0) in %sassign_046.php on line 6 int(0) -Warning: Undefined variable $b in %sassign_046.php on line 6 +Warning: Undefined variable $b (this will become an error in PHP 9.0) in %sassign_046.php on line 6 int(0) -Warning: Undefined variable $b in %sassign_046.php on line 6 +Warning: Undefined variable $b (this will become an error in PHP 9.0) in %sassign_046.php on line 6 int(0) -Warning: Undefined variable $b in %sassign_046.php on line 6 +Warning: Undefined variable $b (this will become an error in PHP 9.0) in %sassign_046.php on line 6 int(0) -Warning: Undefined variable $b in %sassign_046.php on line 6 +Warning: Undefined variable $b (this will become an error in PHP 9.0) in %sassign_046.php on line 6 int(0) -Warning: Undefined variable $b in %sassign_046.php on line 6 +Warning: Undefined variable $b (this will become an error in PHP 9.0) in %sassign_046.php on line 6 diff --git a/ext/opcache/tests/jit/assign_047.phpt b/ext/opcache/tests/jit/assign_047.phpt index 302d465fdab62..d4c0ea2a5bb28 100644 --- a/ext/opcache/tests/jit/assign_047.phpt +++ b/ext/opcache/tests/jit/assign_047.phpt @@ -20,6 +20,6 @@ test() ?> DONE --EXPECTF-- -Warning: Undefined variable $a in %sassign_047.php on line 5 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sassign_047.php on line 5 DONE diff --git a/ext/opcache/tests/jit/assign_048.phpt b/ext/opcache/tests/jit/assign_048.phpt index a6bcf14933a78..d7e093a64c5a3 100644 --- a/ext/opcache/tests/jit/assign_048.phpt +++ b/ext/opcache/tests/jit/assign_048.phpt @@ -21,23 +21,23 @@ test(); ?> DONE --EXPECTF-- -Warning: Undefined variable $a in %sassign_048.php on line 7 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sassign_048.php on line 7 -Warning: Undefined variable $a in %sassign_048.php on line 7 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sassign_048.php on line 7 -Warning: Undefined variable $a in %sassign_048.php on line 7 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sassign_048.php on line 7 -Warning: Undefined variable $a in %sassign_048.php on line 7 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sassign_048.php on line 7 -Warning: Undefined variable $a in %sassign_048.php on line 7 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sassign_048.php on line 7 -Warning: Undefined variable $a in %sassign_048.php on line 7 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sassign_048.php on line 7 -Warning: Undefined variable $a in %sassign_048.php on line 7 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sassign_048.php on line 7 -Warning: Undefined variable $a in %sassign_048.php on line 7 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sassign_048.php on line 7 -Warning: Undefined variable $a in %sassign_048.php on line 7 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sassign_048.php on line 7 -Warning: Undefined variable $a in %sassign_048.php on line 7 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sassign_048.php on line 7 DONE diff --git a/ext/opcache/tests/jit/assign_053.phpt b/ext/opcache/tests/jit/assign_053.phpt index 6e785fa76f75c..e86dbbfbd02fd 100644 --- a/ext/opcache/tests/jit/assign_053.phpt +++ b/ext/opcache/tests/jit/assign_053.phpt @@ -16,9 +16,9 @@ $test->x = " $y "; $r = &$test->x + ($r = $y); ?> --EXPECTF-- -Warning: Undefined variable $y in %sassign_053.php on line 6 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %sassign_053.php on line 6 -Warning: Undefined variable $y in %sassign_053.php on line 7 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %sassign_053.php on line 7 Fatal error: Uncaught TypeError: Cannot assign null to reference held by property Test::$x of type string in %sassign_053.php:7 Stack trace: diff --git a/ext/opcache/tests/jit/assign_dim_002.phpt b/ext/opcache/tests/jit/assign_dim_002.phpt index 3f713a6c6a6a9..b3b644e6a74f8 100644 --- a/ext/opcache/tests/jit/assign_dim_002.phpt +++ b/ext/opcache/tests/jit/assign_dim_002.phpt @@ -223,5 +223,5 @@ array(1) { Deprecated: Automatic conversion of false to array is deprecated in %s on line %d Illegal offset type -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d NULL diff --git a/ext/opcache/tests/jit/assign_dim_003.phpt b/ext/opcache/tests/jit/assign_dim_003.phpt index 6f45fac5f0594..d13796efffc11 100644 --- a/ext/opcache/tests/jit/assign_dim_003.phpt +++ b/ext/opcache/tests/jit/assign_dim_003.phpt @@ -16,5 +16,5 @@ function test() { test(); ?> --EXPECTF-- -Warning: Undefined variable $v in %sassign_dim_003.php on line 3 +Warning: Undefined variable $v (this will become an error in PHP 9.0) in %sassign_dim_003.php on line 3 NULL \ No newline at end of file diff --git a/ext/opcache/tests/jit/assign_dim_004.phpt b/ext/opcache/tests/jit/assign_dim_004.phpt index f8d845221b5f7..a31c0d897d4c5 100644 --- a/ext/opcache/tests/jit/assign_dim_004.phpt +++ b/ext/opcache/tests/jit/assign_dim_004.phpt @@ -22,5 +22,5 @@ function test() { test(); ?> --EXPECTF-- -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d offsetSet(, 1) diff --git a/ext/opcache/tests/jit/assign_dim_005.phpt b/ext/opcache/tests/jit/assign_dim_005.phpt index 2056ba0554333..34f492c4ff115 100644 --- a/ext/opcache/tests/jit/assign_dim_005.phpt +++ b/ext/opcache/tests/jit/assign_dim_005.phpt @@ -17,6 +17,6 @@ $a[$c] = 'x' ; var_dump($a); ?> --EXPECT-- -Error: Undefined variable $c -Error: Undefined variable $c +Error: Undefined variable $c (this will become an error in PHP 9.0) +Error: Undefined variable $c (this will become an error in PHP 9.0) NULL diff --git a/ext/opcache/tests/jit/assign_dim_010.phpt b/ext/opcache/tests/jit/assign_dim_010.phpt index 3da83cc614e14..323e7a79cea9e 100644 --- a/ext/opcache/tests/jit/assign_dim_010.phpt +++ b/ext/opcache/tests/jit/assign_dim_010.phpt @@ -18,7 +18,7 @@ test(); ?> DONE --EXPECTF-- -Warning: Undefined variable $a in %sassign_dim_010.php on line 4 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sassign_dim_010.php on line 4 -Warning: Undefined variable $y in %sassign_dim_010.php on line 4 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %sassign_dim_010.php on line 4 DONE diff --git a/ext/opcache/tests/jit/assign_dim_014.phpt b/ext/opcache/tests/jit/assign_dim_014.phpt index d5680a4b60764..b7dfdd72be38d 100644 --- a/ext/opcache/tests/jit/assign_dim_014.phpt +++ b/ext/opcache/tests/jit/assign_dim_014.phpt @@ -15,5 +15,5 @@ $a[$y] = function(){}; ?> DONE --EXPECT-- -Error: Undefined variable $y +Error: Undefined variable $y (this will become an error in PHP 9.0) DONE diff --git a/ext/opcache/tests/jit/assign_dim_015.phpt b/ext/opcache/tests/jit/assign_dim_015.phpt index fd37d84764d0a..03a7fb1922815 100644 --- a/ext/opcache/tests/jit/assign_dim_015.phpt +++ b/ext/opcache/tests/jit/assign_dim_015.phpt @@ -15,5 +15,5 @@ $my_var[] = $y; ?> DONE --EXPECT-- -Error: Undefined variable $y +Error: Undefined variable $y (this will become an error in PHP 9.0) DONE diff --git a/ext/opcache/tests/jit/assign_dim_op_002.phpt b/ext/opcache/tests/jit/assign_dim_op_002.phpt index 6ade1a67912b5..fea847531f800 100644 --- a/ext/opcache/tests/jit/assign_dim_op_002.phpt +++ b/ext/opcache/tests/jit/assign_dim_op_002.phpt @@ -12,4 +12,4 @@ opcache $a[] &= 1; ?> --EXPECTF-- -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d diff --git a/ext/opcache/tests/jit/assign_dim_op_003.phpt b/ext/opcache/tests/jit/assign_dim_op_003.phpt index 840f11782c5f5..d456acdfcb607 100644 --- a/ext/opcache/tests/jit/assign_dim_op_003.phpt +++ b/ext/opcache/tests/jit/assign_dim_op_003.phpt @@ -13,4 +13,4 @@ $a[] &= $b; --EXTENSIONS-- opcache --EXPECTF-- -Warning: Undefined variable $b in %s on line %d +Warning: Undefined variable $b (this will become an error in PHP 9.0) in %s on line %d diff --git a/ext/opcache/tests/jit/assign_dim_op_005.phpt b/ext/opcache/tests/jit/assign_dim_op_005.phpt index 62af633eb3122..3e6f92b38372d 100644 --- a/ext/opcache/tests/jit/assign_dim_op_005.phpt +++ b/ext/opcache/tests/jit/assign_dim_op_005.phpt @@ -28,5 +28,5 @@ try { } ?> --EXPECT-- -Undefined variable $undef -Undefined variable $a +Undefined variable $undef (this will become an error in PHP 9.0) +Undefined variable $a (this will become an error in PHP 9.0) diff --git a/ext/opcache/tests/jit/assign_dim_undef_exception.phpt b/ext/opcache/tests/jit/assign_dim_undef_exception.phpt index 00bb22a3a9a6c..cd5f1f32444dd 100644 --- a/ext/opcache/tests/jit/assign_dim_undef_exception.phpt +++ b/ext/opcache/tests/jit/assign_dim_undef_exception.phpt @@ -34,5 +34,5 @@ try { } ?> --EXPECT-- -Undefined variable $undef -Undefined variable $undef +Undefined variable $undef (this will become an error in PHP 9.0) +Undefined variable $undef (this will become an error in PHP 9.0) diff --git a/ext/opcache/tests/jit/assign_obj_002.phpt b/ext/opcache/tests/jit/assign_obj_002.phpt index 37f03cea81645..3d93897dc2b1e 100644 --- a/ext/opcache/tests/jit/assign_obj_002.phpt +++ b/ext/opcache/tests/jit/assign_obj_002.phpt @@ -29,8 +29,8 @@ try { } ?> --EXPECTF-- -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d NULL -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d Cannot assign null to property Test::$prop2 of type int diff --git a/ext/opcache/tests/jit/bool_not_002.phpt b/ext/opcache/tests/jit/bool_not_002.phpt index 593df335e6137..5ed6fd915004d 100644 --- a/ext/opcache/tests/jit/bool_not_002.phpt +++ b/ext/opcache/tests/jit/bool_not_002.phpt @@ -19,9 +19,9 @@ function test() { test(); ?> --EXPECTF-- -Warning: Undefined variable $a in %sbool_not_002.php on line 6 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sbool_not_002.php on line 6 -Warning: Undefined variable $a in %sbool_not_002.php on line 6 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sbool_not_002.php on line 6 Deprecated: Implicit conversion from float %f to int loses precision in %sbool_not_002.php on line 6 diff --git a/ext/opcache/tests/jit/bw_not_001.phpt b/ext/opcache/tests/jit/bw_not_001.phpt index a36ab8bf41af7..7e3a5ca100c94 100644 --- a/ext/opcache/tests/jit/bw_not_001.phpt +++ b/ext/opcache/tests/jit/bw_not_001.phpt @@ -12,9 +12,9 @@ $x[~"$x"]*=1; ?> DONE --EXPECTF-- -Warning: Undefined variable $x in %sbw_not_001.php on line 2 +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %sbw_not_001.php on line 2 -Warning: Undefined variable $x in %sbw_not_001.php on line 2 +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %sbw_not_001.php on line 2 Warning: Undefined array key "" in %sbw_not_001.php on line 2 DONE \ No newline at end of file diff --git a/ext/opcache/tests/jit/cmp_006.phpt b/ext/opcache/tests/jit/cmp_006.phpt index aeaab45852006..c57898a434d18 100644 --- a/ext/opcache/tests/jit/cmp_006.phpt +++ b/ext/opcache/tests/jit/cmp_006.phpt @@ -44,14 +44,14 @@ test3(false); test4(false); ?> --EXPECTF-- -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $y in %s on line %d +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %s on line %d bool(false) -Warning: Undefined variable $y in %s on line %d +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %s on line %d bool(false) diff --git a/ext/opcache/tests/jit/cmp_008.phpt b/ext/opcache/tests/jit/cmp_008.phpt index 6216de5527726..a2e079fd02c78 100644 --- a/ext/opcache/tests/jit/cmp_008.phpt +++ b/ext/opcache/tests/jit/cmp_008.phpt @@ -15,9 +15,9 @@ function test() { test(); ?> --EXPECTF-- -Warning: Undefined variable $a in %scmp_008.php on line 3 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %scmp_008.php on line 3 -Warning: Undefined variable $a in %scmp_008.php on line 3 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %scmp_008.php on line 3 Fatal error: Uncaught DivisionByZeroError: Modulo by zero in %scmp_008.php:3 Stack trace: diff --git a/ext/opcache/tests/jit/fe_reset_001.phpt b/ext/opcache/tests/jit/fe_reset_001.phpt index 164e5731ead8e..32dc647aab976 100644 --- a/ext/opcache/tests/jit/fe_reset_001.phpt +++ b/ext/opcache/tests/jit/fe_reset_001.phpt @@ -14,23 +14,23 @@ for ($i = 0; $i < 5; $i++) { ?> OK --EXPECTF-- -Warning: Undefined variable $0 in %sfe_reset_001.php on line 4 +Warning: Undefined variable $0 (this will become an error in PHP 9.0) in %sfe_reset_001.php on line 4 Warning: foreach() argument must be of type array|object, null given in %sfe_reset_001.php on line 4 -Warning: Undefined variable $1 in %sfe_reset_001.php on line 4 +Warning: Undefined variable $1 (this will become an error in PHP 9.0) in %sfe_reset_001.php on line 4 Warning: foreach() argument must be of type array|object, null given in %sfe_reset_001.php on line 4 -Warning: Undefined variable $2 in %sfe_reset_001.php on line 4 +Warning: Undefined variable $2 (this will become an error in PHP 9.0) in %sfe_reset_001.php on line 4 Warning: foreach() argument must be of type array|object, null given in %sfe_reset_001.php on line 4 -Warning: Undefined variable $3 in %sfe_reset_001.php on line 4 +Warning: Undefined variable $3 (this will become an error in PHP 9.0) in %sfe_reset_001.php on line 4 Warning: foreach() argument must be of type array|object, null given in %sfe_reset_001.php on line 4 -Warning: Undefined variable $4 in %sfe_reset_001.php on line 4 +Warning: Undefined variable $4 (this will become an error in PHP 9.0) in %sfe_reset_001.php on line 4 Warning: foreach() argument must be of type array|object, null given in %sfe_reset_001.php on line 4 OK diff --git a/ext/opcache/tests/jit/fe_reset_undef.phpt b/ext/opcache/tests/jit/fe_reset_undef.phpt index ca8b5109b7fcf..56d3979520660 100644 --- a/ext/opcache/tests/jit/fe_reset_undef.phpt +++ b/ext/opcache/tests/jit/fe_reset_undef.phpt @@ -16,6 +16,6 @@ function test($c) { test(false); ?> --EXPECTF-- -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d Warning: foreach() argument must be of type array|object, null given in %s on line %d diff --git a/ext/opcache/tests/jit/fetch_dim_rw_001.phpt b/ext/opcache/tests/jit/fetch_dim_rw_001.phpt index 1402d63bb025d..6bfc17b34c5ee 100644 --- a/ext/opcache/tests/jit/fetch_dim_rw_001.phpt +++ b/ext/opcache/tests/jit/fetch_dim_rw_001.phpt @@ -17,7 +17,7 @@ function foo() { var_dump(foo()); ?> --EXPECTF-- -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d Warning: Undefined array key 0 in %sfetch_dim_rw_001.php on line 3 diff --git a/ext/opcache/tests/jit/fetch_obj_008.phpt b/ext/opcache/tests/jit/fetch_obj_008.phpt index 38c5b8a539889..1a2c6ed6c72e9 100644 --- a/ext/opcache/tests/jit/fetch_obj_008.phpt +++ b/ext/opcache/tests/jit/fetch_obj_008.phpt @@ -25,7 +25,7 @@ $a->prop = new B; ?> DONE --EXPECTF-- -Warning: Undefined variable $e in %sfetch_obj_008.php on line 9 +Warning: Undefined variable $e (this will become an error in PHP 9.0) in %sfetch_obj_008.php on line 9 Warning: Attempt to read property "prop" on string in %sfetch_obj_008.php on line 10 DONE diff --git a/ext/opcache/tests/jit/inc_obj_005.phpt b/ext/opcache/tests/jit/inc_obj_005.phpt index fe559218871c3..711cf9645323b 100644 --- a/ext/opcache/tests/jit/inc_obj_005.phpt +++ b/ext/opcache/tests/jit/inc_obj_005.phpt @@ -11,7 +11,7 @@ opcache.protect_memory=1 json_encode($y)->y++; ?> --EXPECTF-- -Warning: Undefined variable $y in %sinc_obj_005.php on line 2 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %sinc_obj_005.php on line 2 Fatal error: Uncaught Error: Attempt to increment/decrement property "y" on string in %sinc_obj_005.php:2 Stack trace: diff --git a/ext/opcache/tests/jit/isset_001.phpt b/ext/opcache/tests/jit/isset_001.phpt index 2ed9377d396ac..ce4732ce03533 100644 --- a/ext/opcache/tests/jit/isset_001.phpt +++ b/ext/opcache/tests/jit/isset_001.phpt @@ -13,5 +13,5 @@ function test() { test(); ?> --EXPECTF-- -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d bool(false) diff --git a/ext/opcache/tests/jit/mul_009.phpt b/ext/opcache/tests/jit/mul_009.phpt index 51789527115f2..1f81a541168bc 100644 --- a/ext/opcache/tests/jit/mul_009.phpt +++ b/ext/opcache/tests/jit/mul_009.phpt @@ -12,7 +12,7 @@ $x[""][] = 1; $x[~"$y"] *= 1; ?> --EXPECTF-- -Warning: Undefined variable $y in %smul_009.php on line 3 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %smul_009.php on line 3 Fatal error: Uncaught TypeError: Unsupported operand types: array * int in %smul_009.php:3 Stack trace: diff --git a/ext/opcache/tests/jit/qm_assign_002.phpt b/ext/opcache/tests/jit/qm_assign_002.phpt index ebfb46e227eae..40f18434b2f7a 100644 --- a/ext/opcache/tests/jit/qm_assign_002.phpt +++ b/ext/opcache/tests/jit/qm_assign_002.phpt @@ -19,11 +19,11 @@ test(); ?> DONE --EXPECTF-- -Warning: Undefined variable $a in %sqm_assign_002.php on line 4 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sqm_assign_002.php on line 4 -Warning: Undefined variable $b in %sqm_assign_002.php on line 5 +Warning: Undefined variable $b (this will become an error in PHP 9.0) in %sqm_assign_002.php on line 5 -Warning: Undefined variable $a in %sqm_assign_002.php on line 4 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sqm_assign_002.php on line 4 Warning: Array to string conversion in %sqm_assign_002.php on line 5 DONE \ No newline at end of file diff --git a/ext/opcache/tests/jit/qm_assign_undef_exception.phpt b/ext/opcache/tests/jit/qm_assign_undef_exception.phpt index 8e9e4699beec6..f2c5e3218a766 100644 --- a/ext/opcache/tests/jit/qm_assign_undef_exception.phpt +++ b/ext/opcache/tests/jit/qm_assign_undef_exception.phpt @@ -19,4 +19,4 @@ try { } ?> --EXPECT-- -Undefined variable $b +Undefined variable $b (this will become an error in PHP 9.0) diff --git a/ext/opcache/tests/jit/reg_alloc_004.phpt b/ext/opcache/tests/jit/reg_alloc_004.phpt index 78e4a79f13b7d..fedc8a3a30424 100644 --- a/ext/opcache/tests/jit/reg_alloc_004.phpt +++ b/ext/opcache/tests/jit/reg_alloc_004.phpt @@ -22,13 +22,13 @@ function createTree($depth) { createTree(4); ?> --EXPECTF-- -Warning: Undefined variable $d in %sreg_alloc_004.php on line 7 +Warning: Undefined variable $d (this will become an error in PHP 9.0) in %sreg_alloc_004.php on line 7 -Warning: Undefined variable $d in %sreg_alloc_004.php on line 7 +Warning: Undefined variable $d (this will become an error in PHP 9.0) in %sreg_alloc_004.php on line 7 -Warning: Undefined variable $d in %sreg_alloc_004.php on line 7 +Warning: Undefined variable $d (this will become an error in PHP 9.0) in %sreg_alloc_004.php on line 7 -Warning: Undefined variable $d in %sreg_alloc_004.php on line 7 +Warning: Undefined variable $d (this will become an error in PHP 9.0) in %sreg_alloc_004.php on line 7 Fatal error: Uncaught Error: First array member is not a valid class name or object in %sreg_alloc_004.php:7 Stack trace: diff --git a/ext/opcache/tests/jit/reg_alloc_006.phpt b/ext/opcache/tests/jit/reg_alloc_006.phpt index 4f4c3fb5fa2b4..665a97d1331eb 100644 --- a/ext/opcache/tests/jit/reg_alloc_006.phpt +++ b/ext/opcache/tests/jit/reg_alloc_006.phpt @@ -18,17 +18,17 @@ foo() ?> DONE --EXPECTF-- -Warning: Undefined variable $y in %sreg_alloc_006.php on line 5 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %sreg_alloc_006.php on line 5 -Warning: Undefined variable $y in %sreg_alloc_006.php on line 5 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %sreg_alloc_006.php on line 5 -Warning: Undefined variable $y in %sreg_alloc_006.php on line 5 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %sreg_alloc_006.php on line 5 -Warning: Undefined variable $y in %sreg_alloc_006.php on line 5 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %sreg_alloc_006.php on line 5 -Warning: Undefined variable $y in %sreg_alloc_006.php on line 5 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %sreg_alloc_006.php on line 5 -Warning: Undefined variable $y in %sreg_alloc_006.php on line 5 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %sreg_alloc_006.php on line 5 -Warning: Undefined variable $y in %sreg_alloc_006.php on line 5 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %sreg_alloc_006.php on line 5 DONE \ No newline at end of file diff --git a/ext/opcache/tests/jit/reg_alloc_007.phpt b/ext/opcache/tests/jit/reg_alloc_007.phpt index 2c9f13943d770..31ee9bdab9538 100644 --- a/ext/opcache/tests/jit/reg_alloc_007.phpt +++ b/ext/opcache/tests/jit/reg_alloc_007.phpt @@ -17,7 +17,7 @@ function test() { test(); ?> --EXPECTF-- -Warning: Undefined variable $a in %sreg_alloc_007.php on line 4 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sreg_alloc_007.php on line 4 Fatal error: Uncaught DivisionByZeroError: Modulo by zero in %sreg_alloc_007.php:6 Stack trace: diff --git a/ext/opcache/tests/jit/reg_alloc_008.phpt b/ext/opcache/tests/jit/reg_alloc_008.phpt index f71578ab4307c..81d49c71d3ae7 100644 --- a/ext/opcache/tests/jit/reg_alloc_008.phpt +++ b/ext/opcache/tests/jit/reg_alloc_008.phpt @@ -14,4 +14,4 @@ function foo($a) { foo(7); ?> --EXPECTF-- -Warning: Undefined variable $y in %sreg_alloc_008.php on line 4 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %sreg_alloc_008.php on line 4 diff --git a/ext/opcache/tests/jit/reg_alloc_009.phpt b/ext/opcache/tests/jit/reg_alloc_009.phpt index dfcbfc086f85f..a8c2044c3c600 100644 --- a/ext/opcache/tests/jit/reg_alloc_009.phpt +++ b/ext/opcache/tests/jit/reg_alloc_009.phpt @@ -15,7 +15,7 @@ function test() { test(); ?> --EXPECTF-- -Warning: Undefined variable $j in %sreg_alloc_009.php on line 4 +Warning: Undefined variable $j (this will become an error in PHP 9.0) in %sreg_alloc_009.php on line 4 Fatal error: Uncaught ArithmeticError: Bit shift by negative number in %sreg_alloc_009.php:4 Stack trace: diff --git a/ext/opcache/tests/jit/reg_alloc_010.phpt b/ext/opcache/tests/jit/reg_alloc_010.phpt index d14b107295346..6d01f4b67b07d 100644 --- a/ext/opcache/tests/jit/reg_alloc_010.phpt +++ b/ext/opcache/tests/jit/reg_alloc_010.phpt @@ -18,7 +18,7 @@ foo(null); ?> DONE --EXPECTF-- -Warning: Undefined variable $cnt in %sreg_alloc_010.php on line 3 +Warning: Undefined variable $cnt (this will become an error in PHP 9.0) in %sreg_alloc_010.php on line 3 -Warning: Undefined variable $cnt in %sreg_alloc_010.php on line 3 +Warning: Undefined variable $cnt (this will become an error in PHP 9.0) in %sreg_alloc_010.php on line 3 DONE \ No newline at end of file diff --git a/ext/opcache/tests/jit/reg_alloc_013.phpt b/ext/opcache/tests/jit/reg_alloc_013.phpt index 01d4640ddc8ac..e327d61ad948b 100644 --- a/ext/opcache/tests/jit/reg_alloc_013.phpt +++ b/ext/opcache/tests/jit/reg_alloc_013.phpt @@ -15,5 +15,5 @@ foo(); ?> DONE --EXPECTF-- -Warning: Undefined variable $j in %sreg_alloc_013.php on line 3 +Warning: Undefined variable $j (this will become an error in PHP 9.0) in %sreg_alloc_013.php on line 3 DONE \ No newline at end of file diff --git a/ext/opcache/tests/jit/reg_alloc_014.phpt b/ext/opcache/tests/jit/reg_alloc_014.phpt index 03b7ae0667c1f..b486a5b515165 100644 --- a/ext/opcache/tests/jit/reg_alloc_014.phpt +++ b/ext/opcache/tests/jit/reg_alloc_014.phpt @@ -17,5 +17,5 @@ foo(); ?> DONE --EXPECTF-- -Warning: Undefined variable $a in %sreg_alloc_014.php on line 4 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sreg_alloc_014.php on line 4 DONE \ No newline at end of file diff --git a/ext/opcache/tests/jit/reg_alloc_015.phpt b/ext/opcache/tests/jit/reg_alloc_015.phpt index 579b34dadcc70..ee14bc00db0c5 100644 --- a/ext/opcache/tests/jit/reg_alloc_015.phpt +++ b/ext/opcache/tests/jit/reg_alloc_015.phpt @@ -16,7 +16,7 @@ foo() ?> DONE --EXPECTF-- -Warning: Undefined variable $y in %sreg_alloc_015.php on line 3 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %sreg_alloc_015.php on line 3 -Warning: Undefined variable $y in %sreg_alloc_015.php on line 3 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %sreg_alloc_015.php on line 3 DONE diff --git a/ext/opcache/tests/jit/send_val_002.phpt b/ext/opcache/tests/jit/send_val_002.phpt index 6268af8f736c3..af511043bf8f0 100644 --- a/ext/opcache/tests/jit/send_val_002.phpt +++ b/ext/opcache/tests/jit/send_val_002.phpt @@ -13,7 +13,7 @@ function o(){ o(); ?> --EXPECTF-- -Warning: Undefined variable $x in %ssend_val_002.php on line 3 +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %ssend_val_002.php on line 3 Fatal error: Uncaught ArgumentCountError: var_dump() expects at least 1 argument, 0 given in %ssend_val_002.php:3 Stack trace: diff --git a/ext/opcache/tests/jit/shift_right_004.phpt b/ext/opcache/tests/jit/shift_right_004.phpt index 8b1c8069984f6..bffa394ffec0e 100644 --- a/ext/opcache/tests/jit/shift_right_004.phpt +++ b/ext/opcache/tests/jit/shift_right_004.phpt @@ -21,11 +21,11 @@ function test() { test(); ?> --EXPECTF-- -Warning: Undefined variable $a in %sshift_right_004.php on line 8 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sshift_right_004.php on line 8 -Warning: Undefined variable $a in %sshift_right_004.php on line 8 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sshift_right_004.php on line 8 -Warning: Undefined variable $c in %sshift_right_004.php on line 7 +Warning: Undefined variable $c (this will become an error in PHP 9.0) in %sshift_right_004.php on line 7 Warning: Undefined array key 0 in %sshift_right_004.php on line 7 diff --git a/ext/opcache/tests/jit/type_check_001.phpt b/ext/opcache/tests/jit/type_check_001.phpt index 4d37ba7b9762a..7528d41b24787 100644 --- a/ext/opcache/tests/jit/type_check_001.phpt +++ b/ext/opcache/tests/jit/type_check_001.phpt @@ -22,4 +22,4 @@ try { } ?> --EXPECT-- -Exception: Undefined variable $a +Exception: Undefined variable $a (this will become an error in PHP 9.0) diff --git a/ext/opcache/tests/jit/undef_to_typed_ref.phpt b/ext/opcache/tests/jit/undef_to_typed_ref.phpt index da749329fcb47..e333db432af0d 100644 --- a/ext/opcache/tests/jit/undef_to_typed_ref.phpt +++ b/ext/opcache/tests/jit/undef_to_typed_ref.phpt @@ -88,20 +88,20 @@ try { ?> --EXPECTF-- -Warning: Undefined variable $v in %s on line %d +Warning: Undefined variable $v (this will become an error in PHP 9.0) in %s on line %d Cannot assign null to reference held by property Test::$x of type string -Warning: Undefined variable $v in %s on line %d +Warning: Undefined variable $v (this will become an error in PHP 9.0) in %s on line %d Cannot assign null to reference held by property Test::$x of type string -Warning: Undefined variable $v in %s on line %d +Warning: Undefined variable $v (this will become an error in PHP 9.0) in %s on line %d Cannot assign null to reference held by property Test::$x of type string -Warning: Undefined variable $v in %s on line %d +Warning: Undefined variable $v (this will become an error in PHP 9.0) in %s on line %d Cannot assign null to reference held by property Test::$x of type string -Warning: Undefined variable $v in %s on line %d +Warning: Undefined variable $v (this will become an error in PHP 9.0) in %s on line %d Cannot assign null to reference held by property Test::$x of type string -Warning: Undefined variable $v in %s on line %d +Warning: Undefined variable $v (this will become an error in PHP 9.0) in %s on line %d Cannot assign null to reference held by property Test::$x of type string diff --git a/ext/opcache/tests/jit/verify_return_undef.phpt b/ext/opcache/tests/jit/verify_return_undef.phpt index 0ec68d1aa45d3..a4143da111151 100644 --- a/ext/opcache/tests/jit/verify_return_undef.phpt +++ b/ext/opcache/tests/jit/verify_return_undef.phpt @@ -20,5 +20,5 @@ try { ?> --EXPECTF-- -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d test(): Return value must be of type int, null returned diff --git a/ext/opcache/tests/jmpz_jmp_elim.phpt b/ext/opcache/tests/jmpz_jmp_elim.phpt index cb25196ae5d3d..76d67460ec591 100644 --- a/ext/opcache/tests/jmpz_jmp_elim.phpt +++ b/ext/opcache/tests/jmpz_jmp_elim.phpt @@ -14,5 +14,5 @@ echo "done\n"; ?> --EXPECTF-- -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d done diff --git a/ext/opcache/tests/opt/assign_obj_001.phpt b/ext/opcache/tests/opt/assign_obj_001.phpt index 205f111233e86..da49323acb2ab 100644 --- a/ext/opcache/tests/opt/assign_obj_001.phpt +++ b/ext/opcache/tests/opt/assign_obj_001.phpt @@ -13,9 +13,9 @@ function test() { test(); ?> --EXPECTF-- -Warning: Undefined variable $y in %sassign_obj_001.php on line 3 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %sassign_obj_001.php on line 3 -Warning: Undefined variable $a in %sassign_obj_001.php on line 3 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sassign_obj_001.php on line 3 Fatal error: Uncaught Error: Attempt to assign property "y" on string in %sassign_obj_001.php:4 Stack trace: diff --git a/ext/opcache/tests/opt/assign_obj_op_001.phpt b/ext/opcache/tests/opt/assign_obj_op_001.phpt index 9f26249289fb5..ddf6664cfbbe6 100644 --- a/ext/opcache/tests/opt/assign_obj_op_001.phpt +++ b/ext/opcache/tests/opt/assign_obj_op_001.phpt @@ -13,9 +13,9 @@ function s() { s(); ?> --EXPECTF-- -Warning: Undefined variable $y in %sassign_obj_op_001.php on line 3 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %sassign_obj_op_001.php on line 3 -Warning: Undefined variable $a in %sassign_obj_op_001.php on line 3 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sassign_obj_op_001.php on line 3 Fatal error: Uncaught Error: Attempt to assign property "y" on string in %sassign_obj_op_001.php:4 Stack trace: diff --git a/ext/opcache/tests/opt/assign_op_001.phpt b/ext/opcache/tests/opt/assign_op_001.phpt index 7ac23d71c0d17..03ea6335f703a 100644 --- a/ext/opcache/tests/opt/assign_op_001.phpt +++ b/ext/opcache/tests/opt/assign_op_001.phpt @@ -17,9 +17,9 @@ function test() { test(); ?> --EXPECTF-- -Warning: Undefined variable $a in %sassign_op_001.php on line 4 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sassign_op_001.php on line 4 -Warning: Undefined variable $a in %sassign_op_001.php on line 4 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sassign_op_001.php on line 4 Warning: Undefined array key "b" in %sassign_op_001.php on line 7 diff --git a/ext/opcache/tests/opt/coalesce_002.phpt b/ext/opcache/tests/opt/coalesce_002.phpt index c3a05d22e7a16..7cbc3e6602e78 100644 --- a/ext/opcache/tests/opt/coalesce_002.phpt +++ b/ext/opcache/tests/opt/coalesce_002.phpt @@ -12,7 +12,7 @@ function t() { t(); ?> --EXPECTF-- -Warning: Undefined variable $a in %scoalesce_002.php on line 3 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %scoalesce_002.php on line 3 Fatal error: Uncaught ArgumentCountError: var_dump() expects at least 1 argument, 0 given in %scoalesce_002.php:3 Stack trace: diff --git a/ext/opcache/tests/opt/dce_011.phpt b/ext/opcache/tests/opt/dce_011.phpt index da06d48a3ce53..1dd2c84e30862 100644 --- a/ext/opcache/tests/opt/dce_011.phpt +++ b/ext/opcache/tests/opt/dce_011.phpt @@ -6,7 +6,7 @@ Incorrect DCE of ADD_ARRAY_ELEMENT ?> DONE --EXPECTF-- -Warning: Undefined variable $a in %sdce_011.php on line 2 +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %sdce_011.php on line 2 -Warning: Undefined variable $b in %sdce_011.php on line 2 +Warning: Undefined variable $b (this will become an error in PHP 9.0) in %sdce_011.php on line 2 DONE diff --git a/ext/opcache/tests/opt/inference_001.phpt b/ext/opcache/tests/opt/inference_001.phpt index 1005d28408f9e..636823ecaef3e 100644 --- a/ext/opcache/tests/opt/inference_001.phpt +++ b/ext/opcache/tests/opt/inference_001.phpt @@ -28,13 +28,13 @@ test2(); ?> DONE --EXPECTF-- -Warning: Undefined variable $obj in %s on line %d +Warning: Undefined variable $obj (this will become an error in PHP 9.0) in %s on line %d Warning: Attempt to read property "x" on null in %s on line %d Warning: Undefined property: stdClass::$x in %s on line %d -Warning: Undefined variable $obj in %s on line %d +Warning: Undefined variable $obj (this will become an error in PHP 9.0) in %s on line %d Warning: Attempt to read property "x" on null in %s on line %d DONE diff --git a/ext/opcache/tests/opt/inference_012.phpt b/ext/opcache/tests/opt/inference_012.phpt index 2c123b32fac08..b81c9e579579a 100644 --- a/ext/opcache/tests/opt/inference_012.phpt +++ b/ext/opcache/tests/opt/inference_012.phpt @@ -20,7 +20,7 @@ test(); ?> DONE --EXPECTF-- -Warning: Undefined variable $x in %sinference_012.php on line 4 +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %sinference_012.php on line 4 -Warning: Undefined variable $arr in %sinference_012.php on line 5 +Warning: Undefined variable $arr (this will become an error in PHP 9.0) in %sinference_012.php on line 5 DONE diff --git a/ext/opcache/tests/opt/match_001.phpt b/ext/opcache/tests/opt/match_001.phpt index f244f2624546a..e5fa3ae727cf2 100644 --- a/ext/opcache/tests/opt/match_001.phpt +++ b/ext/opcache/tests/opt/match_001.phpt @@ -9,9 +9,9 @@ opcache.optimization_level=-1 +$y . +$y . match(y) {} ?> --EXPECTF-- -Warning: Undefined variable $y in %smatch_001.php on line 2 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %smatch_001.php on line 2 -Warning: Undefined variable $y in %smatch_001.php on line 2 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %smatch_001.php on line 2 Fatal error: Uncaught Error: Undefined constant "y" in %smatch_001.php:2 Stack trace: diff --git a/ext/opcache/tests/opt/sccp_034.phpt b/ext/opcache/tests/opt/sccp_034.phpt index 8fafc89178a64..ffaedf4d09cd2 100644 --- a/ext/opcache/tests/opt/sccp_034.phpt +++ b/ext/opcache/tests/opt/sccp_034.phpt @@ -10,7 +10,7 @@ is_array(["$y $y"]); ?> DONE --EXPECTF-- -Warning: Undefined variable $y in %ssccp_034.php on line 2 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %ssccp_034.php on line 2 -Warning: Undefined variable $y in %ssccp_034.php on line 2 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %ssccp_034.php on line 2 DONE diff --git a/ext/opcache/tests/opt/sccp_040.phpt b/ext/opcache/tests/opt/sccp_040.phpt index 2f075f5846250..0675387044e46 100644 --- a/ext/opcache/tests/opt/sccp_040.phpt +++ b/ext/opcache/tests/opt/sccp_040.phpt @@ -13,7 +13,7 @@ function f() { f(); ?> --EXPECTF-- -Warning: Undefined variable $y in %ssccp_040.php on line 3 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %ssccp_040.php on line 3 Fatal error: Uncaught Error: Array callback must have exactly two elements in %ssccp_040.php:4 Stack trace: diff --git a/ext/opcache/tests/opt/tmp_001.phpt b/ext/opcache/tests/opt/tmp_001.phpt index 83b679f5f76f1..4582ab5486066 100644 --- a/ext/opcache/tests/opt/tmp_001.phpt +++ b/ext/opcache/tests/opt/tmp_001.phpt @@ -9,7 +9,7 @@ opcache.optimization_level=-1 is_a((int)" $y " + 0); ?> --EXPECTF-- -Warning: Undefined variable $y in %stmp_001.php on line 2 +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %stmp_001.php on line 2 Fatal error: Uncaught ArgumentCountError: is_a() expects at least 2 arguments, 1 given in %stmp_001.php:2 Stack trace: diff --git a/ext/opcache/tests/wrong_inlining_003.phpt b/ext/opcache/tests/wrong_inlining_003.phpt index 744caa257d057..86696fb57ecf5 100644 --- a/ext/opcache/tests/wrong_inlining_003.phpt +++ b/ext/opcache/tests/wrong_inlining_003.phpt @@ -19,5 +19,5 @@ function test() { test(); ?> --EXPECTF-- -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d int(42) diff --git a/ext/pdo_sqlite/tests/bug43831.phpt b/ext/pdo_sqlite/tests/bug43831.phpt index 6dc68f6f6a8f6..bb633eb0fbe0c 100644 --- a/ext/pdo_sqlite/tests/bug43831.phpt +++ b/ext/pdo_sqlite/tests/bug43831.phpt @@ -49,5 +49,5 @@ object(PDO)#%d (0) { object(MyPDO)#%d (0) { } -Warning: Undefined variable $bar in %s on line %d +Warning: Undefined variable $bar (this will become an error in PHP 9.0) in %s on line %d NULL diff --git a/ext/pgsql/tests/bug72195.phpt b/ext/pgsql/tests/bug72195.phpt index 560aaf458cfae..b9675d2c885e1 100644 --- a/ext/pgsql/tests/bug72195.phpt +++ b/ext/pgsql/tests/bug72195.phpt @@ -14,5 +14,5 @@ try { } ?> --EXPECTF-- -Warning: Undefined variable $var1 in %s on line %d +Warning: Undefined variable $var1 (this will become an error in PHP 9.0) in %s on line %d pg_pconnect() expects at most 2 arguments, 4 given diff --git a/ext/reflection/tests/ReflectionParameter_003.phpt b/ext/reflection/tests/ReflectionParameter_003.phpt index 16a422caa4b6f..d9e36f420288c 100644 --- a/ext/reflection/tests/ReflectionParameter_003.phpt +++ b/ext/reflection/tests/ReflectionParameter_003.phpt @@ -56,7 +56,7 @@ foreach($refParameters as $parameter) { hello from test third is jack -Warning: Undefined variable $theIncrement in %s on line %d +Warning: Undefined variable $theIncrement (this will become an error in PHP 9.0) in %s on line %d parameter names from staticMethod method: object(ReflectionParameter)#%d (1) { diff --git a/ext/session/tests/session_decode_variation3.phpt b/ext/session/tests/session_decode_variation3.phpt index f1384d9cacfe3..263348a8e5485 100644 --- a/ext/session/tests/session_decode_variation3.phpt +++ b/ext/session/tests/session_decode_variation3.phpt @@ -33,7 +33,7 @@ ob_end_flush(); Warning: session_start(): Cannot find session serialization handler "blah" - session startup failed in %s on line %d bool(false) -Warning: Undefined global variable $_SESSION in %s on line %d +Warning: Undefined global variable $_SESSION (this will become an error in PHP 9.0) in %s on line %d NULL array(3) { ["foo"]=> diff --git a/ext/session/tests/user_session_module/session_set_save_handler_class_012.phpt b/ext/session/tests/user_session_module/session_set_save_handler_class_012.phpt index d0cff503fd5cf..904329f0dcbed 100644 --- a/ext/session/tests/user_session_module/session_set_save_handler_class_012.phpt +++ b/ext/session/tests/user_session_module/session_set_save_handler_class_012.phpt @@ -45,7 +45,7 @@ var_dump(session_id(), $oldHandler, ini_get('session.save_handler'), $handler->i Open: SessionHandler::open() expects exactly 2 arguments, 0 given -Warning: Undefined global variable $_SESSION in %s on line %d +Warning: Undefined global variable $_SESSION (this will become an error in PHP 9.0) in %s on line %d string(0) "" string(5) "files" string(4) "user" diff --git a/ext/simplexml/tests/SimpleXMLElement_xpath_4.phpt b/ext/simplexml/tests/SimpleXMLElement_xpath_4.phpt index b111b0bfb34a0..57944845d2358 100644 --- a/ext/simplexml/tests/SimpleXMLElement_xpath_4.phpt +++ b/ext/simplexml/tests/SimpleXMLElement_xpath_4.phpt @@ -17,5 +17,5 @@ try { ?> --EXPECTF-- -Warning: Undefined variable $x in %s on line %d +Warning: Undefined variable $x (this will become an error in PHP 9.0) in %s on line %d simplexml_load_string(): Argument #3 ($options) is too large diff --git a/ext/spl/tests/arrayObject_exchangeArray_basic3.phpt b/ext/spl/tests/arrayObject_exchangeArray_basic3.phpt index 49b990be8bdf2..c7c84a2fc4b86 100644 --- a/ext/spl/tests/arrayObject_exchangeArray_basic3.phpt +++ b/ext/spl/tests/arrayObject_exchangeArray_basic3.phpt @@ -84,7 +84,7 @@ array(2) { --> exchangeArray() with no arg: Exception: ArrayObject::exchangeArray() expects exactly 1 argument, 0 given -Warning: Undefined variable $copy in %s on line %d +Warning: Undefined variable $copy (this will become an error in PHP 9.0) in %s on line %d object(ArrayObject)#2 (1) { ["storage":"ArrayObject":private]=> object(C)#3 (2) { @@ -106,7 +106,7 @@ NULL --> exchangeArray() with bad arg type: ArrayObject::exchangeArray(): Argument #1 ($array) must be of type array, null given -Warning: Undefined variable $copy in %s on line %d +Warning: Undefined variable $copy (this will become an error in PHP 9.0) in %s on line %d object(ArrayObject)#3 (1) { ["storage":"ArrayObject":private]=> object(C)#2 (2) { diff --git a/ext/spl/tests/array_026.phpt b/ext/spl/tests/array_026.phpt index 268b39d5e8edd..43a6a4488b99d 100644 --- a/ext/spl/tests/array_026.phpt +++ b/ext/spl/tests/array_026.phpt @@ -8,7 +8,7 @@ $test['d1']['d3'] = 'world'; var_dump($test, $test3['mmmmm']); ?> --EXPECTF-- -Warning: Undefined variable $test3 in %s on line %d +Warning: Undefined variable $test3 (this will become an error in PHP 9.0) in %s on line %d Warning: Trying to access array offset on value of type null in %s on line %d object(ArrayObject)#1 (1) { diff --git a/ext/spl/tests/bug62978.phpt b/ext/spl/tests/bug62978.phpt index 073530926a6f1..47c9fb4f42779 100644 --- a/ext/spl/tests/bug62978.phpt +++ b/ext/spl/tests/bug62978.phpt @@ -32,7 +32,7 @@ NULL Warning: Undefined array key "epic_magic" in %s on line %d NULL -Warning: Undefined variable $c in %s on line %d +Warning: Undefined variable $c (this will become an error in PHP 9.0) in %s on line %d Warning: Trying to access array offset on value of type null in %s on line %d NULL diff --git a/ext/spl/tests/bug72888.phpt b/ext/spl/tests/bug72888.phpt index 5ca99a40a5133..1675f02f665c2 100644 --- a/ext/spl/tests/bug72888.phpt +++ b/ext/spl/tests/bug72888.phpt @@ -14,5 +14,5 @@ var_dump($y); --EXPECTF-- string(60) "Trying to clone an uncloneable object of class SplFileObject" -Warning: Undefined variable $y in %s on line %d +Warning: Undefined variable $y (this will become an error in PHP 9.0) in %s on line %d NULL diff --git a/ext/standard/array.c b/ext/standard/array.c index 6252b61d2042a..125d38c06c2ca 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -2478,7 +2478,7 @@ static void php_compact_var(HashTable *eg_active_symbol_table, zval *return_valu zend_hash_update(Z_ARRVAL_P(return_value), Z_STR_P(entry), &data); } } else { - php_error_docref(NULL, E_WARNING, "Undefined variable $%s", ZSTR_VAL(Z_STR_P(entry))); + php_error_docref(NULL, E_WARNING, "Undefined variable $%s (this will become an error in PHP 9.0)", ZSTR_VAL(Z_STR_P(entry))); } } else if (Z_TYPE_P(entry) == IS_ARRAY) { if (Z_REFCOUNTED_P(entry)) { diff --git a/ext/standard/tests/array/array_fill_keys_variation4.phpt b/ext/standard/tests/array/array_fill_keys_variation4.phpt index b243a5fb08bc7..a4e77ac535adc 100644 --- a/ext/standard/tests/array/array_fill_keys_variation4.phpt +++ b/ext/standard/tests/array/array_fill_keys_variation4.phpt @@ -77,7 +77,7 @@ array(1) { -- Testing array_fill_keys() function with unset var -- -Warning: Undefined variable $unset_var in %s on line %d +Warning: Undefined variable $unset_var (this will become an error in PHP 9.0) in %s on line %d array(1) { ["one"]=> NULL diff --git a/ext/standard/tests/array/bug30074.phpt b/ext/standard/tests/array/bug30074.phpt index 05546f3d1d312..ca3764c56b1e9 100644 --- a/ext/standard/tests/array/bug30074.phpt +++ b/ext/standard/tests/array/bug30074.phpt @@ -7,7 +7,7 @@ var_dump(array($a)); echo "Done\n"; ?> --EXPECTF-- -Warning: Undefined variable $undefined in %s on line %d +Warning: Undefined variable $undefined (this will become an error in PHP 9.0) in %s on line %d array(1) { [0]=> NULL diff --git a/ext/standard/tests/array/bug69198.phpt b/ext/standard/tests/array/bug69198.phpt index ab43df7e5cb6b..528226601b260 100644 --- a/ext/standard/tests/array/bug69198.phpt +++ b/ext/standard/tests/array/bug69198.phpt @@ -9,7 +9,7 @@ $result = compact('willNeverBeDefined'); var_dump($result, empty($result), $result === array(), empty($willNeverBeDefined)); ?> --EXPECTF-- -Warning: compact(): Undefined variable $willNeverBeDefined in %s on line %d +Warning: compact(): Undefined variable $willNeverBeDefined (this will become an error in PHP 9.0) in %s on line %d array(0) { } bool(true) diff --git a/ext/standard/tests/array/compact.phpt b/ext/standard/tests/array/compact.phpt index d4c6236c03e47..a63748daf00ba 100644 --- a/ext/standard/tests/array/compact.phpt +++ b/ext/standard/tests/array/compact.phpt @@ -20,7 +20,7 @@ var_dump($result); ?> --EXPECTF-- -Warning: compact(): Undefined variable $c\u0327ity in %s on line %d +Warning: compact(): Undefined variable $c\u0327ity (this will become an error in PHP 9.0) in %s on line %d array(2) { ["event"]=> string(8) "SIGGRAPH" diff --git a/ext/standard/tests/array/compact_basic.phpt b/ext/standard/tests/array/compact_basic.phpt index ec9935b56acdc..5425383378b6f 100644 --- a/ext/standard/tests/array/compact_basic.phpt +++ b/ext/standard/tests/array/compact_basic.phpt @@ -67,7 +67,7 @@ array(2) { float(0.2) } -Warning: compact(): Undefined variable $g in %s on line %d +Warning: compact(): Undefined variable $g (this will become an error in PHP 9.0) in %s on line %d array(0) { } Done diff --git a/ext/standard/tests/array/compact_variation2.phpt b/ext/standard/tests/array/compact_variation2.phpt index 2e3661d50b90b..9ebb0dd63afcf 100644 --- a/ext/standard/tests/array/compact_variation2.phpt +++ b/ext/standard/tests/array/compact_variation2.phpt @@ -20,7 +20,7 @@ f(); --EXPECTF-- *** Testing compact() : usage variations - variables outside of current scope *** -Warning: compact(): Undefined variable $a in %s on line %d +Warning: compact(): Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d array(2) { ["b"]=> string(3) "f.b" @@ -28,7 +28,7 @@ array(2) { string(3) "f.c" } -Warning: compact(): Undefined variable $a in %s on line %d +Warning: compact(): Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d array(2) { ["b"]=> string(3) "f.b" diff --git a/ext/standard/tests/class_object/get_class_methods_variation_001.phpt b/ext/standard/tests/class_object/get_class_methods_variation_001.phpt index 3fc707c15ec38..4aec3edd57347 100644 --- a/ext/standard/tests/class_object/get_class_methods_variation_001.phpt +++ b/ext/standard/tests/class_object/get_class_methods_variation_001.phpt @@ -80,8 +80,8 @@ echo "Done"; ?> --EXPECT-- *** Testing get_class_methods() : usage variations *** -Error: 2 - Undefined variable $undefined_var -Error: 2 - Undefined variable $unset_var +Error: 2 - Undefined variable $undefined_var (this will become an error in PHP 9.0) +Error: 2 - Undefined variable $unset_var (this will become an error in PHP 9.0) Arg value 0 get_class_methods(): Argument #1 ($object_or_class) must be an object or a valid class name, int given diff --git a/ext/standard/tests/class_object/get_class_variation_001.phpt b/ext/standard/tests/class_object/get_class_variation_001.phpt index 67c468cace7c4..557d4456426f5 100644 --- a/ext/standard/tests/class_object/get_class_variation_001.phpt +++ b/ext/standard/tests/class_object/get_class_variation_001.phpt @@ -74,9 +74,9 @@ echo "Done"; --EXPECTF-- *** Testing get_class() : usage variations *** -Warning: Undefined variable $undefined_var in %s on line %d +Warning: Undefined variable $undefined_var (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $unset_var in %s on line %d +Warning: Undefined variable $unset_var (this will become an error in PHP 9.0) in %s on line %d Arg value: 0 (type: integer) get_class(): Argument #1 ($object) must be of type object, int given diff --git a/ext/standard/tests/class_object/get_parent_class_variation_002.phpt b/ext/standard/tests/class_object/get_parent_class_variation_002.phpt index 529f13ce7119c..94dc3f4416124 100644 --- a/ext/standard/tests/class_object/get_parent_class_variation_002.phpt +++ b/ext/standard/tests/class_object/get_parent_class_variation_002.phpt @@ -83,8 +83,8 @@ echo "Done"; ?> --EXPECT-- *** Testing get_parent_class() : usage variations *** -Error: 2 - Undefined variable $undefined_var -Error: 2 - Undefined variable $unset_var +Error: 2 - Undefined variable $undefined_var (this will become an error in PHP 9.0) +Error: 2 - Undefined variable $unset_var (this will become an error in PHP 9.0) Arg value 0 get_parent_class(): Argument #1 ($object_or_class) must be an object or a valid class name, int given diff --git a/ext/standard/tests/class_object/is_a_variation_001.phpt b/ext/standard/tests/class_object/is_a_variation_001.phpt index 4f77b9735a7e7..ebc19570a3061 100644 --- a/ext/standard/tests/class_object/is_a_variation_001.phpt +++ b/ext/standard/tests/class_object/is_a_variation_001.phpt @@ -72,9 +72,9 @@ echo "Done"; --EXPECTF-- *** Testing is_a() : usage variations *** -Warning: Undefined variable $undefined_var in %s on line %d +Warning: Undefined variable $undefined_var (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $unset_var in %s on line %d +Warning: Undefined variable $unset_var (this will become an error in PHP 9.0) in %s on line %d Arg value 0 bool(false) diff --git a/ext/standard/tests/class_object/is_subclass_of_variation_001.phpt b/ext/standard/tests/class_object/is_subclass_of_variation_001.phpt index f03841dbac7dc..aed0fcd80c990 100644 --- a/ext/standard/tests/class_object/is_subclass_of_variation_001.phpt +++ b/ext/standard/tests/class_object/is_subclass_of_variation_001.phpt @@ -81,8 +81,8 @@ echo "Done"; ?> --EXPECT-- *** Testing is_subclass_of() : usage variations *** -Error: 2 - Undefined variable $undefined_var -Error: 2 - Undefined variable $unset_var +Error: 2 - Undefined variable $undefined_var (this will become an error in PHP 9.0) +Error: 2 - Undefined variable $unset_var (this will become an error in PHP 9.0) Arg value 0 bool(false) diff --git a/ext/standard/tests/class_object/is_subclass_of_variation_004.phpt b/ext/standard/tests/class_object/is_subclass_of_variation_004.phpt index d045a4c1a915c..32e8fdb08f16d 100644 --- a/ext/standard/tests/class_object/is_subclass_of_variation_004.phpt +++ b/ext/standard/tests/class_object/is_subclass_of_variation_004.phpt @@ -81,8 +81,8 @@ echo "Done"; ?> --EXPECT-- *** Testing is_subclass_of() : usage variations *** -Error: 2 - Undefined variable $undefined_var -Error: 2 - Undefined variable $unset_var +Error: 2 - Undefined variable $undefined_var (this will become an error in PHP 9.0) +Error: 2 - Undefined variable $unset_var (this will become an error in PHP 9.0) Arg value 0 bool(false) diff --git a/ext/standard/tests/class_object/method_exists_variation_001.phpt b/ext/standard/tests/class_object/method_exists_variation_001.phpt index 5e6d34f550eea..50072c8a141f8 100644 --- a/ext/standard/tests/class_object/method_exists_variation_001.phpt +++ b/ext/standard/tests/class_object/method_exists_variation_001.phpt @@ -83,8 +83,8 @@ echo "Done"; ?> --EXPECT-- *** Testing method_exists() : usage variations *** -Error: 2 - Undefined variable $undefined_var -Error: 2 - Undefined variable $unset_var +Error: 2 - Undefined variable $undefined_var (this will become an error in PHP 9.0) +Error: 2 - Undefined variable $unset_var (this will become an error in PHP 9.0) Arg value 0 method_exists(): Argument #1 ($object_or_class) must be of type object|string, int given diff --git a/ext/standard/tests/file/005_variation2.phpt b/ext/standard/tests/file/005_variation2.phpt index 55d1d6666098c..8dcd0b9c878ce 100644 --- a/ext/standard/tests/file/005_variation2.phpt +++ b/ext/standard/tests/file/005_variation2.phpt @@ -55,7 +55,7 @@ echo "Done"; *** testing touch *** -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d NULL bool(false) bool(false) diff --git a/ext/standard/tests/general_functions/bug32647.phpt b/ext/standard/tests/general_functions/bug32647.phpt index 2e388d4742060..3a36ed7fdc589 100644 --- a/ext/standard/tests/general_functions/bug32647.phpt +++ b/ext/standard/tests/general_functions/bug32647.phpt @@ -72,10 +72,10 @@ register_shutdown_function(array($obj,'barfoo')); ?> --EXPECTF-- -Warning: Undefined variable $obj in %s on line %d +Warning: Undefined variable $obj (this will become an error in PHP 9.0) in %s on line %d register_shutdown_function(): Argument #1 ($callback) must be a valid callback, first array member is not a valid class name or object -Warning: Undefined variable $obj in %s on line %d +Warning: Undefined variable $obj (this will become an error in PHP 9.0) in %s on line %d register_shutdown_function(): Argument #1 ($callback) must be a valid callback, first array member is not a valid class name or object register_shutdown_function(): Argument #1 ($callback) must be a valid callback, first array member is not a valid class name or object register_shutdown_function(): Argument #1 ($callback) must be a valid callback, class bar does not have a method "foo" diff --git a/ext/standard/tests/general_functions/bug60723.phpt b/ext/standard/tests/general_functions/bug60723.phpt index fff1b7879046f..0589acdfd1daf 100644 --- a/ext/standard/tests/general_functions/bug60723.phpt +++ b/ext/standard/tests/general_functions/bug60723.phpt @@ -14,6 +14,6 @@ readfile($log); unlink($log); ?> --EXPECTF-- -Warning: Undefined variable $aa in %s on line %d -[%s ASIA/Chongqing] PHP Warning: Undefined variable $aa in %s on line %d +Warning: Undefined variable $aa (this will become an error in PHP 9.0) in %s on line %d +[%s ASIA/Chongqing] PHP Warning: Undefined variable $aa (this will become an error in PHP 9.0) in %s on line %d [%s ASIA/Chongqing] dummy diff --git a/ext/standard/tests/general_functions/debug_zval_dump_v.phpt b/ext/standard/tests/general_functions/debug_zval_dump_v.phpt index 17132874bf9cb..fdc4a798bda4f 100644 --- a/ext/standard/tests/general_functions/debug_zval_dump_v.phpt +++ b/ext/standard/tests/general_functions/debug_zval_dump_v.phpt @@ -142,7 +142,7 @@ int(10) -- Value of $ref_first_var -- -Warning: Undefined variable $ref_first_var in %s on line %d +Warning: Undefined variable $ref_first_var (this will become an error in PHP 9.0) in %s on line %d NULL -- Value of $first_var -- @@ -161,7 +161,7 @@ int(10) -- Value of $var_3: (after unsetting var_3) -- -Warning: Undefined variable $var_3 in %s on line %d +Warning: Undefined variable $var_3 (this will become an error in PHP 9.0) in %s on line %d NULL -- Value of $var_2: -- @@ -172,7 +172,7 @@ int(10) -- Value of $var_1: (after unsetting variable_1) -- -Warning: Undefined variable $var_1 in %s on line %d +Warning: Undefined variable $var_1 (this will become an error in PHP 9.0) in %s on line %d NULL -- Value of $var_2: -- diff --git a/ext/standard/tests/general_functions/error_clear_last.phpt b/ext/standard/tests/general_functions/error_clear_last.phpt index 88a59d949a436..c2ec24aa1af8d 100644 --- a/ext/standard/tests/general_functions/error_clear_last.phpt +++ b/ext/standard/tests/general_functions/error_clear_last.phpt @@ -22,7 +22,7 @@ array(4) { ["type"]=> int(2) ["message"]=> - string(21) "Undefined variable $b" + string(60) "Undefined variable $b (this will become an error in PHP 9.0)" ["file"]=> string(%d) "%s" ["line"]=> diff --git a/ext/standard/tests/general_functions/error_get_last.phpt b/ext/standard/tests/general_functions/error_get_last.phpt index 1e7516970ef07..ed916d1d411b8 100644 --- a/ext/standard/tests/general_functions/error_get_last.phpt +++ b/ext/standard/tests/general_functions/error_get_last.phpt @@ -22,12 +22,12 @@ NULL error_get_last() expects exactly 0 arguments, 1 given NULL -Warning: Undefined variable $b in %s on line %d +Warning: Undefined variable $b (this will become an error in PHP 9.0) in %s on line %d array(4) { ["type"]=> int(2) ["message"]=> - string(21) "Undefined variable $b" + string(60) "Undefined variable $b (this will become an error in PHP 9.0)" ["file"]=> string(%d) "%s" ["line"]=> diff --git a/ext/standard/tests/image/getimagesize_variation2.phpt b/ext/standard/tests/image/getimagesize_variation2.phpt index 045d9141a6bdc..e72560099aef9 100644 --- a/ext/standard/tests/image/getimagesize_variation2.phpt +++ b/ext/standard/tests/image/getimagesize_variation2.phpt @@ -74,8 +74,8 @@ foreach($values as $key => $value) { ?> --EXPECT-- *** Testing getimagesize() : usage variations *** -Error: 2 - Undefined variable $undefined_var -Error: 2 - Undefined variable $unset_var +Error: 2 - Undefined variable $undefined_var (this will become an error in PHP 9.0) +Error: 2 - Undefined variable $unset_var (this will become an error in PHP 9.0) -- Arg value 0 -- string(28) "4a46494600010201006000600000" diff --git a/ext/standard/tests/serialize/serialization_objects_002.phpt b/ext/standard/tests/serialize/serialization_objects_002.phpt index 26766d80f0741..936f9a27e86f1 100644 --- a/ext/standard/tests/serialize/serialization_objects_002.phpt +++ b/ext/standard/tests/serialize/serialization_objects_002.phpt @@ -71,9 +71,9 @@ echo "\nDone"; --EXPECTF-- --- Testing Variations in objects --- -Warning: Undefined variable $file_handle in %s on line %d +Warning: Undefined variable $file_handle (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $file_handle in %s on line %d +Warning: Undefined variable $file_handle (this will become an error in PHP 9.0) in %s on line %d After Serialization => string(493) "O:1:"C":8:{s:1:"a";i:10;s:1:"b";s:6:"string";s:1:"c";b:1;s:1:"d";d:-2.344440000000000079438677857979200780391693115234375;s:1:"e";a:7:{i:0;i:1;i:1;d:2.220000000000000195399252334027551114559173583984375;i:2;s:6:"string";i:3;b:1;i:4;a:0:{}i:5;O:7:"members":3:{s:20:"%0members%0var_private";i:10;s:16:"%0*%0var_protected";s:6:"string";s:10:"var_public";a:3:{i:0;d:-100.1230000000000046611603465862572193145751953125;i:1;s:6:"string";i:2;b:1;}}i:6;N;}s:1:"f";O:9:"nomembers":0:{}s:1:"g";N;s:1:"h";N;}" After Unserialization => object(C)#%d (8) { ["a"]=> diff --git a/ext/standard/tests/strings/crc32_variation3.phpt b/ext/standard/tests/strings/crc32_variation3.phpt index 1f5905f3a9977..8a2293957c8d3 100644 --- a/ext/standard/tests/strings/crc32_variation3.phpt +++ b/ext/standard/tests/strings/crc32_variation3.phpt @@ -71,9 +71,9 @@ echo "Done"; --EXPECTF-- *** Testing crc32() : with different strings in double quotes *** -Warning: Undefined variable $hello in %s on line %d +Warning: Undefined variable $hello (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $world in %s on line %d +Warning: Undefined variable $world (this will become an error in PHP 9.0) in %s on line %d -- Iteration 1 -- int(0) diff --git a/ext/standard/tests/strings/lcfirst.phpt b/ext/standard/tests/strings/lcfirst.phpt index 1abc31d0b3b51..15692a49aa655 100644 --- a/ext/standard/tests/strings/lcfirst.phpt +++ b/ext/standard/tests/strings/lcfirst.phpt @@ -189,7 +189,7 @@ string(0) "" string(5) "world" string(7) "world'S" -Warning: Undefined variable $strS in %s on line %d +Warning: Undefined variable $strS (this will become an error in PHP 9.0) in %s on line %d string(0) "" string(6) "worldS" string(6) "worldS" diff --git a/ext/standard/tests/strings/str_replace_variation3.phpt b/ext/standard/tests/strings/str_replace_variation3.phpt index 07c6ef7da3467..79cb47bb73b11 100644 --- a/ext/standard/tests/strings/str_replace_variation3.phpt +++ b/ext/standard/tests/strings/str_replace_variation3.phpt @@ -220,7 +220,7 @@ int(0) string(5) "FOUND" string(5) "FOUND" -Warning: Undefined variable $strS in %s on line %d +Warning: Undefined variable $strS (this will become an error in PHP 9.0) in %s on line %d string(0) "" string(5) "FOUND" string(5) "FOUND" diff --git a/ext/standard/tests/strings/str_word_count1.phpt b/ext/standard/tests/strings/str_word_count1.phpt index c4f8ecf40a0f3..16d2ecaace7eb 100644 --- a/ext/standard/tests/strings/str_word_count1.phpt +++ b/ext/standard/tests/strings/str_word_count1.phpt @@ -23,8 +23,8 @@ var_dump($a); int(0) str_word_count(): Argument #2 ($format) must be a valid format value -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d str_word_count(): Argument #2 ($format) must be a valid format value -Warning: Undefined variable $a in %s on line %d +Warning: Undefined variable $a (this will become an error in PHP 9.0) in %s on line %d NULL diff --git a/ext/standard/tests/strings/strcasecmp.phpt b/ext/standard/tests/strings/strcasecmp.phpt index e55b2a684fb21..b85f7ad303100 100644 --- a/ext/standard/tests/strings/strcasecmp.phpt +++ b/ext/standard/tests/strings/strcasecmp.phpt @@ -542,7 +542,7 @@ int(-%d) int(-%d) int(-%d) -Warning: Undefined variable $strS in %s on line %d +Warning: Undefined variable $strS (this will become an error in PHP 9.0) in %s on line %d int(%d) int(-%d) int(-%d) diff --git a/ext/standard/tests/strings/strcmp.phpt b/ext/standard/tests/strings/strcmp.phpt index 5310566d53b60..95764cd1809ba 100644 --- a/ext/standard/tests/strings/strcmp.phpt +++ b/ext/standard/tests/strings/strcmp.phpt @@ -550,7 +550,7 @@ int(-%d) int(-%d) int(-%d) -Warning: Undefined variable $strS in %s on line %d +Warning: Undefined variable $strS (this will become an error in PHP 9.0) in %s on line %d int(%d) int(-%d) int(-%d) diff --git a/ext/standard/tests/strings/strlen.phpt b/ext/standard/tests/strings/strlen.phpt index b98111f15e672..68302dee026fe 100644 --- a/ext/standard/tests/strings/strlen.phpt +++ b/ext/standard/tests/strings/strlen.phpt @@ -181,7 +181,7 @@ int(0) int(5) int(7) -Warning: Undefined variable $strS in %s on line %d +Warning: Undefined variable $strS (this will become an error in PHP 9.0) in %s on line %d int(0) int(6) int(6) diff --git a/ext/standard/tests/strings/strpos.phpt b/ext/standard/tests/strings/strpos.phpt index 05913cc1f03b5..561dcca5bbb92 100644 --- a/ext/standard/tests/strings/strpos.phpt +++ b/ext/standard/tests/strings/strpos.phpt @@ -271,7 +271,7 @@ bool(false) int(7) int(7) -Warning: Undefined variable $needleS in %s on line %d +Warning: Undefined variable $needleS (this will become an error in PHP 9.0) in %s on line %d int(0) int(7) int(7) diff --git a/ext/standard/tests/strings/strstr.phpt b/ext/standard/tests/strings/strstr.phpt index 0d4065b54fb2b..6f64eb924a225 100644 --- a/ext/standard/tests/strings/strstr.phpt +++ b/ext/standard/tests/strings/strstr.phpt @@ -338,7 +338,7 @@ bool(false) string(5) "world" string(7) "world'S" -Warning: Undefined variable $needleS in %s on line %d +Warning: Undefined variable $needleS (this will become an error in PHP 9.0) in %s on line %d string(13) "Hello, worldS" string(6) "worldS" string(6) "worldS" diff --git a/ext/standard/tests/strings/ucfirst.phpt b/ext/standard/tests/strings/ucfirst.phpt index 5389579eb2f38..87b4b235da8f3 100644 --- a/ext/standard/tests/strings/ucfirst.phpt +++ b/ext/standard/tests/strings/ucfirst.phpt @@ -157,7 +157,7 @@ string(0) "" string(5) "World" string(7) "World'S" -Warning: Undefined variable $strS in %s on line %d +Warning: Undefined variable $strS (this will become an error in PHP 9.0) in %s on line %d string(0) "" string(6) "WorldS" string(6) "WorldS" diff --git a/ext/zend_test/tests/observer_error_03.phpt b/ext/zend_test/tests/observer_error_03.phpt index b9f5ae75cc0d9..459c4eaf72294 100644 --- a/ext/zend_test/tests/observer_error_03.phpt +++ b/ext/zend_test/tests/observer_error_03.phpt @@ -31,7 +31,7 @@ echo 'Done.' . PHP_EOL; -Warning: Undefined variable $this_does_not_exit in %s on line %d +Warning: Undefined variable $this_does_not_exit (this will become an error in PHP 9.0) in %s on line %d After error. diff --git a/ext/zend_test/tests/observer_retval_05.phpt b/ext/zend_test/tests/observer_retval_05.phpt index 7d05cb92986b0..98e617c7ec3a8 100644 --- a/ext/zend_test/tests/observer_retval_05.phpt +++ b/ext/zend_test/tests/observer_retval_05.phpt @@ -23,11 +23,11 @@ echo 'Done' . PHP_EOL; -Warning: Undefined variable $i_do_not_exist in %s on line %d +Warning: Undefined variable $i_do_not_exist (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $i_do_not_exist in %s on line %d +Warning: Undefined variable $i_do_not_exist (this will become an error in PHP 9.0) in %s on line %d Done diff --git a/tests/basic/025.phpt b/tests/basic/025.phpt index 6b7340a860905..1b1524b5cbaba 100644 --- a/tests/basic/025.phpt +++ b/tests/basic/025.phpt @@ -13,7 +13,7 @@ var_dump($_POST, $HTTP_RAW_POST_DATA); --EXPECTF-- Warning: PHP Request Startup: POST Content-Length of 2050 bytes exceeds the limit of 1024 bytes in Unknown on line 0 -Warning: Undefined variable $HTTP_RAW_POST_DATA in %s on line %d +Warning: Undefined variable $HTTP_RAW_POST_DATA (this will become an error in PHP 9.0) in %s on line %d array(0) { } NULL diff --git a/tests/basic/enable_post_data_reading_01.phpt b/tests/basic/enable_post_data_reading_01.phpt index 9ce4fc288a434..02787238f75e4 100644 --- a/tests/basic/enable_post_data_reading_01.phpt +++ b/tests/basic/enable_post_data_reading_01.phpt @@ -19,7 +19,7 @@ array(0) { array(0) { } -Warning: Undefined variable $HTTP_RAW_POST_DATA in %s on line %d +Warning: Undefined variable $HTTP_RAW_POST_DATA (this will become an error in PHP 9.0) in %s on line %d NULL string(9) "a=1&b=ZYX" string(9) "a=1&b=ZYX" diff --git a/tests/basic/enable_post_data_reading_03.phpt b/tests/basic/enable_post_data_reading_03.phpt index c0842382eaefc..65871e16708fc 100644 --- a/tests/basic/enable_post_data_reading_03.phpt +++ b/tests/basic/enable_post_data_reading_03.phpt @@ -20,7 +20,7 @@ array(0) { array(0) { } -Warning: Undefined variable $HTTP_RAW_POST_DATA in %s on line %d +Warning: Undefined variable $HTTP_RAW_POST_DATA (this will become an error in PHP 9.0) in %s on line %d NULL string(9) "a=1&b=ZYX" string(9) "a=1&b=ZYX" diff --git a/tests/basic/enable_post_data_reading_04.phpt b/tests/basic/enable_post_data_reading_04.phpt index d309169cb0581..03f10681d0b02 100644 --- a/tests/basic/enable_post_data_reading_04.phpt +++ b/tests/basic/enable_post_data_reading_04.phpt @@ -20,7 +20,7 @@ array(0) { array(0) { } -Warning: Undefined variable $HTTP_RAW_POST_DATA in %s on line %d +Warning: Undefined variable $HTTP_RAW_POST_DATA (this will become an error in PHP 9.0) in %s on line %d NULL string(9) "a=1&b=ZYX" string(9) "a=1&b=ZYX" diff --git a/tests/classes/constants_basic_001.phpt b/tests/classes/constants_basic_001.phpt index 18ac2416f5dbc..4b61fdff16315 100644 --- a/tests/classes/constants_basic_001.phpt +++ b/tests/classes/constants_basic_001.phpt @@ -55,7 +55,7 @@ Class constant declarations echo "\nYou should not see this."; ?> --EXPECTF-- -Warning: Undefined variable $undef in %s on line %d +Warning: Undefined variable $undef (this will become an error in PHP 9.0) in %s on line %d Attempt to access various kinds of class constants: int(1) diff --git a/tests/lang/bison1.phpt b/tests/lang/bison1.phpt index 9af2af7b8b739..a6bb22bb8777f 100644 --- a/tests/lang/bison1.phpt +++ b/tests/lang/bison1.phpt @@ -5,5 +5,5 @@ Bison weirdness echo "blah-$foo\n"; ?> --EXPECTF-- -Warning: Undefined variable $foo in %s on line %d +Warning: Undefined variable $foo (this will become an error in PHP 9.0) in %s on line %d blah- diff --git a/tests/lang/bug23584.phpt b/tests/lang/bug23584.phpt index abc3532a6341d..b05c302931409 100644 --- a/tests/lang/bug23584.phpt +++ b/tests/lang/bug23584.phpt @@ -10,4 +10,4 @@ echo $foo; ?> --EXPECTF-- -Warning: Undefined variable $foo in %s on line 6 +Warning: Undefined variable $foo (this will become an error in PHP 9.0) in %s on line 6 diff --git a/tests/lang/bug25922.phpt b/tests/lang/bug25922.phpt index a6b526ab780fa..7f2d46503b480 100644 --- a/tests/lang/bug25922.phpt +++ b/tests/lang/bug25922.phpt @@ -19,6 +19,6 @@ function test() test(); ?> --EXPECT-- -Undefined variable $data +Undefined variable $data (this will become an error in PHP 9.0) Trying to access array offset on value of type null Undefined index here: '' diff --git a/tests/lang/passByReference_003.phpt b/tests/lang/passByReference_003.phpt index 11c3e32c50bed..45abc288917ab 100644 --- a/tests/lang/passByReference_003.phpt +++ b/tests/lang/passByReference_003.phpt @@ -25,7 +25,7 @@ var_dump($undef2) --EXPECTF-- Passing undefined by value -Warning: Undefined variable $undef1 in %s on line %d +Warning: Undefined variable $undef1 (this will become an error in PHP 9.0) in %s on line %d Warning: Trying to access array offset on value of type null in %s on line %d @@ -34,7 +34,7 @@ NULL After call -Warning: Undefined variable $undef1 in %s on line %d +Warning: Undefined variable $undef1 (this will become an error in PHP 9.0) in %s on line %d NULL Passing undefined by reference diff --git a/tests/lang/passByReference_005.phpt b/tests/lang/passByReference_005.phpt index d839b465d2953..0304883db6a4b 100644 --- a/tests/lang/passByReference_005.phpt +++ b/tests/lang/passByReference_005.phpt @@ -170,31 +170,31 @@ var_dump($u1, $u2); --EXPECTF-- ---- Pass by ref / pass by val: functions ---- -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d NULL string(11) "Ref changed" -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u2 in %s on line %d +Warning: Undefined variable $u2 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u2 in %s on line %d +Warning: Undefined variable $u2 (this will become an error in PHP 9.0) in %s on line %d NULL NULL -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d NULL string(11) "Ref changed" -Warning: Undefined variable $u2 in %s on line %d +Warning: Undefined variable $u2 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u2 in %s on line %d +Warning: Undefined variable $u2 (this will become an error in PHP 9.0) in %s on line %d string(11) "Ref changed" NULL string(12) "Ref1 changed" @@ -203,31 +203,31 @@ string(12) "Ref2 changed" ---- Pass by ref / pass by val: static method calls ---- -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d NULL string(11) "Ref changed" -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u2 in %s on line %d +Warning: Undefined variable $u2 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u2 in %s on line %d +Warning: Undefined variable $u2 (this will become an error in PHP 9.0) in %s on line %d NULL NULL -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d NULL string(11) "Ref changed" -Warning: Undefined variable $u2 in %s on line %d +Warning: Undefined variable $u2 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u2 in %s on line %d +Warning: Undefined variable $u2 (this will become an error in PHP 9.0) in %s on line %d string(11) "Ref changed" NULL string(12) "Ref1 changed" @@ -236,37 +236,37 @@ string(12) "Ref2 changed" ---- Pass by ref / pass by val: instance method calls ---- -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d NULL string(11) "Ref changed" -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d NULL string(11) "Ref changed" -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u2 in %s on line %d +Warning: Undefined variable $u2 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u2 in %s on line %d +Warning: Undefined variable $u2 (this will become an error in PHP 9.0) in %s on line %d NULL NULL -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u1 in %s on line %d +Warning: Undefined variable $u1 (this will become an error in PHP 9.0) in %s on line %d NULL string(11) "Ref changed" -Warning: Undefined variable $u2 in %s on line %d +Warning: Undefined variable $u2 (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $u2 in %s on line %d +Warning: Undefined variable $u2 (this will become an error in PHP 9.0) in %s on line %d string(11) "Ref changed" NULL string(12) "Ref1 changed" diff --git a/tests/lang/short_tags.004.phpt b/tests/lang/short_tags.004.phpt index 4111475e5edff..167c736819edf 100644 --- a/tests/lang/short_tags.004.phpt +++ b/tests/lang/short_tags.004.phpt @@ -29,6 +29,6 @@ This gets echoed twice -Warning: Undefined variable $b in %s on line %d +Warning: Undefined variable $b (this will become an error in PHP 9.0) in %s on line %d -Warning: Undefined variable $b in %s on line %d +Warning: Undefined variable $b (this will become an error in PHP 9.0) in %s on line %d