Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-10175

Class loader cannot find a/b_foo.php when a/b/bar.php exists

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 3.1.0-dev
    • 3.1.0-b1
    • None
    • None

    Description

      The situation of having both a/b_foo.php and a/b/bar.php happens during refactoring when some of the classes have been moved under a/b and some not.

      The current behavior is not user friendly - php says class is not found where it was found just fine in the previous version of the tree and the class has not changed.

      Assuming we own phpbb_ namespace it may be ok to always try searching for a/b_foo.php. Otherwise maybe define a constant in test suite, if it is defined do the second loading pass and print a warning if any files are found there.

      Attachments

        Activity

          People

            nickvergessen Joas Schilling [X] (Inactive)
            Oleg Oleg [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: