summaryrefslogtreecommitdiff
path: root/src/tests/phplog_max_len.phpt
diff options
context:
space:
mode:
authorJulien Voisin2023-01-31 20:31:02 +0100
committerGitHub2023-01-31 20:31:02 +0100
commit3bd3c12d07c2f196bac8bc9a99e4aebb953ee128 (patch)
treedcd1f1964634919bd0b9784d3546fd3690f389a1 /src/tests/phplog_max_len.phpt
parent26f9987a538dc68d5a825b1712d3456a2d7aa109 (diff)
parent78e451eaf99e8f239867def2d8220dfa348cc167 (diff)
Add sp.log_max_len
This partially addresses #445
Diffstat (limited to 'src/tests/phplog_max_len.phpt')
-rw-r--r--src/tests/phplog_max_len.phpt14
1 files changed, 14 insertions, 0 deletions
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 @@
1--TEST--
2Check the phplog output with a log_max_len
3--SKIPIF--
4<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?>
5<?php if (PHP_VERSION_ID < 80000) print "skip"; ?>
6--INI--
7sp.configuration_file={PWD}/config/phplog_max_len.ini
8--FILE--
9<?php
10var_dump(ini_set("1234567890abcdefghijklmnopqrstuvwxyz", "value"));
11?>
12--EXPECTF--
13Fatal 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
14