Lines Matching refs:PG

165 			if(++nest_level > PG(max_input_nesting_level)) {  in php_register_variable_ex()
178 if (!PG(display_errors)) { in php_register_variable_ex()
179 …_FMT ". To increase the limit change max_input_nesting_level in php.ini.", PG(max_input_nesting_le… in php_register_variable_ex()
269 if (Z_TYPE(PG(http_globals)[TRACK_VARS_COOKIE]) != IS_UNDEF && in php_register_variable_ex()
270 symtable1 == Z_ARRVAL(PG(http_globals)[TRACK_VARS_COOKIE]) && in php_register_variable_ex()
346 uint64_t max_vars = PG(max_input_vars); in add_post_vars()
430 zval_ptr_dtor_nogc(&PG(http_globals)[TRACK_VARS_POST]); in SAPI_TREAT_DATA_FUNC()
431 ZVAL_COPY_VALUE(&PG(http_globals)[TRACK_VARS_POST], &array); in SAPI_TREAT_DATA_FUNC()
434 zval_ptr_dtor_nogc(&PG(http_globals)[TRACK_VARS_GET]); in SAPI_TREAT_DATA_FUNC()
435 ZVAL_COPY_VALUE(&PG(http_globals)[TRACK_VARS_GET], &array); in SAPI_TREAT_DATA_FUNC()
438 zval_ptr_dtor_nogc(&PG(http_globals)[TRACK_VARS_COOKIE]); in SAPI_TREAT_DATA_FUNC()
439 ZVAL_COPY_VALUE(&PG(http_globals)[TRACK_VARS_COOKIE], &array); in SAPI_TREAT_DATA_FUNC()
481 separator = PG(arg_separator).input; in SAPI_TREAT_DATA_FUNC()
506 if (++count > PG(max_input_vars)) { in SAPI_TREAT_DATA_FUNC()
507 …d " ZEND_LONG_FMT ". To increase the limit change max_input_vars in php.ini.", PG(max_input_vars)); in SAPI_TREAT_DATA_FUNC()
670 zval *arr = &PG(http_globals)[TRACK_VARS_SERVER]; in php_register_server_variables()
739 memset(PG(http_globals), 0, sizeof(PG(http_globals))); in php_hash_environment()
741 if (PG(register_argc_argv)) { in php_hash_environment()
742 php_build_argv(SG(request_info).query_string, &PG(http_globals)[TRACK_VARS_SERVER]); in php_hash_environment()
750 if (PG(variables_order) && (strchr(PG(variables_order),'G') || strchr(PG(variables_order),'g'))) { in php_auto_globals_create_get()
753 zval_ptr_dtor_nogc(&PG(http_globals)[TRACK_VARS_GET]); in php_auto_globals_create_get()
754 array_init(&PG(http_globals)[TRACK_VARS_GET]); in php_auto_globals_create_get()
757 zend_hash_update(&EG(symbol_table), name, &PG(http_globals)[TRACK_VARS_GET]); in php_auto_globals_create_get()
758 Z_ADDREF(PG(http_globals)[TRACK_VARS_GET]); in php_auto_globals_create_get()
765 if (PG(variables_order) && in php_auto_globals_create_post()
766 (strchr(PG(variables_order),'P') || strchr(PG(variables_order),'p')) && in php_auto_globals_create_post()
772 zval_ptr_dtor_nogc(&PG(http_globals)[TRACK_VARS_POST]); in php_auto_globals_create_post()
773 array_init(&PG(http_globals)[TRACK_VARS_POST]); in php_auto_globals_create_post()
776 zend_hash_update(&EG(symbol_table), name, &PG(http_globals)[TRACK_VARS_POST]); in php_auto_globals_create_post()
777 Z_ADDREF(PG(http_globals)[TRACK_VARS_POST]); in php_auto_globals_create_post()
784 if (PG(variables_order) && (strchr(PG(variables_order),'C') || strchr(PG(variables_order),'c'))) { in php_auto_globals_create_cookie()
787 zval_ptr_dtor_nogc(&PG(http_globals)[TRACK_VARS_COOKIE]); in php_auto_globals_create_cookie()
788 array_init(&PG(http_globals)[TRACK_VARS_COOKIE]); in php_auto_globals_create_cookie()
791 zend_hash_update(&EG(symbol_table), name, &PG(http_globals)[TRACK_VARS_COOKIE]); in php_auto_globals_create_cookie()
792 Z_ADDREF(PG(http_globals)[TRACK_VARS_COOKIE]); in php_auto_globals_create_cookie()
799 if (Z_TYPE(PG(http_globals)[TRACK_VARS_FILES]) == IS_UNDEF) { in php_auto_globals_create_files()
800 array_init(&PG(http_globals)[TRACK_VARS_FILES]); in php_auto_globals_create_files()
803 zend_hash_update(&EG(symbol_table), name, &PG(http_globals)[TRACK_VARS_FILES]); in php_auto_globals_create_files()
804 Z_ADDREF(PG(http_globals)[TRACK_VARS_FILES]); in php_auto_globals_create_files()
827 if (PG(variables_order) && (strchr(PG(variables_order),'S') || strchr(PG(variables_order),'s'))) { in php_auto_globals_create_server()
830 if (PG(register_argc_argv)) { in php_auto_globals_create_server()
837 … zend_hash_update(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER]), ZSTR_KNOWN(ZEND_STR_ARGV), argv); in php_auto_globals_create_server()
838 … zend_hash_update(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER]), ZSTR_KNOWN(ZEND_STR_ARGC), argc); in php_auto_globals_create_server()
841 php_build_argv(SG(request_info).query_string, &PG(http_globals)[TRACK_VARS_SERVER]); in php_auto_globals_create_server()
846 zval_ptr_dtor_nogc(&PG(http_globals)[TRACK_VARS_SERVER]); in php_auto_globals_create_server()
847 array_init(&PG(http_globals)[TRACK_VARS_SERVER]); in php_auto_globals_create_server()
850 check_http_proxy(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER])); in php_auto_globals_create_server()
851 zend_hash_update(&EG(symbol_table), name, &PG(http_globals)[TRACK_VARS_SERVER]); in php_auto_globals_create_server()
852 Z_ADDREF(PG(http_globals)[TRACK_VARS_SERVER]); in php_auto_globals_create_server()
857 HT_ALLOW_COW_VIOLATION(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER])); in php_auto_globals_create_server()
864 zval_ptr_dtor_nogc(&PG(http_globals)[TRACK_VARS_ENV]); in php_auto_globals_create_env()
865 array_init(&PG(http_globals)[TRACK_VARS_ENV]); in php_auto_globals_create_env()
867 if (PG(variables_order) && (strchr(PG(variables_order),'E') || strchr(PG(variables_order),'e'))) { in php_auto_globals_create_env()
868 php_import_environment_variables(&PG(http_globals)[TRACK_VARS_ENV]); in php_auto_globals_create_env()
871 check_http_proxy(Z_ARRVAL(PG(http_globals)[TRACK_VARS_ENV])); in php_auto_globals_create_env()
872 zend_hash_update(&EG(symbol_table), name, &PG(http_globals)[TRACK_VARS_ENV]); in php_auto_globals_create_env()
873 Z_ADDREF(PG(http_globals)[TRACK_VARS_ENV]); in php_auto_globals_create_env()
886 if (PG(request_order) != NULL) { in php_auto_globals_create_request()
887 p = PG(request_order); in php_auto_globals_create_request()
889 p = PG(variables_order); in php_auto_globals_create_request()
897 php_autoglobal_merge(Z_ARRVAL(form_variables), Z_ARRVAL(PG(http_globals)[TRACK_VARS_GET])); in php_auto_globals_create_request()
904 php_autoglobal_merge(Z_ARRVAL(form_variables), Z_ARRVAL(PG(http_globals)[TRACK_VARS_POST])); in php_auto_globals_create_request()
911 php_autoglobal_merge(Z_ARRVAL(form_variables), Z_ARRVAL(PG(http_globals)[TRACK_VARS_COOKIE])); in php_auto_globals_create_request()
927 …zend_register_auto_global(zend_string_init_interned("_SERVER", sizeof("_SERVER")-1, 1), PG(auto_gl… in php_startup_auto_globals()
928 …zend_register_auto_global(zend_string_init_interned("_ENV", sizeof("_ENV")-1, 1), PG(auto_globals_… in php_startup_auto_globals()
929 …zend_register_auto_global(zend_string_init_interned("_REQUEST", sizeof("_REQUEST")-1, 1), PG(auto_… in php_startup_auto_globals()