From 78e451eaf99e8f239867def2d8220dfa348cc167 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Tue, 31 Jan 2023 20:16:21 +0100 Subject: Add sp.log_max_len --- src/tests/config/phplog_max_len.ini | 2 ++ src/tests/phplog_max_len.phpt | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 src/tests/config/phplog_max_len.ini create mode 100644 src/tests/phplog_max_len.phpt (limited to 'src/tests') diff --git a/src/tests/config/phplog_max_len.ini b/src/tests/config/phplog_max_len.ini new file mode 100644 index 0000000..3465d17 --- /dev/null +++ b/src/tests/config/phplog_max_len.ini @@ -0,0 +1,2 @@ +sp.disable_function.function("ini_set").param("option").value("1234567890abcdefghijklmnopqrstuvwxyz").drop(); +sp.log_max_len("16"); diff --git a/src/tests/phplog_max_len.phpt b/src/tests/phplog_max_len.phpt new file mode 100644 index 0000000..6294f4e --- /dev/null +++ b/src/tests/phplog_max_len.phpt @@ -0,0 +1,14 @@ +--TEST-- +Check the phplog output with a log_max_len +--SKIPIF-- + + +--INI-- +sp.configuration_file={PWD}/config/phplog_max_len.ini +--FILE-- + +--EXPECTF-- +Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'ini_set', because its argument '$option' content (1234567890abcdef) matched a rule in %s/tests/phplog_max_len.php on line 2 + -- cgit v1.3