include lib/ dir, use it as include path
[bdrem.git] / src / phar-stub.php
index 3c801301fceef945c1e5f269ddabae75e86db0d5..326b5cf046d3a493dbd31e5aa2f0fec1f8caed96 100644 (file)
@@ -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();