Doctrine 1
  1. Doctrine 1
  2. DC-561

Doctrine autoloader tries to load class again and fails with fatal error - with fix

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.2.1
    • Fix Version/s: 1.2.2
    • Component/s: None
    • Labels:
      None

      Description

      Doctrine_Core::autoload around line 1107
      if (strpos($className, 'sfYaml') === 0 || class_exists($className, false)) {

      should be changed to

      if (strpos($className, 'sfYaml') === 0) {

      otherwise you get:
      Warning: require(/srv/www/pacs.lan/site/lib/Doctrine/Parser/sfYaml/Doctrine_Query_From.php) [function.require]: failed to open stream: No such file or directory in /srv/www/pacs.lan/site/lib/Doctrine/Core.php on line 1108

      Fatal error: require() [function.require]: Failed opening required '/srv/www/pacs.lan/site/lib/Doctrine/Parser/sfYaml/Doctrine_Query_From.php' (include_path='/srv/www/pacs.lan/site/lib/:/srv/www/pacs.lan/site/lib/Dwoo/:.:/usr/local/lib/php') in /srv/www/pacs.lan/site/lib/Doctrine/Core.php on line 1108

        Activity

        Hide
        Jonathan H. Wage added a comment -

        It appears this is already fixed in the latest SVN of 1.2.

        Show
        Jonathan H. Wage added a comment - It appears this is already fixed in the latest SVN of 1.2.

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Miha Vrhovnik
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: