Project

General

Profile

Actions

Bug #69207

closed

Failing inclusion of PEAR class Net/URL2(.php)

Added by Arne-Kolja Bachstein over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
composer
Target version:
-
Start date:
2015-08-20
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.6
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

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?


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #67838: Cannot instantiate HttpRequestClosedMathias Brodala2015-06-30

Actions
Actions #2

Updated by Georg Ringer over 8 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/

Actions

Also available in: Atom PDF