/PHP-5.4/main/ |
H A D | php_variables.c | 143 if (!PG(display_errors)) { in php_register_variable_ex() 641 memset(PG(http_globals), 0, sizeof(PG(http_globals))); in php_hash_environment() 643 if (PG(register_argc_argv)) { 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() 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() 704 if (PG(variables_order) && (strchr(PG(variables_order),'C') || strchr(PG(variables_order),'c'))) { in php_auto_globals_create_cookie() 744 if (PG(variables_order) && (strchr(PG(variables_order),'S') || strchr(PG(variables_order),'s'))) { in php_auto_globals_create_server() 791 if (PG(variables_order) && (strchr(PG(variables_order),'E') || strchr(PG(variables_order),'e'))) { in php_auto_globals_create_env() 812 p = PG(request_order); in php_auto_globals_create_request() [all …]
|
H A D | main.c | 271 PG(php_binary) = NULL; in php_binary_init() 618 PG(in_error_log) = 1; in php_log_err() 833 if (PG(docref_ext) && strlen(PG(docref_ext))) { in php_verror() 955 if (PG(ignore_repeated_errors) && PG(last_error_message)) { in php_error_cb() 1028 && (PG(log_errors) || PG(display_errors) || (!module_initialized))) { in php_error_cb() 1078 …if (PG(display_errors) && ((module_initialized && !PG(during_request_startup)) || (PG(display_star… in php_error_cb() 1571 if (PG(open_basedir) && *PG(open_basedir)) { in php_request_startup() 1579 if (PG(output_handler) && PG(output_handler)[0]) { in php_request_startup() 2177 if (PG(open_basedir) && *PG(open_basedir)) { in php_module_startup() 2477 if (PG(auto_prepend_file) && PG(auto_prepend_file)[0]) { in php_execute_script() [all …]
|
H A D | php_ticks.c | 26 zend_llist_init(&PG(tick_functions), sizeof(void(*)(int)), NULL, 1); in php_startup_ticks() 32 zend_llist_clean(&PG(tick_functions)); in php_deactivate_ticks() 37 zend_llist_destroy(&PG(tick_functions)); in php_shutdown_ticks() 53 zend_llist_add_element(&PG(tick_functions), (void *)&func); in php_add_tick_function() 60 zend_llist_del_element(&PG(tick_functions), (void *)func, in php_remove_tick_function() 76 …zend_llist_apply_with_argument(&PG(tick_functions), (llist_apply_with_arg_func_t) php_tick_iterato… in php_run_ticks()
|
H A D | fopen_wrappers.c | 296 if (PG(open_basedir) && *PG(open_basedir)) { 309 pathbuf = estrdup(PG(open_basedir)); 369 if (PG(user_dir) && *PG(user_dir) && path_info && '/' == path_info[0] && '~' == path_info[1]) { 401 …spprintf(&filename, 0, "%s%c%s%c%s", pw->pw_dir, PHP_DIR_SEPARATOR, PG(user_dir), PHP_DIR_SEPARATO… 411 if (PG(doc_root) && path_info && (length = strlen(PG(doc_root))) && 412 IS_ABSOLUTE_PATH(PG(doc_root), length)) { 416 memcpy(filename, PG(doc_root), length); 448 orig_display_errors = PG(display_errors); 449 PG(display_errors) = 0; 451 PG(display_errors) = orig_display_errors; [all …]
|
H A D | php_globals.h | 29 # define PG(v) TSRMG(core_globals_id, php_core_globals *, v) macro 32 # define PG(v) (core_globals.v) macro
|
H A D | rfc1867.c | 151 …zend_hash_add(&PG(rfc1867_protected_variables), varname, strlen(varname)+1, &dummy, sizeof(int), N… in add_protected_variable() 158 return zend_hash_exists(&PG(rfc1867_protected_variables), varname, strlen(varname)+1); in is_protected_variable() 759 zend_hash_init(&PG(rfc1867_protected_variables), 5, NULL, NULL, 0); 768 PG(http_globals)[TRACK_VARS_FILES] = http_post_files; 868 …if (++count <= PG(max_input_vars) && sapi_module.input_filter(PARSE_POST, param, &value, value_len… 887 if (count == PG(max_input_vars) + 1) { 913 if (!PG(file_uploads)) { 1004 fd = php_open_temporary_fd_ex(PG(upload_tmp_dir), "php", &temp_filename, 1 TSRMLS_CC); 1029 if (PG(upload_max_filesize) > 0 && (long)(total_bytes+blen) > PG(upload_max_filesize)) { 1031 …ICE, "upload_max_filesize of %ld bytes exceeded - file [%s=%s] not saved", PG(upload_max_filesize)… [all …]
|
H A D | fopen_wrappers.h | 40 …(PG(safe_mode) && (!php_checkuid(filename, NULL, CHECKUID_CHECK_FILE_AND_DIR))) || php_check_open_…
|
H A D | php_content_types.c | 52 …if ((PG(always_populate_raw_post_data) || NULL == SG(request_info).post_entry) && SG(request_info)… in SAPI_POST_READER_FUNC()
|
H A D | php_ini.c | 386 open_basedir = PG(open_basedir); in php_init_config() 474 if (PG(php_binary)) { in php_init_config() 477 binary_location = estrdup(PG(php_binary)); in php_init_config() 521 PG(open_basedir) = NULL; in php_init_config() 573 PG(open_basedir) = open_basedir; in php_init_config()
|
/PHP-5.4/ext/mbstring/ |
H A D | mb_gpc.c | 82 PG(http_globals)[TRACK_VARS_POST] = array_ptr; in ZEND_EXTERN_MODULE_GLOBALS() 85 PG(http_globals)[TRACK_VARS_GET] = array_ptr; in ZEND_EXTERN_MODULE_GLOBALS() 88 PG(http_globals)[TRACK_VARS_COOKIE] = array_ptr; in ZEND_EXTERN_MODULE_GLOBALS() 131 separator = (char *) estrdup(PG(arg_separator).input); in ZEND_EXTERN_MODULE_GLOBALS() 258 if (n > (PG(max_input_vars) * 2)) { in _php_mb_encoding_handler_ex() 259 …iables exceeded %ld. To increase the limit change max_input_vars in php.ini.", PG(max_input_vars)); in _php_mb_encoding_handler_ex()
|
/PHP-5.4/sapi/fpm/fpm/ |
H A D | fpm_main.c | 574 if (PG(http_globals)[TRACK_VARS_ENV] && in cgi_php_import_environment_variables() 575 array_ptr != PG(http_globals)[TRACK_VARS_ENV] && in cgi_php_import_environment_variables() 576 Z_TYPE_P(PG(http_globals)[TRACK_VARS_ENV]) == IS_ARRAY && in cgi_php_import_environment_variables() 580 *array_ptr = *PG(http_globals)[TRACK_VARS_ENV]; in cgi_php_import_environment_variables() 584 } else if (PG(http_globals)[TRACK_VARS_SERVER] && in cgi_php_import_environment_variables() 585 array_ptr != PG(http_globals)[TRACK_VARS_SERVER] && in cgi_php_import_environment_variables() 590 *array_ptr = *PG(http_globals)[TRACK_VARS_SERVER]; in cgi_php_import_environment_variables() 757 entry->expires = request_time + PG(user_ini_cache_ttl); 789 (PG(user_ini_filename) && *PG(user_ini_filename)) 810 if (PG(user_ini_filename) && *PG(user_ini_filename)) { [all …]
|
H A D | fpm_php.c | 101 PG(disable_functions) = v; in fpm_php_apply_defines_ex() 108 PG(disable_classes) = v; in fpm_php_apply_defines_ex()
|
/PHP-5.4/sapi/litespeed/ |
H A D | lsapi_main.c | 241 if (PG(http_globals)[TRACK_VARS_ENV] && in litespeed_php_import_environment_variables() 242 array_ptr != PG(http_globals)[TRACK_VARS_ENV] && in litespeed_php_import_environment_variables() 243 Z_TYPE_P(PG(http_globals)[TRACK_VARS_ENV]) == IS_ARRAY && in litespeed_php_import_environment_variables() 244 zend_hash_num_elements(Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_ENV])) > 0 in litespeed_php_import_environment_variables() 247 *array_ptr = *PG(http_globals)[TRACK_VARS_ENV]; in litespeed_php_import_environment_variables() 251 } else if (PG(http_globals)[TRACK_VARS_SERVER] && in litespeed_php_import_environment_variables() 252 array_ptr != PG(http_globals)[TRACK_VARS_SERVER] && in litespeed_php_import_environment_variables() 253 Z_TYPE_P(PG(http_globals)[TRACK_VARS_SERVER]) == IS_ARRAY && in litespeed_php_import_environment_variables() 254 zend_hash_num_elements(Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER])) > 0 in litespeed_php_import_environment_variables() 257 *array_ptr = *PG(http_globals)[TRACK_VARS_SERVER]; in litespeed_php_import_environment_variables() [all …]
|
/PHP-5.4/sapi/apache_hooks/ |
H A D | sapi_apache.c | 82 php_register_variable_ex("request", req, PG(http_globals)[TRACK_VARS_SERVER] TSRMLS_CC); in apache_php_module_hook() 86 …php_register_variable("PHP_SELF_HOOK", handler->name, PG(http_globals)[TRACK_VARS_SERVER] TSRMLS_C… in apache_php_module_hook()
|
/PHP-5.4/sapi/cgi/ |
H A D | cgi_main.c | 629 if (PG(http_globals)[TRACK_VARS_ENV] && in cgi_php_import_environment_variables() 630 array_ptr != PG(http_globals)[TRACK_VARS_ENV] && in cgi_php_import_environment_variables() 635 *array_ptr = *PG(http_globals)[TRACK_VARS_ENV]; in cgi_php_import_environment_variables() 639 } else if (PG(http_globals)[TRACK_VARS_SERVER] && in cgi_php_import_environment_variables() 645 *array_ptr = *PG(http_globals)[TRACK_VARS_SERVER]; in cgi_php_import_environment_variables() 858 (PG(user_ini_filename) && *PG(user_ini_filename)) 879 if (PG(user_ini_filename) && *PG(user_ini_filename)) { 1200 if (!env_document_root && PG(doc_root)) { 2278 int slen = strlen(PG(arg_separator).input); 2294 strlcat(s, PG(arg_separator).input, len); [all …]
|
/PHP-5.4/sapi/webjames/ |
H A D | webjames.c | 51 PG(connection_status) = PHP_CONNECTION_ABORTED; in sapi_webjames_ub_write() 52 if (!PG(ignore_user_abort)) { in sapi_webjames_ub_write() 74 PG(connection_status) = PHP_CONNECTION_ABORTED; in sapi_webjames_send_header() 75 if (!PG(ignore_user_abort)) { in sapi_webjames_send_header()
|
/PHP-5.4/ext/standard/ |
H A D | dir.c | 500 if (PG(open_basedir) && *PG(open_basedir)) { in PHP_FUNCTION() 512 if (PG(open_basedir) && *PG(open_basedir)) { in PHP_FUNCTION()
|
H A D | php_fopen_wrapper.c | 206 if ((options & STREAM_OPEN_FOR_INCLUDE) && !PG(allow_url_include) ) { in php_stream_url_wrap_php() 216 if ((options & STREAM_OPEN_FOR_INCLUDE) && !PG(allow_url_include) ) { in php_stream_url_wrap_php() 273 if ((options & STREAM_OPEN_FOR_INCLUDE) && !PG(allow_url_include) ) { in php_stream_url_wrap_php()
|
H A D | dl.c | 63 if (!PG(enable_dl)) { in PHP_FUNCTION() 114 extension_dir = PG(extension_dir); in php_load_extension()
|
/PHP-5.4/ext/soap/ |
H A D | php_xml.c | 90 old_allow_url_fopen = PG(allow_url_fopen); in soap_xmlParseFile() 91 PG(allow_url_fopen) = 1; in soap_xmlParseFile() 93 PG(allow_url_fopen) = old_allow_url_fopen; in soap_xmlParseFile()
|
/PHP-5.4/ext/zip/ |
H A D | php_zip.h | 49 …(PG(safe_mode) && (!php_checkuid(filename, NULL, CHECKUID_CHECK_FILE_AND_DIR))) || php_check_open_…
|
/PHP-5.4/sapi/caudium/ |
H A D | caudium.c | 217 PG(connection_status) = PHP_CONNECTION_ABORTED; in php_caudium_low_ub_write() 229 PG(connection_status) = PHP_CONNECTION_ABORTED; in php_caudium_low_ub_write() 258 PG(connection_status) = PHP_CONNECTION_ABORTED; in php_caudium_sapi_ub_write() 366 PG(connection_status) = PHP_CONNECTION_ABORTED; in php_caudium_low_send_headers() 406 PG(connection_status) = PHP_CONNECTION_ABORTED; in php_caudium_low_read_post()
|
/PHP-5.4/sapi/roxen/ |
H A D | roxen.c | 222 PG(connection_status) = PHP_CONNECTION_ABORTED; in php_roxen_low_ub_write() 264 PG(connection_status) = PHP_CONNECTION_ABORTED; in php_roxen_sapi_ub_write() 358 PG(connection_status) = PHP_CONNECTION_ABORTED; in php_roxen_low_send_headers() 400 PG(connection_status) = PHP_CONNECTION_ABORTED; in php_roxen_low_read_post()
|
/PHP-5.4/ext/pdo_mysql/ |
H A D | mysql_driver.c | 627 if ((PG(open_basedir) && PG(open_basedir)[0] != '\0') || PG(safe_mode)) 629 if (PG(open_basedir) && PG(open_basedir)[0] != '\0')
|
/PHP-5.4/ext/curl/ |
H A D | streams.c | 406 if (PG(open_basedir) && *PG(open_basedir)) { in php_curl_stream_opener() 414 if (PG(open_basedir) && *PG(open_basedir)) { in php_curl_stream_opener()
|