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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.0-dev
    • Fix Version/s: 3.1.0-b1
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: