Description of problem: Using HTTP.php, I get the following error: PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported The error is at line 500 and following: if (!strlen($url) || $url{0} == '#') { $url = $uriAll.$url; } elseif ($url{0} == '?') { $url = $uriBase.$url; } if ($url{0} == '/') { return $server . $url; } Since PHP7.4, Curly Braces is not suppoorted. How to fix: Replace url{0} with url[0] in code. For information, HTTP2 has superseeded HTTP but has the same issue.
Summary: pear-HTTP package : PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported => php-pear-HTTP package : PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported
Thank you for this report re php-pear-HTTP : /usr/share/pear/HTTP.php Are these related pkgs (each its own SRPM) - or others - similarly affected? php-pear-Net_Monitor:/usr/share/pear/Net/Monitor/Service/HTTP.php php-pear-Auth_HTTP:/usr/share/pear/Auth/HTTP.php php-pear-SOAP:/usr/share/pear/SOAP/Transport/HTTP.php I cannot find HTTP2 chez-nous. Assigning to PHP stack maintainers.
Assignee: bugsquad => php
yeah, most pear packages are outdated. there is not much active development anymore.
CC: (none) => mageia