Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.1.2

Bug #20932 composer.json is missing include-path section
Submitted: 2015-08-03 20:17 UTC
From: astehlik Assigned: tkli
Status: Closed Package: Net_URL2 (version SVN)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2015-08-03 20:17 UTC] astehlik (Alexander Stehlik)
Description: ------------ Other PEAR packages (e.g. HTTP_Request2) use Net_URL2 as dependency. They use require_once statements like: require_once 'Net/URL2.php'; These statements will fail when Net_URL2 is installed via composer because the include_path is not updated. This can be easily solved by adding the include-path section in the composer.json file. See also: https://github.com/pear/HTTP_Request2/pull/7

Comments

 [2015-08-07 04:18 UTC] tkli (Tom Klingenberg)
This is a known issue. The include path is in there in earlier versions, but not in the latest version. This change was by intention. However it was too early as HTTP_Request2 needs more time to update. The issue for HTTP_Request2 on Github with more discussion about the same topic is: https://github.com/pear/HTTP_Request2/pull/11 Having include paths in composer.json is polluting the include-path. This is why I removed it. It was perhaps too early / not friendly.
 [2016-04-18 22:34 UTC] tkli (Tom Klingenberg)
-Status: Open +Status: Closed -Assigned To: +Assigned To: tkli
For the old behavior, use 2.1.x releases.