Skip to content

Commit

Permalink
Fixing empty $GLOBALS['_SERVER'] bug with Apache/2.2.3, CentOS/5.2, P…
Browse files Browse the repository at this point in the history
…HP/5.2.8 [#29 state:resolved]
  • Loading branch information
Fabrice Luraine committed Oct 5, 2009
1 parent 9a41864 commit fd16006
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/limonade.php
Expand Up @@ -452,7 +452,8 @@ function env($reset = null)
{
if(empty($GLOBALS['_SERVER']))
{
// Fixing empty $GLOBALS['_SERVER'] bug http://sofadesign.lighthouseapp.com/projects/29612-limonade/tickets/29-env-is-empty
// Fixing empty $GLOBALS['_SERVER'] bug
// http://sofadesign.lighthouseapp.com/projects/29612-limonade/tickets/29-env-is-empty
$GLOBALS['_SERVER'] =& $_SERVER;
$GLOBALS['_FILES'] =& $_FILES;
$GLOBALS['_REQUEST'] =& $_REQUEST;
Expand All @@ -462,7 +463,7 @@ function env($reset = null)
}

$glo_names = array('SERVER', 'FILES', 'REQUEST', 'SESSION', 'ENV', 'COOKIE');

$vars = array_merge($glo_names, request_methods());
foreach($vars as $var)
{
Expand Down

0 comments on commit fd16006

Please sign in to comment.