Today, I’ve discovered not yet described problem with Magento 1 PHP 7 compatibility.
On our of stores we care, after PHP 7.0.9 update admin panel resulted in 503 with info:

AH01067: Failed to read FastCGI header

in logs.

Issue was caused by following bug

https://bugs.php.net/bug.php?id=71709

and the solution is to patch Varien_Http_Adapter_Curl

--- <html>Curl.php (<b>f8d9852</b>)</html>
+++ <html><b>Current File</b></html>
@@ -188,7 +188,7 @@
         } elseif ($method == Zend_Http_Client::GET) {
             $options[CURLOPT_HTTPGET]       = true;
         }
-        if (is_array($headers)) {
+        if ($headers && is_array($headers)) {
             $options[CURLOPT_HTTPHEADER]    = $headers;
         }

Leave a Reply

Your email address will not be published. Required fields are marked *

Fork us on GitHub