Skip to content

Commit 70b1619

Browse files
committed
Merge pull request #58 from e1himself/patch-1
PHP built-in webserver compatibility
2 parents 50923db + 3cff753 commit 70b1619

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/config/sfApplicationConfiguration.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ public function setRootDir($rootDir)
288288
'sf_app' => $this->getApplication(),
289289
'sf_environment' => $this->getEnvironment(),
290290
'sf_debug' => $this->isDebug(),
291-
'sf_cli' => 0 === strncasecmp(PHP_SAPI, 'cli', 3)
291+
'sf_cli' => PHP_SAPI === 'cli',
292292
));
293293

294294
$this->setAppDir(sfConfig::get('sf_apps_dir').DIRECTORY_SEPARATOR.$this->getApplication());

0 commit comments

Comments
 (0)