diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2014-02-26 20:57:41 +0100 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2014-02-26 20:57:41 +0100 |
| commit | 95681cad57a3bb6198162d0e94dc8f700ced60af (patch) | |
| tree | 3858edfcaff32b55885f908f20fc74a5cc7ba721 | |
| parent | 2c310662cdbbcc84eab87af90b2b1ee964c560c1 (diff) | |
| download | bdrem-95681cad57a3bb6198162d0e94dc8f700ced60af.tar.gz bdrem-95681cad57a3bb6198162d0e94dc8f700ced60af.zip | |
include lib/ dir, use it as include path
| -rwxr-xr-x | bin/makephar.php | 2 | ||||
| -rw-r--r-- | src/phar-stub.php | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/bin/makephar.php b/bin/makephar.php index 6089b0c..13c1acd 100755 --- a/bin/makephar.php +++ b/bin/makephar.php @@ -18,7 +18,7 @@ $phar->buildFromDirectory( realpath(__DIR__ . '/../'), '#' . '^' . preg_quote(realpath(__DIR__ . '/../'), '#') - . '/(data/bdrem.config.php.dist|src/bdrem/|www/|README\.rst)' + . '/(data/bdrem.config.php.dist|lib/|src/bdrem/|www/|README\.rst)' . '#' ); diff --git a/src/phar-stub.php b/src/phar-stub.php index 3c80130..326b5cf 100644 --- a/src/phar-stub.php +++ b/src/phar-stub.php @@ -16,7 +16,10 @@ function rewritePath($path) } //Phar::interceptFileFuncs(); -set_include_path('phar://' . __FILE__ . PATH_SEPARATOR . get_include_path()); +set_include_path( + 'phar://' . __FILE__ + . PATH_SEPARATOR . 'phar://' . __FILE__ . '/lib/' +); Phar::webPhar(null, $web, null, array(), 'rewritePath'); include 'phar://' . __FILE__ . '/' . $cli; __HALT_COMPILER(); |
