Home
last modified time | relevance | path

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

/PHP-7.0/main/
H A Dphp_variables.c604 array_init(&PG(http_globals)[TRACK_VARS_SERVER]); in php_register_server_variables()
669 memset(PG(http_globals), 0, sizeof(PG(http_globals))); in php_hash_environment()
684 array_init(&PG(http_globals)[TRACK_VARS_GET]); in php_auto_globals_create_get()
688 Z_ADDREF(PG(http_globals)[TRACK_VARS_GET]); in php_auto_globals_create_get()
703 array_init(&PG(http_globals)[TRACK_VARS_POST]); in php_auto_globals_create_post()
707 Z_ADDREF(PG(http_globals)[TRACK_VARS_POST]); in php_auto_globals_create_post()
722 Z_ADDREF(PG(http_globals)[TRACK_VARS_COOKIE]); in php_auto_globals_create_cookie()
734 Z_ADDREF(PG(http_globals)[TRACK_VARS_FILES]); in php_auto_globals_create_files()
782 Z_ADDREF(PG(http_globals)[TRACK_VARS_SERVER]); in php_auto_globals_create_server()
790 array_init(&PG(http_globals)[TRACK_VARS_ENV]); in php_auto_globals_create_env()
[all …]
H A Dphp_globals.h116 zval http_globals[6]; member
H A Drfc1867.c776 if (Z_TYPE(PG(http_globals)[TRACK_VARS_FILES]) != IS_ARRAY) {
778 array_init(&PG(http_globals)[TRACK_VARS_FILES]);
1169 register_http_post_files_variable(lbuf, s, &PG(http_globals)[TRACK_VARS_FILES], 0);
1200 register_http_post_files_variable(lbuf, cd, &PG(http_globals)[TRACK_VARS_FILES], 0);
1238 register_http_post_files_variable_ex(lbuf, &zfilename, &PG(http_globals)[TRACK_VARS_FILES], 1);
1276 register_http_post_files_variable_ex(lbuf, &error_type, &PG(http_globals)[TRACK_VARS_FILES], 0);
1300 …register_http_post_files_variable_ex(lbuf, &file_size, &PG(http_globals)[TRACK_VARS_FILES], size_o…
H A Dmain.c1750 zval_ptr_dtor(&PG(http_globals)[i]); in php_request_shutdown_for_hook()
1846 zval_ptr_dtor(&PG(http_globals)[i]); in php_request_shutdown()
/PHP-7.0/sapi/litespeed/
H A Dlsapi_main.c225 int filter_arg = (Z_ARR_P((zval *)arg) == Z_ARR(PG(http_globals)[TRACK_VARS_ENV])) in add_variable()
243 if (Z_TYPE(PG(http_globals)[TRACK_VARS_ENV]) == IS_ARRAY && in litespeed_php_import_environment_variables()
244 Z_ARR_P(array_ptr) != Z_ARR(PG(http_globals)[TRACK_VARS_ENV]) && in litespeed_php_import_environment_variables()
245 zend_hash_num_elements(Z_ARRVAL(PG(http_globals)[TRACK_VARS_ENV])) > 0 in litespeed_php_import_environment_variables()
248 ZVAL_DUP(array_ptr, &PG(http_globals)[TRACK_VARS_ENV]); in litespeed_php_import_environment_variables()
250 } else if (Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) == IS_ARRAY && in litespeed_php_import_environment_variables()
251 Z_ARR_P(array_ptr) != Z_ARR(PG(http_globals)[TRACK_VARS_SERVER]) && in litespeed_php_import_environment_variables()
252 zend_hash_num_elements(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER])) > 0 in litespeed_php_import_environment_variables()
255 ZVAL_DUP(array_ptr, &PG(http_globals)[TRACK_VARS_SERVER]); in litespeed_php_import_environment_variables()
/PHP-7.0/ext/mbstring/
H A Dmb_gpc.c80 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.0/sapi/phpdbg/
H A Dphpdbg_rinit_hook.c48 zval cookies = PG(http_globals)[TRACK_VARS_COOKIE]; in PHP_RINIT_FUNCTION()
H A Dphpdbg_wait.c28 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 Dphpdbg_prompt.c444 php_build_argv(NULL, &PG(http_globals)[TRACK_VARS_SERVER]); in PHPDBG_COMMAND()
919 php_build_argv(NULL, &PG(http_globals)[TRACK_VARS_SERVER]); in PHPDBG_COMMAND()
/PHP-7.0/sapi/fpm/fpm/
H A Dfpm_main.c553 …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()
566 if (Z_TYPE(PG(http_globals)[TRACK_VARS_ENV]) == IS_ARRAY && in cgi_php_import_environment_variables()
567 Z_ARR_P(array_ptr) != Z_ARR(PG(http_globals)[TRACK_VARS_ENV]) && in cgi_php_import_environment_variables()
568 zend_hash_num_elements(Z_ARRVAL(PG(http_globals)[TRACK_VARS_ENV])) > 0 in cgi_php_import_environment_variables()
571 ZVAL_DUP(array_ptr, &PG(http_globals)[TRACK_VARS_ENV]); in cgi_php_import_environment_variables()
573 } else if (Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) == IS_ARRAY && in cgi_php_import_environment_variables()
574 Z_ARR_P(array_ptr) != Z_ARR(PG(http_globals)[TRACK_VARS_SERVER]) && in cgi_php_import_environment_variables()
575 zend_hash_num_elements(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER])) > 0 in cgi_php_import_environment_variables()
578 ZVAL_DUP(array_ptr, &PG(http_globals)[TRACK_VARS_SERVER]); in cgi_php_import_environment_variables()
/PHP-7.0/sapi/cgi/
H A Dcgi_main.c605 …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()
615 if (Z_TYPE(PG(http_globals)[TRACK_VARS_ENV]) == IS_ARRAY && in cgi_php_import_environment_variables()
616 Z_ARR_P(array_ptr) != Z_ARR(PG(http_globals)[TRACK_VARS_ENV]) && in cgi_php_import_environment_variables()
617 zend_hash_num_elements(Z_ARRVAL(PG(http_globals)[TRACK_VARS_ENV])) > 0 in cgi_php_import_environment_variables()
620 ZVAL_DUP(array_ptr, &PG(http_globals)[TRACK_VARS_ENV]); in cgi_php_import_environment_variables()
622 } else if (Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) == IS_ARRAY && in cgi_php_import_environment_variables()
623 Z_ARR_P(array_ptr) != Z_ARR(PG(http_globals)[TRACK_VARS_SERVER]) && in cgi_php_import_environment_variables()
624 zend_hash_num_elements(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER])) > 0 in cgi_php_import_environment_variables()
627 ZVAL_DUP(array_ptr, &PG(http_globals)[TRACK_VARS_SERVER]); in cgi_php_import_environment_variables()
/PHP-7.0/ext/standard/
H A Dbrowscap.c696 if (Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) == IS_ARRAY in PHP_FUNCTION()
699 Z_ARRVAL_P(&PG(http_globals)[TRACK_VARS_SERVER]), in PHP_FUNCTION()
H A Dbasic_functions.c4275 …if ((Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) == IS_ARRAY || zend_is_auto_global_str(ZEND_STRL(…
4276 …((args = zend_hash_str_find_ind(Z_ARRVAL_P(&PG(http_globals)[TRACK_VARS_SERVER]), "argv", sizeof("…
/PHP-7.0/ext/filter/
H A Dfilter.c434 orig_array_ptr = &PG(http_globals)[t]; \ in php_sapi_filter()
550 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.0/ext/session/
H A Dsession.c1658 …(data = zend_hash_str_find(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER]), "REQUEST_URI", sizeof("R…
1672 !Z_ISUNDEF(PG(http_globals)[TRACK_VARS_SERVER]) &&
1673 …(data = zend_hash_str_find(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER]), "HTTP_REFERER", sizeof("…
2861 if (Z_ISUNDEF(PG(http_globals)[where])) {
2865 …if ((ppid = zend_hash_str_find(Z_ARRVAL(PG(http_globals)[where]), PS(session_name), progress->snam…
/PHP-7.0/ext/zlib/
H A Dzlib.c109 …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.0/ext/phar/
H A Dphar_object.c69 if (Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) == IS_UNDEF) { in phar_mung_server_vars()
73 _SERVER = Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER]); in phar_mung_server_vars()
614 if (Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) != IS_UNDEF) { in PHP_METHOD()
615 HashTable *_server = Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER]); in PHP_METHOD()
/PHP-7.0/ext/soap/
H A Dsoap.c2087 …if ((Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) == IS_ARRAY || zend_is_auto_global_str(ZEND_STRL(…
2088 …(agent_name = zend_hash_str_find(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER]), "HTTP_USER_AGENT",…

Completed in 102 milliseconds