summaryrefslogtreecommitdiff
path: root/tests/misc/mailprotect_1_to_long.phpt
blob: 29c3eea9df4dd563ce26d0cba8569caeec69dee9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Testing: suhosin.mail.protect=1 with valid long To
--SKIPIF--
<?php include "../skipifnotcli.inc"; ?>
--INI--
suhosin.log.sapi=255
suhosin.log.stdout=0
suhosin.log.script=0
suhosin.log.syslog=0
suhosin.mail.protect=1
sendmail_path=$([ -f /bin/true ]&& echo /bin/true || echo /usr/bin/true)
--FILE--
<?php
	var_dump(mail("to\n long\r\n\tfoo", "subject", "msg"));
?>
--EXPECTF--
bool(true)