Cannot instantiate HttpRequest
In the 7.x release line the
HttpRequest class cannot be instantiated due to an upstream issue.
This should be fixed by bumping the dependency to a version which has a fix.
[BUGFIX] Fix HttpRequest instantiation
This was fixed upstream but a new release was not
published yet, thus we temporarily require the commit
with the fix.
Tested-by: Stefan Neufeind <email@example.com>
Tested-by: Andreas Wolf <firstname.lastname@example.org>
Reviewed-by: Stefan Neufeind <email@example.com>
Reviewed-by: Andreas Wolf <firstname.lastname@example.org>
[TASK] Update pear/http_request2 dependency to version 2.3.0
Updates the mentioned dependency and accommodates new
differences in "include-paths" setting which is now included
directly from within the dependency. Preserving the previous
"include-path" setting breaks the inclusion completely.
NB: Must be followed up with patch to documentation download
which after this change will be incapable of downloading https
urls (e.g. zip files with documentation).
Tested-by: TYPO3com <email@example.com>
Reviewed-by: Markus Klein <firstname.lastname@example.org>
Tested-by: Markus Klein <email@example.com>
Reviewed-by: Andreas Fernandez <firstname.lastname@example.org>
Tested-by: Andreas Fernandez <email@example.com>
#8 Updated by Alexander Stehlik almost 3 years ago
Same problem seems to be present for the Net_URL2 PEAR package, I opened a bug report: https://pear.php.net/bugs/bug.php?id=20932
See typo3_src/typo3/vendor/pear/http_request2/HTTP/Request2.php for example:
/** * A class representing an URL as per RFC 3986. */ require_once 'Net/URL2.php'; /** * Exception class for HTTP_Request2 package */ require_once 'HTTP/Request2/Exception.php';
#10 Updated by Alexander Stehlik almost 3 years ago
Hmm, possible. But it is not fixed in the current master of Net_URL2:
In HTTP_Request2 the fix is at least in the master branch: