summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_function_echo_2.phpt
diff options
context:
space:
mode:
authorjvoisin2026-05-10 00:09:44 +0200
committerjvoisin2026-05-10 00:09:44 +0200
commit0cc8e708ebbff02abe7e3c2d0dc0660585ccd98c (patch)
treea97dac5a9c2a301393c1d3960748307b7f33e0b9 /src/tests/disable_function/disabled_function_echo_2.phpt
parentbcec0cafc9edbf1a563f184debf01169aed64c85 (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.phpt6
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 @@
2Echo hooking 2Echo 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--
6sp.configuration_file={PWD}/config/disabled_function_echo.ini 7sp.configuration_file={PWD}/config/disabled_function_echo.ini
7--FILE-- 8--FILE--
8<?php 9<?php
9echo "qwe"; 10echo "qwe";
10echo "1", "oops"; 11echo "1";
12echo "oops";
11?> 13?>
12--EXPECTF-- 14--EXPECTF--
13qwe1 15qwe1
14Fatal 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 16Fatal 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