Doctrine 1
  1. Doctrine 1
  2. DC-304

Auloader returns false even though sfYaml* class is loaded

    Details

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

      Description

      Autoloader loads method has lines:

      if (0 !== stripos($className, 'Doctrine_') || class_exists($className, false) || interface_exists($className, false)) {
      return false;
      }

      Which for sfYaml classes always are true (0 !== stripos('sfYaml', 'Doctrine_') ==> true) and hence autoloader returns false. This creates problems if there are more than one autoloader in the stack.

      Fix:

      {qupte}

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

      { require dirname(__FILE__) . '/Parser/sfYaml/' . $className . '.php'; return true; } {quote}

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: