Failing inclusion of PEAR class Net/URL2(.php)
In my extension I am using
$request = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Http\\HttpRequest', $url, 'GET', $config);
to receive data from an URL. This fails since I upgraded to TYPO3 7.4, because inclusion of a implicitely used class cannot be found:
Fatal error: require_once(): Failed opening required 'Net/URL2.php' (include_path='/path/to/typo3/vendor/pear/http_request2:/path/to/typo3/vendor/pear/pear_exception:.:/Applications/MAMP/bin/php/php5.6.10/lib/php') in /path/to/typo3/vendor/pear/http_request2/HTTP/Request2.php on line 24
Looking at the file structure it seems like the inclusion path is indeed wrong. Files are at the following locations:
- typo3/vendor/pear/http_request2/HTTP/Request2.php (does a require on 'Net/URL2.php')
- typo3/vendor/pear/net_url2/Net -> typo3/vendor/pear/http_request2/Net
it works, but I think it's the wrong way to solve it, as I break the composer stuff.
Is this an error in package handling/composer configuration, or am I misinterpreting something? I'm not into composer, so I don't know how to troubleshoot it any further.
Can I solve it by adjusting the composer configuration somewhere, or do I have to hack the folder structure/core files? Is this a known problem?
#1 Updated by Arne-Kolja Bachstein about 5 years ago
Maybe this is related? https://email@example.com/msg48813.html