Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major 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

        Shawn Iwinski created issue -
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.3.1 [ 10325 ]
        Resolution Fixed [ 1 ]

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DBAL-393, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Shawn Iwinski
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: