summaryrefslogtreecommitdiff
path: root/tests/misc/mailprotect_2_bcc.phpt
blob: c3937222a24347de38f0032f459c131757afc8b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Testing: suhosin.mail.protect=2 and extra headers contain Bcc:
--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=2
sendmail_path=$([ -f /bin/true ]&& echo /bin/true || echo /usr/bin/true)
--FILE--
<?php
	var_dump(mail("to", "subject", "msg", "Bcc: me"));
?>
--EXPECTF--
ALERT - mail() - BCC: headers aren't allowed in the headers parameter. (attacker 'REMOTE_ADDR not set', file '%s', line 2)
bool(false)