From: Jay Smith Date: Tue, 18 Mar 2003 21:49:01 +0000 (+0000) Subject: get_browser() needs to use zend_is_auto_global() on _SERVER. X-Git-Tag: RELEASE_0_5~420 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c0d1508ec8f6c6d5585be62308a874d1e6962371;p=php get_browser() needs to use zend_is_auto_global() on _SERVER. --- diff --git a/ext/standard/browscap.c b/ext/standard/browscap.c index 4cb5cda333..6462100a84 100644 --- a/ext/standard/browscap.c +++ b/ext/standard/browscap.c @@ -244,6 +244,7 @@ PHP_FUNCTION(get_browser) } if (agent_name == NULL || Z_TYPE_PP(agent_name) == IS_NULL) { + zend_is_auto_global("_SERVER", sizeof("_SERVER")-1 TSRMLS_CC); if (!PG(http_globals)[TRACK_VARS_SERVER] || zend_hash_find(PG(http_globals)[TRACK_VARS_SERVER]->value.ht, "HTTP_USER_AGENT", sizeof("HTTP_USER_AGENT"), (void **) &agent_name)==FAILURE) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "HTTP_USER_AGENT variable is not set, cannot determine user agent name");