From 95681cad57a3bb6198162d0e94dc8f700ced60af Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Wed, 26 Feb 2014 20:57:41 +0100 Subject: include lib/ dir, use it as include path --- src/phar-stub.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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(); -- cgit v1.2.3