Annotation of embedaddon/php/ext/standard/tests/general_functions/bug60227_2.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #60227 (header() cannot detect the multi-line header with CR), \r before \n
3: --FILE--
4: <?php
5: header("X-foo: e\n foo");
6: header("X-Foo6: e\rSet-Cookie: ID=123\n d");
7: echo 'foo';
8: ?>
9: --EXPECTF--
10: Warning: Header may not contain more than a single header, new line detected in %s on line %d
11: foo
12: --EXPECTHEADERS--
13: X-foo: e
14: foo
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>