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