Bug #69207
closedFailing inclusion of PEAR class Net/URL2(.php)
0%
Description
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/URL2.php
When moving
- 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?
Updated by Arne-Kolja Bachstein over 9 years ago
Maybe this is related? https://www.mail-archive.com/typo3-german@lists.typo3.org/msg48813.html
Updated by Georg Ringer over 9 years ago
- Status changed from New to Closed
closed as being a duplicate: see #67838
see also how you could fix that in a composer way at https://review.typo3.org/#/c/42323/