/PHP-7.2/main/ |
H A D | php_variables.c | 632 array_init(&PG(http_globals)[TRACK_VARS_SERVER]); in php_register_server_variables() 697 memset(PG(http_globals), 0, sizeof(PG(http_globals))); in php_hash_environment() 712 array_init(&PG(http_globals)[TRACK_VARS_GET]); in php_auto_globals_create_get() 716 Z_ADDREF(PG(http_globals)[TRACK_VARS_GET]); in php_auto_globals_create_get() 731 array_init(&PG(http_globals)[TRACK_VARS_POST]); in php_auto_globals_create_post() 735 Z_ADDREF(PG(http_globals)[TRACK_VARS_POST]); in php_auto_globals_create_post() 750 Z_ADDREF(PG(http_globals)[TRACK_VARS_COOKIE]); in php_auto_globals_create_cookie() 762 Z_ADDREF(PG(http_globals)[TRACK_VARS_FILES]); in php_auto_globals_create_files() 810 Z_ADDREF(PG(http_globals)[TRACK_VARS_SERVER]); in php_auto_globals_create_server() 823 array_init(&PG(http_globals)[TRACK_VARS_ENV]); in php_auto_globals_create_env() [all …]
|
H A D | php_globals.h | 120 zval http_globals[6]; member
|
H A D | rfc1867.c | 779 if (Z_TYPE(PG(http_globals)[TRACK_VARS_FILES]) != IS_ARRAY) { 781 array_init(&PG(http_globals)[TRACK_VARS_FILES]); 1172 register_http_post_files_variable(lbuf, s, &PG(http_globals)[TRACK_VARS_FILES], 0); 1203 register_http_post_files_variable(lbuf, cd, &PG(http_globals)[TRACK_VARS_FILES], 0); 1241 register_http_post_files_variable_ex(lbuf, &zfilename, &PG(http_globals)[TRACK_VARS_FILES], 1); 1279 register_http_post_files_variable_ex(lbuf, &error_type, &PG(http_globals)[TRACK_VARS_FILES], 0); 1303 …register_http_post_files_variable_ex(lbuf, &file_size, &PG(http_globals)[TRACK_VARS_FILES], size_o…
|
H A D | main.c | 1798 zval_ptr_dtor(&PG(http_globals)[i]); in php_request_shutdown_for_hook() 1896 zval_ptr_dtor(&PG(http_globals)[i]); in php_request_shutdown()
|
/PHP-7.2/ext/mbstring/ |
H A D | mb_gpc.c | 80 ZVAL_COPY_VALUE(&PG(http_globals)[TRACK_VARS_POST], &v_array); in ZEND_EXTERN_MODULE_GLOBALS() 83 ZVAL_COPY_VALUE(&PG(http_globals)[TRACK_VARS_GET], &v_array); in ZEND_EXTERN_MODULE_GLOBALS() 86 ZVAL_COPY_VALUE(&PG(http_globals)[TRACK_VARS_COOKIE], &v_array); in ZEND_EXTERN_MODULE_GLOBALS()
|
/PHP-7.2/sapi/phpdbg/ |
H A D | phpdbg_rinit_hook.c | 48 zval cookies = PG(http_globals)[TRACK_VARS_COOKIE]; in PHP_RINIT_FUNCTION()
|
H A D | phpdbg_wait.c | 28 if (Z_TYPE(PG(http_globals)[type]) != IS_UNDEF) { in ZEND_EXTERN_MODULE_GLOBALS() 29 zval_dtor(&PG(http_globals)[type]); in ZEND_EXTERN_MODULE_GLOBALS() 33 PG(http_globals)[type] = *zvp; in ZEND_EXTERN_MODULE_GLOBALS() local
|
H A D | phpdbg_prompt.c | 440 php_build_argv(NULL, &PG(http_globals)[TRACK_VARS_SERVER]); in PHPDBG_COMMAND() 921 php_build_argv(NULL, &PG(http_globals)[TRACK_VARS_SERVER]); in PHPDBG_COMMAND()
|
/PHP-7.2/sapi/litespeed/ |
H A D | lsapi_main.c | 229 int filter_arg = (Z_ARR_P((zval *)arg) == Z_ARR(PG(http_globals)[TRACK_VARS_ENV])) in add_variable() 247 if (Z_TYPE(PG(http_globals)[TRACK_VARS_ENV]) == IS_ARRAY && in litespeed_php_import_environment_variables() 248 Z_ARR_P(array_ptr) != Z_ARR(PG(http_globals)[TRACK_VARS_ENV]) && in litespeed_php_import_environment_variables() 249 zend_hash_num_elements(Z_ARRVAL(PG(http_globals)[TRACK_VARS_ENV])) > 0 in litespeed_php_import_environment_variables() 252 ZVAL_DUP(array_ptr, &PG(http_globals)[TRACK_VARS_ENV]); in litespeed_php_import_environment_variables() 254 } else if (Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) == IS_ARRAY && in litespeed_php_import_environment_variables() 255 Z_ARR_P(array_ptr) != Z_ARR(PG(http_globals)[TRACK_VARS_SERVER]) && in litespeed_php_import_environment_variables() 256 zend_hash_num_elements(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER])) > 0 in litespeed_php_import_environment_variables() 259 ZVAL_DUP(array_ptr, &PG(http_globals)[TRACK_VARS_SERVER]); in litespeed_php_import_environment_variables()
|
/PHP-7.2/sapi/fpm/fpm/ |
H A D | fpm_main.c | 554 …int filter_arg = (Z_ARR_P(array_ptr) == Z_ARR(PG(http_globals)[TRACK_VARS_ENV]))?PARSE_ENV:PARSE_S… in cgi_php_load_env_var() 567 if (Z_TYPE(PG(http_globals)[TRACK_VARS_ENV]) == IS_ARRAY && in cgi_php_import_environment_variables() 568 Z_ARR_P(array_ptr) != Z_ARR(PG(http_globals)[TRACK_VARS_ENV]) && in cgi_php_import_environment_variables() 569 zend_hash_num_elements(Z_ARRVAL(PG(http_globals)[TRACK_VARS_ENV])) > 0 in cgi_php_import_environment_variables() 572 ZVAL_DUP(array_ptr, &PG(http_globals)[TRACK_VARS_ENV]); in cgi_php_import_environment_variables() 574 } else if (Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) == IS_ARRAY && in cgi_php_import_environment_variables() 575 Z_ARR_P(array_ptr) != Z_ARR(PG(http_globals)[TRACK_VARS_SERVER]) && in cgi_php_import_environment_variables() 576 zend_hash_num_elements(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER])) > 0 in cgi_php_import_environment_variables() 579 ZVAL_DUP(array_ptr, &PG(http_globals)[TRACK_VARS_SERVER]); in cgi_php_import_environment_variables()
|
/PHP-7.2/sapi/cgi/ |
H A D | cgi_main.c | 668 …int filter_arg = (Z_ARR_P(array_ptr) == Z_ARR(PG(http_globals)[TRACK_VARS_ENV]))?PARSE_ENV:PARSE_S… in cgi_php_load_env_var() 678 if (Z_TYPE(PG(http_globals)[TRACK_VARS_ENV]) == IS_ARRAY && in cgi_php_import_environment_variables() 679 Z_ARR_P(array_ptr) != Z_ARR(PG(http_globals)[TRACK_VARS_ENV]) && in cgi_php_import_environment_variables() 680 zend_hash_num_elements(Z_ARRVAL(PG(http_globals)[TRACK_VARS_ENV])) > 0 in cgi_php_import_environment_variables() 683 ZVAL_DUP(array_ptr, &PG(http_globals)[TRACK_VARS_ENV]); in cgi_php_import_environment_variables() 685 } else if (Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) == IS_ARRAY && in cgi_php_import_environment_variables() 686 Z_ARR_P(array_ptr) != Z_ARR(PG(http_globals)[TRACK_VARS_SERVER]) && in cgi_php_import_environment_variables() 687 zend_hash_num_elements(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER])) > 0 in cgi_php_import_environment_variables() 690 ZVAL_DUP(array_ptr, &PG(http_globals)[TRACK_VARS_SERVER]); in cgi_php_import_environment_variables()
|
/PHP-7.2/ext/standard/ |
H A D | browscap.c | 694 if (Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) == IS_ARRAY in PHP_FUNCTION() 697 Z_ARRVAL_P(&PG(http_globals)[TRACK_VARS_SERVER]), in PHP_FUNCTION()
|
H A D | basic_functions.c | 4356 …if ((Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) == IS_ARRAY || zend_is_auto_global_str(ZEND_STRL(… 4357 …((args = zend_hash_str_find_ind(Z_ARRVAL_P(&PG(http_globals)[TRACK_VARS_SERVER]), "argv", sizeof("…
|
/PHP-7.2/ext/filter/ |
H A D | filter.c | 436 orig_array_ptr = &PG(http_globals)[t]; \ in php_sapi_filter() 552 array_ptr = !Z_ISUNDEF(IF_G(env_array)) ? &IF_G(env_array) : &PG(http_globals)[TRACK_VARS_ENV]; in php_filter_get_storage()
|
/PHP-7.2/ext/session/ |
H A D | session.c | 1566 …(data = zend_hash_str_find(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER]), "REQUEST_URI", sizeof("R… in php_session_start() 1580 !Z_ISUNDEF(PG(http_globals)[TRACK_VARS_SERVER]) && in php_session_start() 1581 …(data = zend_hash_str_find(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER]), "HTTP_REFERER", sizeof("… in php_session_start() 2972 if (Z_ISUNDEF(PG(http_globals)[where])) { in early_find_sid_in() 2976 …if ((ppid = zend_hash_str_find(Z_ARRVAL(PG(http_globals)[where]), PS(session_name), progress->snam… in early_find_sid_in()
|
/PHP-7.2/ext/zlib/ |
H A D | zlib.c | 109 …if ((Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) == IS_ARRAY || zend_is_auto_global_str(ZEND_STRL(… in php_zlib_output_encoding() 110 …(enc = zend_hash_str_find(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER]), "HTTP_ACCEPT_ENCODING", s… in php_zlib_output_encoding()
|
/PHP-7.2/ext/phar/ |
H A D | phar_object.c | 60 if (Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) == IS_UNDEF) { in phar_mung_server_vars() 64 _SERVER = Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER]); in phar_mung_server_vars() 605 if (Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) != IS_UNDEF) { in PHP_METHOD() 606 HashTable *_server = Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER]); in PHP_METHOD()
|
/PHP-7.2/ext/soap/ |
H A D | soap.c | 2072 …if ((Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) == IS_ARRAY || zend_is_auto_global_str(ZEND_STRL(… 2073 …(agent_name = zend_hash_str_find(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER]), "HTTP_USER_AGENT",…
|