Lines Matching refs:PG

85 	ZEND_ASSERT(Z_TYPE(PG(http_globals)[TRACK_VARS_COOKIE]) == IS_UNDEF ||  in php_register_known_variable()
86 Z_ARRVAL(PG(http_globals)[TRACK_VARS_COOKIE]) != symbol_table); in php_register_known_variable()
201 if(++nest_level > PG(max_input_nesting_level)) { in php_register_variable_ex()
214 if (!PG(display_errors)) { in php_register_variable_ex()
215 …_FMT ". To increase the limit change max_input_nesting_level in php.ini.", PG(max_input_nesting_le… in php_register_variable_ex()
317 if (Z_TYPE(PG(http_globals)[TRACK_VARS_COOKIE]) != IS_UNDEF && in php_register_variable_ex()
318 symtable1 == Z_ARRVAL(PG(http_globals)[TRACK_VARS_COOKIE]) && in php_register_variable_ex()
394 uint64_t max_vars = PG(max_input_vars); in add_post_vars()
478 zval_ptr_dtor_nogc(&PG(http_globals)[TRACK_VARS_POST]); in SAPI_TREAT_DATA_FUNC()
479 ZVAL_COPY_VALUE(&PG(http_globals)[TRACK_VARS_POST], &array); in SAPI_TREAT_DATA_FUNC()
482 zval_ptr_dtor_nogc(&PG(http_globals)[TRACK_VARS_GET]); in SAPI_TREAT_DATA_FUNC()
483 ZVAL_COPY_VALUE(&PG(http_globals)[TRACK_VARS_GET], &array); in SAPI_TREAT_DATA_FUNC()
486 zval_ptr_dtor_nogc(&PG(http_globals)[TRACK_VARS_COOKIE]); in SAPI_TREAT_DATA_FUNC()
487 ZVAL_COPY_VALUE(&PG(http_globals)[TRACK_VARS_COOKIE], &array); in SAPI_TREAT_DATA_FUNC()
529 separator = PG(arg_separator).input; in SAPI_TREAT_DATA_FUNC()
554 if (++count > PG(max_input_vars)) { in SAPI_TREAT_DATA_FUNC()
555 …d " ZEND_LONG_FMT ". To increase the limit change max_input_vars in php.ini.", PG(max_input_vars)); in SAPI_TREAT_DATA_FUNC()
723 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()
793 if (PG(register_argc_argv)) { in php_hash_environment()
794 php_build_argv(SG(request_info).query_string, &PG(http_globals)[TRACK_VARS_SERVER]); in php_hash_environment()
802 if (PG(variables_order) && (strchr(PG(variables_order),'G') || strchr(PG(variables_order),'g'))) { in php_auto_globals_create_get()
805 zval_ptr_dtor_nogc(&PG(http_globals)[TRACK_VARS_GET]); in php_auto_globals_create_get()
806 array_init(&PG(http_globals)[TRACK_VARS_GET]); in php_auto_globals_create_get()
809 zend_hash_update(&EG(symbol_table), name, &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()
817 if (PG(variables_order) && in php_auto_globals_create_post()
818 (strchr(PG(variables_order),'P') || strchr(PG(variables_order),'p')) && in php_auto_globals_create_post()
824 zval_ptr_dtor_nogc(&PG(http_globals)[TRACK_VARS_POST]); in php_auto_globals_create_post()
825 array_init(&PG(http_globals)[TRACK_VARS_POST]); in php_auto_globals_create_post()
828 zend_hash_update(&EG(symbol_table), name, &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()
836 if (PG(variables_order) && (strchr(PG(variables_order),'C') || strchr(PG(variables_order),'c'))) { in php_auto_globals_create_cookie()
839 zval_ptr_dtor_nogc(&PG(http_globals)[TRACK_VARS_COOKIE]); in php_auto_globals_create_cookie()
840 array_init(&PG(http_globals)[TRACK_VARS_COOKIE]); in php_auto_globals_create_cookie()
843 zend_hash_update(&EG(symbol_table), name, &PG(http_globals)[TRACK_VARS_COOKIE]); in php_auto_globals_create_cookie()
844 Z_ADDREF(PG(http_globals)[TRACK_VARS_COOKIE]); in php_auto_globals_create_cookie()
851 if (Z_TYPE(PG(http_globals)[TRACK_VARS_FILES]) == IS_UNDEF) { in php_auto_globals_create_files()
852 array_init(&PG(http_globals)[TRACK_VARS_FILES]); in php_auto_globals_create_files()
855 zend_hash_update(&EG(symbol_table), name, &PG(http_globals)[TRACK_VARS_FILES]); in php_auto_globals_create_files()
856 Z_ADDREF(PG(http_globals)[TRACK_VARS_FILES]); in php_auto_globals_create_files()
879 if (PG(variables_order) && (strchr(PG(variables_order),'S') || strchr(PG(variables_order),'s'))) { in php_auto_globals_create_server()
882 if (PG(register_argc_argv)) { in php_auto_globals_create_server()
889 … zend_hash_update(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER]), ZSTR_KNOWN(ZEND_STR_ARGV), argv); in php_auto_globals_create_server()
890 … zend_hash_update(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER]), ZSTR_KNOWN(ZEND_STR_ARGC), argc); in php_auto_globals_create_server()
893 php_build_argv(SG(request_info).query_string, &PG(http_globals)[TRACK_VARS_SERVER]); in php_auto_globals_create_server()
898 zval_ptr_dtor_nogc(&PG(http_globals)[TRACK_VARS_SERVER]); in php_auto_globals_create_server()
899 array_init(&PG(http_globals)[TRACK_VARS_SERVER]); in php_auto_globals_create_server()
902 check_http_proxy(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER])); in php_auto_globals_create_server()
903 zend_hash_update(&EG(symbol_table), name, &PG(http_globals)[TRACK_VARS_SERVER]); in php_auto_globals_create_server()
904 Z_ADDREF(PG(http_globals)[TRACK_VARS_SERVER]); in php_auto_globals_create_server()
909 HT_ALLOW_COW_VIOLATION(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER])); in php_auto_globals_create_server()
916 zval_ptr_dtor_nogc(&PG(http_globals)[TRACK_VARS_ENV]); in php_auto_globals_create_env()
917 array_init(&PG(http_globals)[TRACK_VARS_ENV]); in php_auto_globals_create_env()
919 if (PG(variables_order) && (strchr(PG(variables_order),'E') || strchr(PG(variables_order),'e'))) { in php_auto_globals_create_env()
920 php_import_environment_variables(&PG(http_globals)[TRACK_VARS_ENV]); in php_auto_globals_create_env()
923 check_http_proxy(Z_ARRVAL(PG(http_globals)[TRACK_VARS_ENV])); in php_auto_globals_create_env()
924 zend_hash_update(&EG(symbol_table), name, &PG(http_globals)[TRACK_VARS_ENV]); in php_auto_globals_create_env()
925 Z_ADDREF(PG(http_globals)[TRACK_VARS_ENV]); in php_auto_globals_create_env()
938 if (PG(request_order) != NULL) { in php_auto_globals_create_request()
939 p = PG(request_order); in php_auto_globals_create_request()
941 p = PG(variables_order); in php_auto_globals_create_request()
949 php_autoglobal_merge(Z_ARRVAL(form_variables), Z_ARRVAL(PG(http_globals)[TRACK_VARS_GET])); in php_auto_globals_create_request()
956 php_autoglobal_merge(Z_ARRVAL(form_variables), Z_ARRVAL(PG(http_globals)[TRACK_VARS_POST])); in php_auto_globals_create_request()
963 php_autoglobal_merge(Z_ARRVAL(form_variables), Z_ARRVAL(PG(http_globals)[TRACK_VARS_COOKIE])); in php_auto_globals_create_request()
979 …zend_register_auto_global(ZSTR_KNOWN(ZEND_STR_AUTOGLOBAL_SERVER), PG(auto_globals_jit), php_auto_g… in php_startup_auto_globals()
980 …zend_register_auto_global(ZSTR_KNOWN(ZEND_STR_AUTOGLOBAL_ENV), PG(auto_globals_jit), php_auto_glob… in php_startup_auto_globals()
981 …zend_register_auto_global(ZSTR_KNOWN(ZEND_STR_AUTOGLOBAL_REQUEST), PG(auto_globals_jit), php_auto_… in php_startup_auto_globals()