diff options
| author | Ben Fuhrmannek | 2015-02-06 22:44:37 +0100 |
|---|---|---|
| committer | Ben Fuhrmannek | 2015-02-06 22:44:37 +0100 |
| commit | 8672d5ff3ece1b3232c8eee0a1dec6234c85028c (patch) | |
| tree | fd56cc15e29dcd1d730033564f67cd1bca4d0cf4 /tests/misc/mailprotect_1_subject_long.phpt | |
| parent | b8d1b6ccb5d67874d8637a273f73fd9ae1138f16 (diff) | |
tests for suhosin.mail.protect
Diffstat (limited to 'tests/misc/mailprotect_1_subject_long.phpt')
| -rw-r--r-- | tests/misc/mailprotect_1_subject_long.phpt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/misc/mailprotect_1_subject_long.phpt b/tests/misc/mailprotect_1_subject_long.phpt new file mode 100644 index 0000000..dc11783 --- /dev/null +++ b/tests/misc/mailprotect_1_subject_long.phpt | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | --TEST-- | ||
| 2 | Testing: suhosin.mail.protect=1 with valid long Subject | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php include "../skipifnotcli.inc"; ?> | ||
| 5 | --INI-- | ||
| 6 | suhosin.log.sapi=255 | ||
| 7 | suhosin.log.stdout=0 | ||
| 8 | suhosin.log.script=0 | ||
| 9 | suhosin.log.syslog=0 | ||
| 10 | suhosin.mail.protect=1 | ||
| 11 | sendmail_path=/usr/bin/true | ||
| 12 | --FILE-- | ||
| 13 | <?php | ||
| 14 | var_dump(mail("to", "sub\n ject\r\n\tfoo", "msg")); | ||
| 15 | ?> | ||
| 16 | --EXPECTF-- | ||
| 17 | bool(true) | ||
