Home
last modified time | relevance | path

Searched refs:http_globals (Results 1 – 16 of 16) sorted by relevance

/PHP-8.2/main/
H A Dphp_variables.c723 zval *arr = &PG(http_globals)[TRACK_VARS_SERVER]; in php_register_server_variables()
791 memset(PG(http_globals), 0, sizeof(PG(http_globals))); in php_hash_environment()
806 array_init(&PG(http_globals)[TRACK_VARS_GET]); in php_auto_globals_create_get()
810 Z_ADDREF(PG(http_globals)[TRACK_VARS_GET]); in php_auto_globals_create_get()
825 array_init(&PG(http_globals)[TRACK_VARS_POST]); in php_auto_globals_create_post()
829 Z_ADDREF(PG(http_globals)[TRACK_VARS_POST]); in php_auto_globals_create_post()
844 Z_ADDREF(PG(http_globals)[TRACK_VARS_COOKIE]); in php_auto_globals_create_cookie()
856 Z_ADDREF(PG(http_globals)[TRACK_VARS_FILES]); in php_auto_globals_create_files()
904 Z_ADDREF(PG(http_globals)[TRACK_VARS_SERVER]); in php_auto_globals_create_server()
917 array_init(&PG(http_globals)[TRACK_VARS_ENV]); in php_auto_globals_create_env()
[all …]
H A Dphp_globals.h110 zval http_globals[6]; member
H A Drfc1867.c768 if (Z_TYPE(PG(http_globals)[TRACK_VARS_FILES]) != IS_ARRAY) {
770 array_init(&PG(http_globals)[TRACK_VARS_FILES]);
1158 register_http_post_files_variable(lbuf, s, &PG(http_globals)[TRACK_VARS_FILES], 0);
1170 register_http_post_files_variable(lbuf, filename, &PG(http_globals)[TRACK_VARS_FILES], 0);
1190 register_http_post_files_variable(lbuf, cd, &PG(http_globals)[TRACK_VARS_FILES], 0);
1218 register_http_post_files_variable_ex(lbuf, &zfilename, &PG(http_globals)[TRACK_VARS_FILES], 1);
1256 register_http_post_files_variable_ex(lbuf, &error_type, &PG(http_globals)[TRACK_VARS_FILES], 0);
1267 …register_http_post_files_variable_ex(lbuf, &file_size, &PG(http_globals)[TRACK_VARS_FILES], size_o…
H A Dmain.c1894 zval_ptr_dtor(&PG(http_globals)[i]); in php_request_shutdown()
/PHP-8.2/ext/mbstring/
H A Dmb_gpc.c64 ZVAL_COPY_VALUE(&PG(http_globals)[TRACK_VARS_POST], &v_array); in ZEND_EXTERN_MODULE_GLOBALS()
67 ZVAL_COPY_VALUE(&PG(http_globals)[TRACK_VARS_GET], &v_array); in ZEND_EXTERN_MODULE_GLOBALS()
70 ZVAL_COPY_VALUE(&PG(http_globals)[TRACK_VARS_COOKIE], &v_array); in ZEND_EXTERN_MODULE_GLOBALS()
/PHP-8.2/sapi/litespeed/
H A Dlsapi_main.c204 int filter_arg = (Z_ARR_P((zval *)arg) == Z_ARR(PG(http_globals)[TRACK_VARS_ENV])) in add_variable()
222 if (Z_TYPE(PG(http_globals)[TRACK_VARS_ENV]) == IS_ARRAY && in litespeed_php_import_environment_variables()
223 Z_ARR_P(array_ptr) != Z_ARR(PG(http_globals)[TRACK_VARS_ENV]) && in litespeed_php_import_environment_variables()
224 zend_hash_num_elements(Z_ARRVAL(PG(http_globals)[TRACK_VARS_ENV])) > 0 in litespeed_php_import_environment_variables()
227 ZVAL_DUP(array_ptr, &PG(http_globals)[TRACK_VARS_ENV]); in litespeed_php_import_environment_variables()
229 } else if (Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) == IS_ARRAY && in litespeed_php_import_environment_variables()
230 Z_ARR_P(array_ptr) != Z_ARR(PG(http_globals)[TRACK_VARS_SERVER]) && in litespeed_php_import_environment_variables()
231 zend_hash_num_elements(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER])) > 0 in litespeed_php_import_environment_variables()
234 ZVAL_DUP(array_ptr, &PG(http_globals)[TRACK_VARS_SERVER]); in litespeed_php_import_environment_variables()
/PHP-8.2/sapi/fpm/fpm/
H A Dfpm_main.c510 …int filter_arg = (Z_ARR_P(array_ptr) == Z_ARR(PG(http_globals)[TRACK_VARS_ENV])) ? PARSE_ENV : PAR… in cgi_php_load_env_var()
537 if (Z_TYPE(PG(http_globals)[TRACK_VARS_ENV]) == IS_ARRAY && in cgi_php_import_environment_variables()
538 Z_ARR_P(array_ptr) != Z_ARR(PG(http_globals)[TRACK_VARS_ENV]) && in cgi_php_import_environment_variables()
539 zend_hash_num_elements(Z_ARRVAL(PG(http_globals)[TRACK_VARS_ENV])) > 0 in cgi_php_import_environment_variables()
542 Z_ARR_P(array_ptr) = zend_array_dup(Z_ARR(PG(http_globals)[TRACK_VARS_ENV])); in cgi_php_import_environment_variables()
544 } else if (Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) == IS_ARRAY && in cgi_php_import_environment_variables()
545 Z_ARR_P(array_ptr) != Z_ARR(PG(http_globals)[TRACK_VARS_SERVER]) && in cgi_php_import_environment_variables()
546 zend_hash_num_elements(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER])) > 0 in cgi_php_import_environment_variables()
549 Z_ARR_P(array_ptr) = zend_array_dup(Z_ARR(PG(http_globals)[TRACK_VARS_SERVER])); in cgi_php_import_environment_variables()
/PHP-8.2/ext/filter/
H A Dfilter.c307 orig_array_ptr = &PG(http_globals)[t]; \ in php_sapi_filter()
423 array_ptr = !Z_ISUNDEF(IF_G(env_array)) ? &IF_G(env_array) : &PG(http_globals)[TRACK_VARS_ENV]; in php_filter_get_storage()
/PHP-8.2/ext/standard/
H A Dbrowscap.c710 if (Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) == IS_ARRAY in PHP_FUNCTION()
713 Z_ARRVAL_P(&PG(http_globals)[TRACK_VARS_SERVER]), in PHP_FUNCTION()
H A Dbasic_functions.c990 …if ((Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) == IS_ARRAY || zend_is_auto_global(ZSTR_KNOWN(ZEN…
991 …((args = zend_hash_find_ex_ind(Z_ARRVAL_P(&PG(http_globals)[TRACK_VARS_SERVER]), ZSTR_KNOWN(ZEND_S…
/PHP-8.2/sapi/cgi/
H A Dcgi_main.c656 …int filter_arg = (Z_ARR_P(array_ptr) == Z_ARR(PG(http_globals)[TRACK_VARS_ENV])) ? PARSE_ENV : PAR… in cgi_php_load_env_var()
667 if (Z_TYPE(PG(http_globals)[TRACK_VARS_ENV]) != IS_ARRAY) { in cgi_php_import_environment_variables()
671 if (Z_TYPE(PG(http_globals)[TRACK_VARS_ENV]) == IS_ARRAY && in cgi_php_import_environment_variables()
672 Z_ARR_P(array_ptr) != Z_ARR(PG(http_globals)[TRACK_VARS_ENV])) { in cgi_php_import_environment_variables()
674 Z_ARR_P(array_ptr) = zend_array_dup(Z_ARR(PG(http_globals)[TRACK_VARS_ENV])); in cgi_php_import_environment_variables()
/PHP-8.2/ext/zlib/
H A Dzlib.c156 …if ((Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) == IS_ARRAY || zend_is_auto_global(ZSTR_KNOWN(ZEN… in php_zlib_output_encoding()
157 …(enc = zend_hash_str_find(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER]), "HTTP_ACCEPT_ENCODING", s… in php_zlib_output_encoding()
/PHP-8.2/ext/session/
H A Dsession.c1576 !Z_ISUNDEF(PG(http_globals)[TRACK_VARS_SERVER]) && in php_session_start()
1577 …(data = zend_hash_str_find(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER]), "HTTP_REFERER", sizeof("… in php_session_start()
2903 if (Z_ISUNDEF(PG(http_globals)[where])) { in early_find_sid_in()
2907 …if ((ppid = zend_hash_str_find(Z_ARRVAL(PG(http_globals)[where]), PS(session_name), progress->snam… in early_find_sid_in()
/PHP-8.2/sapi/phpdbg/
H A Dphpdbg_prompt.c434 php_build_argv(NULL, &PG(http_globals)[TRACK_VARS_SERVER]); in PHPDBG_COMMAND()
864 php_build_argv(NULL, &PG(http_globals)[TRACK_VARS_SERVER]); in PHPDBG_COMMAND()
/PHP-8.2/ext/phar/
H A Dphar_object.c59 if (Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) == IS_UNDEF) { in phar_mung_server_vars()
63 _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-8.2/ext/soap/
H A Dsoap.c1682 …if ((Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) == IS_ARRAY || zend_is_auto_global(ZSTR_KNOWN(ZEN…
1683 …(agent_name = zend_hash_str_find(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER]), "HTTP_USER_AGENT",…

Completed in 103 milliseconds