From 9f14eb114b4edc62581b941c1eba898caab52759 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Fri, 23 Aug 2019 14:49:50 +0200 Subject: [PATCH] Fix bug77812-*.phpt Undefined constants error as of PHP 8.0.0. --- ext/readline/tests/bug77812-libedit.phpt | 5 ++++- ext/readline/tests/bug77812-readline.phpt | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ext/readline/tests/bug77812-libedit.phpt b/ext/readline/tests/bug77812-libedit.phpt index 478274a19a..0c68a2d5c8 100644 --- a/ext/readline/tests/bug77812-libedit.phpt +++ b/ext/readline/tests/bug77812-libedit.phpt @@ -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 diff --git a/ext/readline/tests/bug77812-readline.phpt b/ext/readline/tests/bug77812-readline.phpt index 32d9f4d960..a3917ccaba 100644 --- a/ext/readline/tests/bug77812-readline.phpt +++ b/ext/readline/tests/bug77812-readline.phpt @@ -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 << FOOL <<< > FOO -- 2.40.0