Skip to content

Loading…

DBAL-393: PEAR install broken #1584

Closed
doctrinebot opened this Issue · 1 comment

2 participants

@doctrinebot

Jira issue originally created by user siwinski:

When using PEAR install, the "doctrine-dbal" command does not work.

{quote}
$ 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
{quote}

The issue can be fixed by updating file doctrine-dbal.php from:
{color:red}$classLoader = new \Doctrine\Common\ClassLoader('Symfony', 'Doctrine');{color}
to:
{color:green}$classLoader = new \Doctrine\Common\ClassLoader('Symfony');{color}
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

@doctrinebot

Issue was closed with resolution "Fixed"

@doctrinebot doctrinebot added the Bug label
@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.3.1 milestone
@doctrinebot doctrinebot closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.