]> granicus.if.org Git - php/commitdiff
Fix bug77812-*.phpt
authorChristoph M. Becker <cmbecker69@gmx.de>
Fri, 23 Aug 2019 12:49:50 +0000 (14:49 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Fri, 23 Aug 2019 12:49:50 +0000 (14:49 +0200)
Undefined constants error as of PHP 8.0.0.

ext/readline/tests/bug77812-libedit.phpt
ext/readline/tests/bug77812-readline.phpt

index 478274a19a46fbfff625fc2f0ecdd8987f7d2b3c..0c68a2d5c82afeb0e952baf34e2565efe99e638b 100644 (file)
@@ -29,6 +29,9 @@ bar
 xx
 xxx
 
-Warning: Use of undefined constant FOO - assumed 'FOO' (this will throw an Error in a future version of PHP) in php shell code on line %d
+Warning: Uncaught Error: Undefined constant 'FOO' in php shell code:1
+Stack trace:
+#0 {main}
+  thrown in php shell code on line 1
 FOOL1
 FOO42
index 32d9f4d96045cf9f9ae867cf058170eac98d119b..a3917ccaba508d7ff360d9281d265c75073ed52c 100644 (file)
@@ -40,7 +40,10 @@ xxx
 php > FOO
 php > ;
 
-Warning: Use of undefined constant FOO - assumed 'FOO' (this will throw an Error in a future version of PHP) in php shell code on line %d
+Warning: Uncaught Error: Undefined constant 'FOO' in php shell code:1
+Stack trace:
+#0 {main}
+  thrown in php shell code on line 1
 php > echo <<<FOO
 <<< > FOOL
 <<< > FOO