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 <firstname.lastname@example.org>
Tested-by: Andreas Wolf <email@example.com>
Reviewed-by: Stefan Neufeind <firstname.lastname@example.org>
Reviewed-by: Andreas Wolf <email@example.com>
[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 <firstname.lastname@example.org>
Reviewed-by: Markus Klein <email@example.com>
Tested-by: Markus Klein <firstname.lastname@example.org>
Reviewed-by: Andreas Fernandez <email@example.com>
Tested-by: Andreas Fernandez <firstname.lastname@example.org>
#8 Updated by Alexander Stehlik over 4 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 over 4 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: