summaryrefslogtreecommitdiff
path: root/src/phar-stub.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2014-03-21 22:20:07 +0100
committerChristian Weiske <cweiske@cweiske.de>2014-03-21 22:20:07 +0100
commite394bfda538b21674a2eb3a2a0cde6a841568912 (patch)
tree8419c9e934ddf4d3482104a719d1d7051c66f624 /src/phar-stub.php
parent64fce51f660808abe186edb5ebbaa9228628ee4c (diff)
downloadbdrem-0.5.0.tar.gz
bdrem-0.5.0.zip
fixes for lighttpd and php 5.4v0.5.0
Diffstat (limited to 'src/phar-stub.php')
-rw-r--r--src/phar-stub.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/phar-stub.php b/src/phar-stub.php
index 64c463e..8535a6f 100644
--- a/src/phar-stub.php
+++ b/src/phar-stub.php
@@ -41,6 +41,13 @@ set_include_path(
. PATH_SEPARATOR . 'phar://' . __FILE__ . '/lib/'
);
Phar::webPhar(null, $web, null, array(), 'rewritePath');
+
+//work around https://bugs.php.net/bug.php?id=52322
+if (php_sapi_name() == 'cgi-fcgi') {
+ require 'phar://' . __FILE__ . '/' . $web;
+ exit();
+}
+
require 'phar://' . __FILE__ . '/' . $cli;
__HALT_COMPILER();
?>