php-src/ext/standard/tests/general_functions/bug60227_4.phpt

16 lines
328 B
Plaintext
Raw Normal View History

--TEST--
Bug #60227 (header() cannot detect the multi-line header with CR), CRLF
2015-02-04 09:11:00 +00:00
--INI--
expose_php=0
2015-03-18 04:19:56 +00:00
default_charset=
--FILE--
<?php
header("X-foo: e\r\nfoo");
echo 'foo';
?>
--EXPECTF--
Warning: Header may not contain more than a single header, new line detected in %s on line %d
foo
--EXPECTHEADERS--
2015-02-06 05:54:47 +00:00
Content-type: text/html