Bug #23596 ยป locales.diff
typo3/cli_dispatch.phpsh (working copy) | ||
---|---|---|
*
|
||
*/
|
||
// makes sure that the locales from the shell are not used
|
||
setlocale(LC_ALL, 'C');
|
||
if (substr(php_sapi_name(), 0, 3) == 'cgi') {
|
||
// sanity check: ensure that we're running in a shell or cronjob (and NOT via HTTP)
|
||
$checkEnvVars = array('HTTP_USER_AGENT', 'HTTP_HOST', 'SERVER_NAME', 'REMOTE_ADDR', 'REMOTE_PORT', 'SERVER_PROTOCOL');
|