/PHP-5.5/main/ |
H A D | php_variables.c | 303 if (PG(http_globals)[TRACK_VARS_GET]) { in SAPI_TREAT_DATA_FUNC() local 543 if (PG(http_globals)[TRACK_VARS_SERVER]) { in php_register_server_variables() local 624 memset(PG(http_globals), 0, sizeof(PG(http_globals))); in php_hash_environment() 639 vars = PG(http_globals)[TRACK_VARS_GET]; in php_auto_globals_create_get() 644 if (PG(http_globals)[TRACK_VARS_GET]) { in php_auto_globals_create_get() local 647 PG(http_globals)[TRACK_VARS_GET] = vars; in php_auto_globals_create_get() local 666 vars = PG(http_globals)[TRACK_VARS_POST]; in php_auto_globals_create_post() 671 if (PG(http_globals)[TRACK_VARS_POST]) { in php_auto_globals_create_post() local 674 PG(http_globals)[TRACK_VARS_POST] = vars; in php_auto_globals_create_post() local 710 if (PG(http_globals)[TRACK_VARS_FILES]) { in php_auto_globals_create_files() local [all …]
|
H A D | php_globals.h | 112 zval *http_globals[6]; member
|
H A D | main.c | 1699 if (PG(http_globals)[i]) { in php_request_shutdown_for_hook() local 1700 zval_ptr_dtor(&PG(http_globals)[i]); in php_request_shutdown_for_hook() 1795 if (PG(http_globals)[i]) { in php_request_shutdown() local 1796 zval_ptr_dtor(&PG(http_globals)[i]); in php_request_shutdown()
|
H A D | rfc1867.c | 768 PG(http_globals)[TRACK_VARS_FILES] = http_post_files; local
|
/PHP-5.5/sapi/litespeed/ |
H A D | lsapi_main.c | 247 if (Z_TYPE(PG(http_globals)[TRACK_VARS_ENV]) == IS_ARRAY && in litespeed_php_import_environment_variables() 252 ZVAL_DUP(array_ptr, &PG(http_globals)[TRACK_VARS_ENV]); in litespeed_php_import_environment_variables() 259 ZVAL_DUP(array_ptr, &PG(http_globals)[TRACK_VARS_SERVER]); in litespeed_php_import_environment_variables() 263 if (PG(http_globals)[TRACK_VARS_ENV] && in litespeed_php_import_environment_variables() 264 array_ptr != PG(http_globals)[TRACK_VARS_ENV] && in litespeed_php_import_environment_variables() 265 Z_TYPE_P(PG(http_globals)[TRACK_VARS_ENV]) == IS_ARRAY && in litespeed_php_import_environment_variables() 269 *array_ptr = *PG(http_globals)[TRACK_VARS_ENV]; in litespeed_php_import_environment_variables() 273 } else if (PG(http_globals)[TRACK_VARS_SERVER] && in litespeed_php_import_environment_variables() 274 array_ptr != PG(http_globals)[TRACK_VARS_SERVER] && in litespeed_php_import_environment_variables() 275 Z_TYPE_P(PG(http_globals)[TRACK_VARS_SERVER]) == IS_ARRAY && in litespeed_php_import_environment_variables() [all …]
|
/PHP-5.5/sapi/apache_hooks/ |
H A D | sapi_apache.c | 82 php_register_variable_ex("request", req, PG(http_globals)[TRACK_VARS_SERVER] TSRMLS_CC); in apache_php_module_hook() 86 …php_register_variable("PHP_SELF_HOOK", handler->name, PG(http_globals)[TRACK_VARS_SERVER] TSRMLS_C… in apache_php_module_hook()
|
/PHP-5.5/ext/mbstring/ |
H A D | mb_gpc.c | 82 PG(http_globals)[TRACK_VARS_POST] = array_ptr; in ZEND_EXTERN_MODULE_GLOBALS() local 85 PG(http_globals)[TRACK_VARS_GET] = array_ptr; in ZEND_EXTERN_MODULE_GLOBALS() local 88 PG(http_globals)[TRACK_VARS_COOKIE] = array_ptr; in ZEND_EXTERN_MODULE_GLOBALS() local
|
/PHP-5.5/sapi/fpm/fpm/ |
H A D | fpm_main.c | 574 if (PG(http_globals)[TRACK_VARS_ENV] && in cgi_php_import_environment_variables() 575 array_ptr != PG(http_globals)[TRACK_VARS_ENV] && in cgi_php_import_environment_variables() 576 Z_TYPE_P(PG(http_globals)[TRACK_VARS_ENV]) == IS_ARRAY && in cgi_php_import_environment_variables() 577 zend_hash_num_elements(Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_ENV])) > 0 in cgi_php_import_environment_variables() 580 *array_ptr = *PG(http_globals)[TRACK_VARS_ENV]; in cgi_php_import_environment_variables() 584 } else if (PG(http_globals)[TRACK_VARS_SERVER] && in cgi_php_import_environment_variables() 585 array_ptr != PG(http_globals)[TRACK_VARS_SERVER] && in cgi_php_import_environment_variables() 586 Z_TYPE_P(PG(http_globals)[TRACK_VARS_SERVER]) == IS_ARRAY && in cgi_php_import_environment_variables() 587 zend_hash_num_elements(Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER])) > 0 in cgi_php_import_environment_variables() 590 *array_ptr = *PG(http_globals)[TRACK_VARS_SERVER]; in cgi_php_import_environment_variables() [all …]
|
/PHP-5.5/sapi/cgi/ |
H A D | cgi_main.c | 619 int filter_arg = (array_ptr == PG(http_globals)[TRACK_VARS_ENV])?PARSE_ENV:PARSE_SERVER; in cgi_php_load_env_var() 629 if (PG(http_globals)[TRACK_VARS_ENV] && in cgi_php_import_environment_variables() 630 array_ptr != PG(http_globals)[TRACK_VARS_ENV] && in cgi_php_import_environment_variables() 631 Z_TYPE_P(PG(http_globals)[TRACK_VARS_ENV]) == IS_ARRAY && in cgi_php_import_environment_variables() 632 zend_hash_num_elements(Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_ENV])) > 0 in cgi_php_import_environment_variables() 635 *array_ptr = *PG(http_globals)[TRACK_VARS_ENV]; in cgi_php_import_environment_variables() 639 } else if (PG(http_globals)[TRACK_VARS_SERVER] && in cgi_php_import_environment_variables() 640 array_ptr != PG(http_globals)[TRACK_VARS_SERVER] && in cgi_php_import_environment_variables() 641 Z_TYPE_P(PG(http_globals)[TRACK_VARS_SERVER]) == IS_ARRAY && in cgi_php_import_environment_variables() 642 zend_hash_num_elements(Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER])) > 0 in cgi_php_import_environment_variables() [all …]
|
/PHP-5.5/ext/standard/ |
H A D | browscap.c | 500 if (!PG(http_globals)[TRACK_VARS_SERVER] || in PHP_FUNCTION() 501 …zend_hash_find(HASH_OF(PG(http_globals)[TRACK_VARS_SERVER]), "HTTP_USER_AGENT", sizeof("HTTP_USER_… in PHP_FUNCTION()
|
H A D | basic_functions.c | 4269 if ((PG(http_globals)[TRACK_VARS_SERVER] || zend_is_auto_global(ZEND_STRL("_SERVER") TSRMLS_CC)) && 4270 …(zend_hash_find(Z_ARRVAL_P((PG(http_globals))[TRACK_VARS_SERVER]), "argv", sizeof("argv"), (void *…
|
/PHP-5.5/ext/session/ |
H A D | session.c | 1570 if (!PS(use_only_cookies) && !PS(id) && PG(http_globals)[TRACK_VARS_SERVER] && 1571 …zend_hash_find(Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER]), "REQUEST_URI", sizeof("REQUEST_URI… 1590 PG(http_globals)[TRACK_VARS_SERVER] && 1591 …zend_hash_find(Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER]), "HTTP_REFERER", sizeof("HTTP_REFER… 2528 if (!PG(http_globals)[where]) { 2532 …if (zend_hash_find(Z_ARRVAL_P(PG(http_globals)[where]), PS(session_name), progress->sname_len+1, (…
|
/PHP-5.5/ext/filter/ |
H A D | filter.c | 425 orig_array_ptr = PG(http_globals)[t]; \ in php_sapi_filter() 551 array_ptr = IF_G(env_array) ? IF_G(env_array) : PG(http_globals)[TRACK_VARS_ENV]; in php_filter_get_storage()
|
/PHP-5.5/ext/zlib/ |
H A D | zlib.c | 85 …if ((PG(http_globals)[TRACK_VARS_SERVER] || zend_is_auto_global(ZEND_STRL("_SERVER") TSRMLS_CC)) … in php_zlib_output_encoding() 86 …SUCCESS == zend_hash_find(Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER]), "HTTP_ACCEPT_ENCODING",… in php_zlib_output_encoding()
|
/PHP-5.5/ext/phar/ |
H A D | phar_object.c | 69 if (!PG(http_globals)[TRACK_VARS_SERVER]) { in phar_mung_server_vars() 73 _SERVER = Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER]); in phar_mung_server_vars() 612 if (PG(http_globals)[TRACK_VARS_SERVER]) { in PHP_METHOD() local 613 HashTable *_server = Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER]); in PHP_METHOD()
|
/PHP-5.5/ext/soap/ |
H A D | soap.c | 2080 …if ((PG(http_globals)[TRACK_VARS_SERVER] || zend_is_auto_global("_SERVER", sizeof("_SERVER") - 1 T… 2081 …zend_hash_find(PG(http_globals)[TRACK_VARS_SERVER]->value.ht, "HTTP_USER_AGENT", sizeof("HTTP_USER…
|