Lines Matching refs:PG

130 			if(++nest_level > PG(max_input_nesting_level)) {  in php_register_variable_ex()
143 if (!PG(display_errors)) { in php_register_variable_ex()
144 …ed %ld. To increase the limit change max_input_nesting_level in php.ini.", PG(max_input_nesting_le… in php_register_variable_ex()
220 if (PG(http_globals)[TRACK_VARS_COOKIE] && in php_register_variable_ex()
221 symtable1 == Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_COOKIE]) && in php_register_variable_ex()
250 if (++count > PG(max_input_vars)) { in SAPI_POST_HANDLER_FUNC()
251 …iables exceeded %ld. To increase the limit change max_input_vars in php.ini.", PG(max_input_vars)); in SAPI_POST_HANDLER_FUNC()
298 if (PG(http_globals)[TRACK_VARS_POST]) { in SAPI_TREAT_DATA_FUNC()
299 zval_ptr_dtor(&PG(http_globals)[TRACK_VARS_POST]); in SAPI_TREAT_DATA_FUNC()
301 PG(http_globals)[TRACK_VARS_POST] = array_ptr; in SAPI_TREAT_DATA_FUNC()
304 if (PG(http_globals)[TRACK_VARS_GET]) { in SAPI_TREAT_DATA_FUNC()
305 zval_ptr_dtor(&PG(http_globals)[TRACK_VARS_GET]); in SAPI_TREAT_DATA_FUNC()
307 PG(http_globals)[TRACK_VARS_GET] = array_ptr; in SAPI_TREAT_DATA_FUNC()
310 if (PG(http_globals)[TRACK_VARS_COOKIE]) { in SAPI_TREAT_DATA_FUNC()
311 zval_ptr_dtor(&PG(http_globals)[TRACK_VARS_COOKIE]); in SAPI_TREAT_DATA_FUNC()
313 PG(http_globals)[TRACK_VARS_COOKIE] = array_ptr; in SAPI_TREAT_DATA_FUNC()
355 separator = (char *) estrdup(PG(arg_separator).input); in SAPI_TREAT_DATA_FUNC()
377 if (++count > PG(max_input_vars)) { in SAPI_TREAT_DATA_FUNC()
378 …iables exceeded %ld. To increase the limit change max_input_vars in php.ini.", PG(max_input_vars)); in SAPI_TREAT_DATA_FUNC()
539 if (PG(expose_php) && SG(request_info).query_string && SG(request_info).query_string[0] == '=') { in php_handle_special_queries()
560 if (PG(http_globals)[TRACK_VARS_SERVER]) { in php_register_server_variables()
561 zval_ptr_dtor(&PG(http_globals)[TRACK_VARS_SERVER]); in php_register_server_variables()
563 PG(http_globals)[TRACK_VARS_SERVER] = array_ptr; in php_register_server_variables()
641 memset(PG(http_globals), 0, sizeof(PG(http_globals))); in php_hash_environment()
643 if (PG(register_argc_argv)) { in php_hash_environment()
644 php_build_argv(SG(request_info).query_string, PG(http_globals)[TRACK_VARS_SERVER] TSRMLS_CC); in php_hash_environment()
654 if (PG(variables_order) && (strchr(PG(variables_order),'G') || strchr(PG(variables_order),'g'))) { in php_auto_globals_create_get()
656 vars = PG(http_globals)[TRACK_VARS_GET]; in php_auto_globals_create_get()
661 if (PG(http_globals)[TRACK_VARS_GET]) { in php_auto_globals_create_get()
662 zval_ptr_dtor(&PG(http_globals)[TRACK_VARS_GET]); in php_auto_globals_create_get()
664 PG(http_globals)[TRACK_VARS_GET] = vars; in php_auto_globals_create_get()
677 if (PG(variables_order) && in php_auto_globals_create_post()
678 (strchr(PG(variables_order),'P') || strchr(PG(variables_order),'p')) && in php_auto_globals_create_post()
683 vars = PG(http_globals)[TRACK_VARS_POST]; in php_auto_globals_create_post()
688 if (PG(http_globals)[TRACK_VARS_POST]) { in php_auto_globals_create_post()
689 zval_ptr_dtor(&PG(http_globals)[TRACK_VARS_POST]); in php_auto_globals_create_post()
691 PG(http_globals)[TRACK_VARS_POST] = vars; in php_auto_globals_create_post()
704 if (PG(variables_order) && (strchr(PG(variables_order),'C') || strchr(PG(variables_order),'c'))) { in php_auto_globals_create_cookie()
706 vars = PG(http_globals)[TRACK_VARS_COOKIE]; in php_auto_globals_create_cookie()
711 if (PG(http_globals)[TRACK_VARS_COOKIE]) { in php_auto_globals_create_cookie()
712 zval_ptr_dtor(&PG(http_globals)[TRACK_VARS_COOKIE]); in php_auto_globals_create_cookie()
714 PG(http_globals)[TRACK_VARS_COOKIE] = vars; in php_auto_globals_create_cookie()
727 if (PG(http_globals)[TRACK_VARS_FILES]) { in php_auto_globals_create_files()
728 vars = PG(http_globals)[TRACK_VARS_FILES]; in php_auto_globals_create_files()
733 PG(http_globals)[TRACK_VARS_FILES] = vars; in php_auto_globals_create_files()
744 if (PG(variables_order) && (strchr(PG(variables_order),'S') || strchr(PG(variables_order),'s'))) { in php_auto_globals_create_server()
747 if (PG(register_argc_argv)) { in php_auto_globals_create_server()
755 …zend_hash_update(Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER]), "argv", sizeof("argv"), argv, si… in php_auto_globals_create_server()
756 …zend_hash_update(Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER]), "argc", sizeof("argc"), argc, si… in php_auto_globals_create_server()
759 php_build_argv(SG(request_info).query_string, PG(http_globals)[TRACK_VARS_SERVER] TSRMLS_CC); in php_auto_globals_create_server()
768 if (PG(http_globals)[TRACK_VARS_SERVER]) { in php_auto_globals_create_server()
769 zval_ptr_dtor(&PG(http_globals)[TRACK_VARS_SERVER]); in php_auto_globals_create_server()
771 PG(http_globals)[TRACK_VARS_SERVER] = server_vars; in php_auto_globals_create_server()
774 …zend_hash_update(&EG(symbol_table), name, name_len + 1, &PG(http_globals)[TRACK_VARS_SERVER], size… in php_auto_globals_create_server()
775 Z_ADDREF_P(PG(http_globals)[TRACK_VARS_SERVER]); in php_auto_globals_create_server()
786 if (PG(http_globals)[TRACK_VARS_ENV]) { in php_auto_globals_create_env()
787 zval_ptr_dtor(&PG(http_globals)[TRACK_VARS_ENV]); in php_auto_globals_create_env()
789 PG(http_globals)[TRACK_VARS_ENV] = env_vars; in php_auto_globals_create_env()
791 if (PG(variables_order) && (strchr(PG(variables_order),'E') || strchr(PG(variables_order),'e'))) { in php_auto_globals_create_env()
792 php_import_environment_variables(PG(http_globals)[TRACK_VARS_ENV] TSRMLS_CC); in php_auto_globals_create_env()
795 …zend_hash_update(&EG(symbol_table), name, name_len + 1, &PG(http_globals)[TRACK_VARS_ENV], sizeof(… in php_auto_globals_create_env()
796 Z_ADDREF_P(PG(http_globals)[TRACK_VARS_ENV]); in php_auto_globals_create_env()
811 if (PG(request_order) != NULL) { in php_auto_globals_create_request()
812 p = PG(request_order); in php_auto_globals_create_request()
814 p = PG(variables_order); in php_auto_globals_create_request()
822 …php_autoglobal_merge(Z_ARRVAL_P(form_variables), Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_GET]) TSRM… in php_auto_globals_create_request()
829 …php_autoglobal_merge(Z_ARRVAL_P(form_variables), Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_POST]) TSR… in php_auto_globals_create_request()
836 …php_autoglobal_merge(Z_ARRVAL_P(form_variables), Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_COOKIE]) T… in php_auto_globals_create_request()
852 …zend_register_auto_global(ZEND_STRL("_SERVER"), PG(auto_globals_jit), php_auto_globals_create_serv… in php_startup_auto_globals()
853 …zend_register_auto_global(ZEND_STRL("_ENV"), PG(auto_globals_jit), php_auto_globals_create_env TSR… in php_startup_auto_globals()
854 …zend_register_auto_global(ZEND_STRL("_REQUEST"), PG(auto_globals_jit), php_auto_globals_create_req… in php_startup_auto_globals()