Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.3
-
Fix Version/s: 2.3.1
-
Component/s: None
-
Security Level: All
-
Labels:None
-
Environment:PEAR, Fedora, RHEL
Description
When using PEAR install, the "doctrine-dbal" command does not work.
$ pear install doctrine/DoctrineDBAL
downloading DoctrineDBAL-2.3.0.tgz ...
Starting to download DoctrineDBAL-2.3.0.tgz (143,996 bytes)
................................done: 143,996 bytes
install ok: channel://pear.doctrine-project.org/DoctrineDBAL-2.3.0$ which doctrine-dbal
/usr/bin/doctrine-dbal$ /usr/bin/doctrine-dbal
PHP Warning: require(Doctrine/Symfony/Component/Console/Helper/HelperSet.php): failed to open stream: No such file or directory in /usr/share/pear/Doctrine/Common/ClassLoader.php on line 164
PHP Stack trace:
PHP 1. {main}() /usr/bin/doctrine-dbal:0
PHP 2. include() /usr/bin/doctrine-dbal:4
PHP 3. Doctrine\Common\ClassLoader->loadClass() /usr/bin/doctrine-dbal:0
PHP Fatal error: require(): Failed opening required 'Doctrine/Symfony/Component/Console/Helper/HelperSet.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/pear/Doctrine/Common/ClassLoader.php on line 164
PHP Stack trace:
PHP 1. {main}() /usr/bin/doctrine-dbal:0
PHP 2. include() /usr/bin/doctrine-dbal:4
PHP 3. Doctrine\Common\ClassLoader->loadClass() /usr/bin/doctrine-dbal:0
The issue can be fixed by updating file doctrine-dbal.php from:
$classLoader = new \Doctrine\Common\ClassLoader('Symfony', 'Doctrine');
to:
$classLoader = new \Doctrine\Common\ClassLoader('Symfony');
so the Symfony Console package can be used like the PEAR package.xml requires.
NOTE: I did not want to submit a GitHub pull request for this because it seems like it would break your Git and Composer installs
Activity
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Fix Version/s | 2.3.1 [ 10325 ] | |
| Resolution | Fixed [ 1 ] |