Bug #69849 [NEW]: Broken output of apache_request_headers

From: Date: Tue, 16 Jun 2015 10:52:29 +0000
Subject: Bug #69849 [NEW]: Broken output of apache_request_headers
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-193550@lists.php.net to get a copy of this message
From: kontakt at kukulich dot cz Operating system: Windows7 PHP version: 7.0.0alpha1 Package: *Web Server problem Bug Type: Bug Bug description:Broken output of apache_request_headers Description: ------------ There is a bad character at the end of every key of the apache_request_headers output. Test script: --------------- <?php header('Content-Type: text/plain'); var_dump(apache_request_headers()); Expected result: ---------------- array(8) { ["Connection"]=> string(10) "keep-alive" ["Accept-Encoding"]=> string(13) "gzip, deflate" ["Accept-Language"]=> string(23) "cs,en-US;q=0.7,en;q=0.3" ["Accept"]=> string(63) "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" ["User-Agent"]=> string(72) "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0" ["Host"]=> string(9) "localhost:81" ["Content-Length"]=> string(0) "" ["Content-Type"]=> string(0) "" } Actual result: -------------- array(8) { ["Connection�"]=> string(10) "keep-alive" ["Accept-Encoding�"]=> string(13) "gzip, deflate" ["Accept-Language�"]=> string(23) "cs,en-US;q=0.7,en;q=0.3" ["Accept�"]=> string(63) "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" ["User-Agent�"]=> string(72) "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0" ["Host�"]=> string(12) "localhost:81" ["Content-Length�"]=> string(0) "" ["Content-Type�"]=> string(0) "" } -- Edit bug report at https://bugs.php.net/bug.php?id=69849&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69849&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69849&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69849&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=69849&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=69849&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=69849&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=69849&r=needscript Try newer version: https://bugs.php.net/fix.php?id=69849&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=69849&r=support Expected behavior: https://bugs.php.net/fix.php?id=69849&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=69849&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=69849&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=69849&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69849&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=69849&r=dst IIS Stability: https://bugs.php.net/fix.php?id=69849&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=69849&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=69849&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=69849&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=69849&r=mysqlcfg

« previous php.bugs (#193550) next »