Skip to content

Commit

Permalink
Change providesUri() always to return false for compiled files
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Jun 24, 2018
1 parent 42a5885 commit 939e5fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/php/lang/ast/CompilingClassloader.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ protected function locateSource($class) {
public function providesUri($uri) {
if (isset($this->source[$uri])) return true;
if (0 !== substr_compare($uri, self::EXTENSION, -4)) return false;
if (0 === substr_compare($uri, \xp::CLASS_FILE_EXT, -strlen(\xp::CLASS_FILE_EXT))) return false;

foreach (ClassLoader::getDefault()->getLoaders() as $loader) {
if ($loader instanceof self) continue;
Expand Down

0 comments on commit 939e5fb

Please sign in to comment.