From 116b4e13d00cef5e050796d165fa506c1700c72f Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Mon, 28 Aug 2017 12:32:31 +0200 Subject: [PATCH] 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 --- src/phar-stub.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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/' -- 2.30.2