Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-10175

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.1.0-b1
    • 3.1.0-dev
    • None
    • None

      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.

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

              Created:
              Updated:
              Resolved: