summaryrefslogtreecommitdiff
path: root/tests/misc/mailprotect_1_to_long.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/mailprotect_1_to_long.phpt')
-rw-r--r--tests/misc/mailprotect_1_to_long.phpt17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/misc/mailprotect_1_to_long.phpt b/tests/misc/mailprotect_1_to_long.phpt
new file mode 100644
index 0000000..9fb08a0
--- /dev/null
+++ b/tests/misc/mailprotect_1_to_long.phpt
@@ -0,0 +1,17 @@
1--TEST--
2Testing: suhosin.mail.protect=1 with valid long To
3--SKIPIF--
4<?php include "../skipifnotcli.inc"; ?>
5--INI--
6suhosin.log.sapi=255
7suhosin.log.stdout=0
8suhosin.log.script=0
9suhosin.log.syslog=0
10suhosin.mail.protect=1
11sendmail_path=/usr/bin/true
12--FILE--
13<?php
14 var_dump(mail("to\n long\r\n\tfoo", "subject", "msg"));
15?>
16--EXPECTF--
17bool(true) \ No newline at end of file