Home
last modified time | relevance | path

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

/php-src/main/
H A Dphp_variables.c719 zval *arr = &PG(http_globals)[TRACK_VARS_SERVER]; in php_register_server_variables()
787 memset(PG(http_globals), 0, sizeof(PG(http_globals))); in php_hash_environment()
802 array_init(&PG(http_globals)[TRACK_VARS_GET]); in php_auto_globals_create_get()
806 Z_ADDREF(PG(http_globals)[TRACK_VARS_GET]); in php_auto_globals_create_get()
821 array_init(&PG(http_globals)[TRACK_VARS_POST]); in php_auto_globals_create_post()
825 Z_ADDREF(PG(http_globals)[TRACK_VARS_POST]); in php_auto_globals_create_post()
840 Z_ADDREF(PG(http_globals)[TRACK_VARS_COOKIE]); in php_auto_globals_create_cookie()
852 Z_ADDREF(PG(http_globals)[TRACK_VARS_FILES]); in php_auto_globals_create_files()
900 Z_ADDREF(PG(http_globals)[TRACK_VARS_SERVER]); in php_auto_globals_create_server()
913 array_init(&PG(http_globals)[TRACK_VARS_ENV]); in php_auto_globals_create_env()
[all …]
H A Dphp_globals.h114 zval http_globals[6]; member
H A Drfc1867.c754 if (Z_TYPE(PG(http_globals)[TRACK_VARS_FILES]) != IS_ARRAY) {
756 array_init(&PG(http_globals)[TRACK_VARS_FILES]);
1144 register_http_post_files_variable(lbuf, s, &PG(http_globals)[TRACK_VARS_FILES], 0);
1156 register_http_post_files_variable(lbuf, filename, &PG(http_globals)[TRACK_VARS_FILES], 0);
1176 register_http_post_files_variable(lbuf, cd, &PG(http_globals)[TRACK_VARS_FILES], 0);
1204 register_http_post_files_variable_ex(lbuf, &zfilename, &PG(http_globals)[TRACK_VARS_FILES], 1);
1242 register_http_post_files_variable_ex(lbuf, &error_type, &PG(http_globals)[TRACK_VARS_FILES], 0);
1253 …register_http_post_files_variable_ex(lbuf, &file_size, &PG(http_globals)[TRACK_VARS_FILES], size_o…
H A Dmain.c1889 zval_ptr_dtor(&PG(http_globals)[i]); in php_request_shutdown()
/php-src/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-src/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-src/sapi/fpm/fpm/
H A Dfpm_main.c513 …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()
540 if (Z_TYPE(PG(http_globals)[TRACK_VARS_ENV]) == IS_ARRAY && in cgi_php_import_environment_variables()
541 Z_ARR_P(array_ptr) != Z_ARR(PG(http_globals)[TRACK_VARS_ENV]) && in cgi_php_import_environment_variables()
542 zend_hash_num_elements(Z_ARRVAL(PG(http_globals)[TRACK_VARS_ENV])) > 0 in cgi_php_import_environment_variables()
545 Z_ARR_P(array_ptr) = zend_array_dup(Z_ARR(PG(http_globals)[TRACK_VARS_ENV])); in cgi_php_import_environment_variables()
547 } else if (Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) == IS_ARRAY && in cgi_php_import_environment_variables()
548 Z_ARR_P(array_ptr) != Z_ARR(PG(http_globals)[TRACK_VARS_SERVER]) && in cgi_php_import_environment_variables()
549 zend_hash_num_elements(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER])) > 0 in cgi_php_import_environment_variables()
552 Z_ARR_P(array_ptr) = zend_array_dup(Z_ARR(PG(http_globals)[TRACK_VARS_SERVER])); in cgi_php_import_environment_variables()
/php-src/ext/standard/
H A Dhttp.c345 zval *global_post = &PG(http_globals)[TRACK_VARS_POST]; in PHP_FUNCTION()
346 zval *global_files = &PG(http_globals)[TRACK_VARS_FILES]; in PHP_FUNCTION()
H A Dbrowscap.c735 if (Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) == IS_ARRAY in PHP_FUNCTION()
738 Z_ARRVAL_P(&PG(http_globals)[TRACK_VARS_SERVER]), in PHP_FUNCTION()
H A Dbasic_functions.c953 …if ((Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) == IS_ARRAY || zend_is_auto_global(ZSTR_KNOWN(ZEN…
954 …((args = zend_hash_find_ex_ind(Z_ARRVAL_P(&PG(http_globals)[TRACK_VARS_SERVER]), ZSTR_KNOWN(ZEND_S…
/php-src/ext/filter/
H A Dfilter.c301 orig_array_ptr = &PG(http_globals)[t]; \ in php_sapi_filter()
417 array_ptr = !Z_ISUNDEF(IF_G(env_array)) ? &IF_G(env_array) : &PG(http_globals)[TRACK_VARS_ENV]; in php_filter_get_storage()
/php-src/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-src/ext/zlib/
H A Dzlib.c154 …if ((Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) == IS_ARRAY || zend_is_auto_global(ZSTR_KNOWN(ZEN… in php_zlib_output_encoding()
155 …(enc = zend_hash_str_find(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER]), "HTTP_ACCEPT_ENCODING", s… in php_zlib_output_encoding()
/php-src/ext/session/
H A Dsession.c1591 !Z_ISUNDEF(PG(http_globals)[TRACK_VARS_SERVER]) && in php_session_start()
1592 …(data = zend_hash_str_find(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER]), "HTTP_REFERER", sizeof("… in php_session_start()
3002 if (Z_ISUNDEF(PG(http_globals)[where])) { in early_find_sid_in()
3006 …if ((ppid = zend_hash_str_find(Z_ARRVAL(PG(http_globals)[where]), PS(session_name), progress->snam… in early_find_sid_in()
/php-src/sapi/phpdbg/
H A Dphpdbg_prompt.c433 php_build_argv(NULL, &PG(http_globals)[TRACK_VARS_SERVER]); in PHPDBG_COMMAND()
863 php_build_argv(NULL, &PG(http_globals)[TRACK_VARS_SERVER]); in PHPDBG_COMMAND()
/php-src/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()
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-src/ext/soap/
H A Dsoap.c1750 …if ((Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) == IS_ARRAY || zend_is_auto_global(ZSTR_KNOWN(ZEN…
1751 …(agent_name = zend_hash_str_find(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER]), "HTTP_USER_AGENT",…

Completed in 105 milliseconds