diff options
| author | jvoisin | 2026-05-10 00:09:44 +0200 |
|---|---|---|
| committer | jvoisin | 2026-05-10 00:09:44 +0200 |
| commit | 0cc8e708ebbff02abe7e3c2d0dc0660585ccd98c (patch) | |
| tree | a97dac5a9c2a301393c1d3960748307b7f33e0b9 /src/tests/disable_function/disabled_function_echo_2.phpt | |
| parent | bcec0cafc9edbf1a563f184debf01169aed64c85 (diff) | |
Skip a test on ≥PHP8.5
PHP is now optimizing `echo A,B,C` into `echo A B C`, so the test is pointless.
Diffstat (limited to 'src/tests/disable_function/disabled_function_echo_2.phpt')
| -rw-r--r-- | src/tests/disable_function/disabled_function_echo_2.phpt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tests/disable_function/disabled_function_echo_2.phpt b/src/tests/disable_function/disabled_function_echo_2.phpt index c1d9817..e519ec4 100644 --- a/src/tests/disable_function/disabled_function_echo_2.phpt +++ b/src/tests/disable_function/disabled_function_echo_2.phpt | |||
| @@ -2,13 +2,15 @@ | |||
| 2 | Echo hooking | 2 | Echo hooking |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> |
| 5 | <?php if (PHP_VERSION_ID >= 80500) print "skip"; ?> | ||
| 5 | --INI-- | 6 | --INI-- |
| 6 | sp.configuration_file={PWD}/config/disabled_function_echo.ini | 7 | sp.configuration_file={PWD}/config/disabled_function_echo.ini |
| 7 | --FILE-- | 8 | --FILE-- |
| 8 | <?php | 9 | <?php |
| 9 | echo "qwe"; | 10 | echo "qwe"; |
| 10 | echo "1", "oops"; | 11 | echo "1"; |
| 12 | echo "oops"; | ||
| 11 | ?> | 13 | ?> |
| 12 | --EXPECTF-- | 14 | --EXPECTF-- |
| 13 | qwe1 | 15 | qwe1 |
| 14 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'echo' in %a/disabled_function_echo_2.php on line 3 | 16 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'echo' in %a/disabled_function_echo_2.php on line 4 |
