<pearPackageFileset id="dep-PEAR" package="pear.php.net/PEAR">
<include name="PEAR/Exception.php"/>
<include name="PEAR.php"/>
+ <include name="PEAR5.php"/>
</pearPackageFileset>
<copy todir="${libdir}">
{
$links = '';
if (isset($_SERVER['HTTP_HOST'])) {
+ if (!isset($_SERVER['REQUEST_SCHEME'])) {
+ $_SERVER['REQUEST_SCHEME'] = 'http';
+ }
$links = ' <link rel="alternate" type="text/calendar" href="'
. $_SERVER['REQUEST_SCHEME'] . '://'
. $_SERVER['HTTP_HOST']
. 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();
?>