Skip to content

Commit 9f14eb1

Browse files
committed
Fix bug77812-*.phpt
Undefined constants error as of PHP 8.0.0.
1 parent aa3f9c5 commit 9f14eb1

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

ext/readline/tests/bug77812-libedit.phpt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ bar
2929
xx
3030
xxx
3131

32-
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
32+
Warning: Uncaught Error: Undefined constant 'FOO' in php shell code:1
33+
Stack trace:
34+
#0 {main}
35+
thrown in php shell code on line 1
3336
FOOL1
3437
FOO42

ext/readline/tests/bug77812-readline.phpt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ xxx
4040
php > FOO
4141
php > ;
4242

43-
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
43+
Warning: Uncaught Error: Undefined constant 'FOO' in php shell code:1
44+
Stack trace:
45+
#0 {main}
46+
thrown in php shell code on line 1
4447
php > echo <<<FOO
4548
<<< > FOOL
4649
<<< > FOO

0 commit comments

Comments
 (0)