From e394bfda538b21674a2eb3a2a0cde6a841568912 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Fri, 21 Mar 2014 22:20:07 +0100 Subject: fixes for lighttpd and php 5.4 --- src/phar-stub.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/phar-stub.php') 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(); ?> -- cgit v1.2.3