From: Adam Harvey Date: Fri, 13 Jun 2014 00:57:36 +0000 (-0700) Subject: Merge branch 'PHP-5.5' into PHP-5.6 X-Git-Tag: PRE_PHPNG_MERGE~194^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e082199d8ed1fec9ea69e2129ae08584ee3b66dd;p=php Merge branch 'PHP-5.5' into PHP-5.6 * PHP-5.5: Add 308 and 426 to the HTTP response code map in the CLI server. --- e082199d8ed1fec9ea69e2129ae08584ee3b66dd diff --cc NEWS index bd82caeb9f,79d65010f6..1adc56b15f --- a/NEWS +++ b/NEWS @@@ -9,11 -18,19 +9,15 @@@ PH (static::) in some cases). (Levi Morrison) . Fixed bug #67390 (insecure temporary file use in the configure script). (Remi) (CVE-2014-3981) - . Fixed bug #67399 (putenv with empty variable may lead to crash). (Stas) + . Fixed bug #67392 (dtrace breaks argument unpack). (Nikita) + . Fixed bug #67428 (header('Location: foo') will override a 308-399 response + code). (Adam) + - CLI server: - . Fixed Bug #67406i (built-in web-server segfaults on startup). (Remi) - -- Date: - . Fixed bug #67308 (Serialize of DateTime truncates fractions of second). ++ . Implemented FR #67429 (CLI server is missing some new HTTP response codes). + (Adam) - . Fixed regression in fix for bug #67118 (constructor can't be called twice). - (Remi) + - Fileinfo: - . Fixed bug #67326 (fileinfo: cdf_read_short_sector insufficient boundary check). . Fixed bug #67410 (fileinfo: mconvert incorrect handling of truncated pascal string size). (Francisco Alonso, Jan Kaluza, Remi) . Fixed bug #67411 (fileinfo: cdf_check_stream_offset insufficient boundary diff --cc sapi/cli/tests/bug67429.phpt index 0000000000,59486dbc0e..856946b29d mode 000000,100644..100644 --- a/sapi/cli/tests/bug67429.phpt +++ b/sapi/cli/tests/bug67429.phpt @@@ -1,0 -1,49 +1,49 @@@ + --TEST-- + FR #67429 (CLI server is missing some new HTTP response codes) + --SKIPIF-- + + --FILE-- + + --EXPECTF-- + HTTP/1.1 308 Permanent Redirect + Connection: close + X-Powered-By: %s -Content-type: text/html ++Content-type: text/html; charset=UTF-8 + + HTTP/1.1 426 Upgrade Required + Connection: close + X-Powered-By: %s -Content-type: text/html ++Content-type: text/html; charset=UTF-8 +