Browse files

load the $_SERVER variable when jit is set

  • Loading branch information...
1 parent 528f178 commit 44c86ef6cc29026253abcfc0ed37e91c5616c549 @sugendran sugendran committed Jan 24, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 graphdat.c
View
3 graphdat.c
@@ -285,6 +285,9 @@ static char* getRequestPath(size_t *slen TSRMLS_DC)
}
// looks like we can't do any magic
int found = 1;
+ if (PG(auto_globals_jit)) {
+ zend_is_auto_global("_SERVER", sizeof("_SERVER")-1 TSRMLS_CC);
+ }
zval *zServerVars = PG(http_globals)[TRACK_VARS_SERVER];
// the server globals should never be null....
if(zServerVars == NULL)

0 comments on commit 44c86ef

Please sign in to comment.