Skip to content
This repository has been archived by the owner on Sep 9, 2019. It is now read-only.

Commit

Permalink
Fix module.xp being treated as class with XP language
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed May 1, 2016
1 parent baea547 commit b57c010
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ XP Compiler ChangeLog

## ?.?.? / ????-??-??

## 7.0.1 / 2016-05-01

* Fixed `module.xp` being treated as class with XP language - @thekid

## 7.0.0 / 2016-02-22

* Added version compatibility with XP 7 - @thekid
Expand Down
2 changes: 2 additions & 0 deletions src/main/php/xp/compiler/JitClassLoader.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ public function packageContents($package) {
$return[]= $e.'/';
} else if (strstr($e, \xp::CLASS_FILE_EXT)) {
$return[]= $e;
} else if ('module.xp' === $e) {
$return[]= $e;
} else {
$return[]= preg_replace($syntaxes, \xp::CLASS_FILE_EXT, $e);
}
Expand Down

0 comments on commit b57c010

Please sign in to comment.