From: Christian Weiske Date: Mon, 28 Aug 2017 10:32:31 +0000 (+0200) Subject: Allow renaming of shpub.phar to shpub X-Git-Tag: v0.5.0~3 X-Git-Url: https://git.cweiske.de/shpub.git/commitdiff_plain/116b4e13d00cef5e050796d165fa506c1700c72f Allow renaming of shpub.phar to shpub Resolves: https://github.com/cweiske/shpub/issues/7 Solution: https://cweiske.de/tagebuch/phar-renaming-no-ext.htm --- diff --git a/src/phar-stub.php b/src/phar-stub.php index 653c0d0..5ffe5c7 100644 --- a/src/phar-stub.php +++ b/src/phar-stub.php @@ -15,7 +15,7 @@ if (!in_array('phar', stream_get_wrappers()) || !class_exists('Phar', false)) { exit(255); } -//Phar::interceptFileFuncs(); +Phar::mapPhar('shpub.phar'); set_include_path( 'phar://' . __FILE__ . PATH_SEPARATOR . 'phar://' . __FILE__ . '/lib/'