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