aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2013-06-14 17:14:13 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2013-06-14 17:14:13 +0200
commit53a59cffd5c77999c235739714d7f7747a663024 (patch)
tree0ac947f26cdb69445ab29ded492fdd3376f7db82
parentbab54bea9188ae37e63e821d23046db68c956c83 (diff)
downloadRouter-53a59cffd5c77999c235739714d7f7747a663024.zip
Router-53a59cffd5c77999c235739714d7f7747a663024.tar.gz
Router-53a59cffd5c77999c235739714d7f7747a663024.tar.bz2
getBootstrap on cli-server returns empty string.
-rw-r--r--Http.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/Http.php b/Http.php
index 38f9585..fb790f1 100644
--- a/Http.php
+++ b/Http.php
@@ -833,7 +833,9 @@ class Http extends Generic implements \Hoa\Core\Parameter\Parameterizable {
*/
public static function getBootstrap ( ) {
- if('cli' === php_sapi_name())
+ $sapi = php_sapi_name();
+
+ if('cli' === $sapi || 'cli-server' === $sapi)
return '';
return $_SERVER['SCRIPT_NAME'];