Bug #73882 [NEW]: Patch for php_stream_url_wrap_http_ex to support multiple spaces

From: Date: Fri, 06 Jan 2017 15:51:43 +0000
Subject: Bug #73882 [NEW]: Patch for php_stream_url_wrap_http_ex to support multiple spaces
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-206320@lists.php.net to get a copy of this message
From: laurentconstantin at free dot fr Operating system: PHP version: 5.6.29 Package: HTTP related Bug Type: Bug Bug description:Patch for php_stream_url_wrap_http_ex to support multiple spaces Description: ------------ Hello, The function php_stream_url_wrap_http_ex() in file ext/standard/http_fopen_wrapper.c checks the presence of the "Transfer-Encoding: chunked" HTTP header to detect if the filter has to be used. However, the HTTP RFC allows multiple spaces after the ':'. This patch adds the supports of this case. This patch also updates the Location, Content-Type and Content-Length processing which suffers the same bug. I've created two generic functions easier to use. Thank you. -- Edit bug report at https://bugs.php.net/bug.php?id=73882&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73882&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73882&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73882&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=73882&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=73882&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=73882&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=73882&r=needscript Try newer version: https://bugs.php.net/fix.php?id=73882&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=73882&r=support Expected behavior: https://bugs.php.net/fix.php?id=73882&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=73882&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=73882&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=73882&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73882&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=73882&r=dst IIS Stability: https://bugs.php.net/fix.php?id=73882&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=73882&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=73882&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=73882&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=73882&r=mysqlcfg

« previous php.bugs (#206320) next »