Created
May 24, 2020 11:56
-
-
Save AnrDaemon/10ce8011e5558aa7cbe5c58914b611b4 to your computer and use it in GitHub Desktop.
Revisions
-
AnrDaemon created this gist
May 24, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,25 @@ SHELL := /bin/sh .SHELLFLAGS := -ec .ONESHELL: PHAR_FILES := index.php clean: -rm index.php example.phar dist-clean: clean -rm stub.php release: release-phar release-phar: example.phar stub: stub.php %.php: %.sample.php cp "$<" "$@" example.phar: stub.php $(PHAR_FILES) phar pack -f "$@" -c bzip2 -s $^ .PHONY: clean dist-clean stub release ; This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ <?php print __DIR__ . "\n"; print __FILE__ . "\n"; print getcwd() . "\n"; var_dump(stream_resolve_include_path(basename(__FILE__))); This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ <?php require_once 'phar://' . __FILE__ . '/index.php'; __HALT_COMPILER(); ?>