Bug #77123 [NEW]: getallheaders - PHP7.0, 7.1 and 7.2 FPM

From: Date: Thu, 08 Nov 2018 10:11:26 +0000
Subject: Bug #77123 [NEW]: getallheaders - PHP7.0, 7.1 and 7.2 FPM
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-217866@lists.php.net to get a copy of this message
From: vaughn dot kearns at hetzner dot co dot za Operating system: Linux/Debian PHP version: 7.0.32 Package: PHP options/info functions Bug Type: Bug Bug description:getallheaders - PHP7.0, 7.1 and 7.2 FPM Description: ------------ Get all headers returns blank with PHP7.0, PHP7.1 and PHP7.2. This bug was previously reported, Bug #62596, however only fixed in PHP7.3. <?php foreach (getallheaders() as $name => $value) { echo "$name: $value\n"; } ?> Test script: --------------- <?php foreach (getallheaders() as $name => $value) { echo "$name: $value\n"; } ?> Expected result: ---------------- My-Header: Host: restorevk.trial.co.za User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:63.0) Gecko/20100101 Firefox/63.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-ZA,en-GB;q=0.8,en-US;q=0.5,en;q=0.3 Accept-Encoding: gzip, deflate Connection: keep-alive Upgrade-Insecure-Requests: 1 Cache-Control: max-age=0 -- Edit bug report at https://bugs.php.net/bug.php?id=77123&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77123&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77123&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77123&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=77123&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=77123&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=77123&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=77123&r=needscript Try newer version: https://bugs.php.net/fix.php?id=77123&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=77123&r=support Expected behavior: https://bugs.php.net/fix.php?id=77123&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=77123&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=77123&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=77123&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77123&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=77123&r=dst IIS Stability: https://bugs.php.net/fix.php?id=77123&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=77123&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=77123&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=77123&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=77123&r=mysqlcfg

« previous php.bugs (#217866) next »