/php-src/main/ |
H A D | php_syslog.c | 39 if (PG(syslog_filter) == PHP_SYSLOG_FILTER_RAW) { in php_syslog_str() 52 } else if ((c >= 0x80) && (PG(syslog_filter) != PHP_SYSLOG_FILTER_ASCII)) { in php_syslog_str() 58 } else if ((c < 0x20) && (PG(syslog_filter) == PHP_SYSLOG_FILTER_ALL)) { in php_syslog_str() 77 PG(have_called_openlog) = 1; in php_openlog() 83 PG(have_called_openlog) = 0; in php_closelog() 96 if (!PG(have_called_openlog)) { in php_syslog() 97 php_openlog(PG(syslog_ident), 0, PG(syslog_facility)); in php_syslog() 116 if (!PG(have_called_openlog)) { in php_syslog() 117 php_openlog(PG(syslog_ident), 0, PG(syslog_facility)); in php_syslog()
|
H A D | php_variables.c | 215 if (!PG(display_errors)) { in php_register_variable_ex() 787 memset(PG(http_globals), 0, sizeof(PG(http_globals))); in php_hash_environment() 789 if (PG(register_argc_argv)) { in php_hash_environment() 798 if (PG(variables_order) && (strchr(PG(variables_order),'G') || strchr(PG(variables_order),'g'))) { in php_auto_globals_create_get() 813 if (PG(variables_order) && in php_auto_globals_create_post() 814 (strchr(PG(variables_order),'P') || strchr(PG(variables_order),'p')) && in php_auto_globals_create_post() 832 if (PG(variables_order) && (strchr(PG(variables_order),'C') || strchr(PG(variables_order),'c'))) { in php_auto_globals_create_cookie() 875 if (PG(variables_order) && (strchr(PG(variables_order),'S') || strchr(PG(variables_order),'s'))) { in php_auto_globals_create_server() 915 if (PG(variables_order) && (strchr(PG(variables_order),'E') || strchr(PG(variables_order),'e'))) { in php_auto_globals_create_env() 935 p = PG(request_order); in php_auto_globals_create_request() [all …]
|
H A D | main.c | 516 if (PG(internal_encoding) && PG(internal_encoding)[0]) { in php_get_internal_encoding() 525 if (PG(input_encoding) && PG(input_encoding)[0]) { in php_get_input_encoding() 534 if (PG(output_encoding) && PG(output_encoding)[0]) { in php_get_output_encoding() 836 if (PG(error_log_mode) > 0 && PG(error_log_mode) <= 0777) { in php_log_err_with_severity() 1083 if (PG(docref_ext) && strlen(PG(docref_ext))) { in php_verror() 1238 if (PG(ignore_repeated_errors) && PG(last_error_message)) { in php_error_cb() 1792 if (PG(open_basedir) && *PG(open_basedir)) { in php_request_startup() 1800 if (PG(output_handler) && PG(output_handler)[0]) { in php_request_startup() 2181 if (PG(open_basedir) && *PG(open_basedir)) { in php_module_startup() 2487 if (PG(auto_prepend_file) && PG(auto_prepend_file)[0]) { in php_execute_script_ex() [all …]
|
H A D | php_open_temporary_file.c | 207 if (PG(php_sys_temp_dir)) { in php_get_temporary_directory() 208 return PG(php_sys_temp_dir); in php_get_temporary_directory() 213 char *sys_temp_dir = PG(sys_temp_dir); in php_get_temporary_directory() 218 return PG(php_sys_temp_dir); in php_get_temporary_directory() 221 return PG(php_sys_temp_dir); in php_get_temporary_directory() 248 return PG(php_sys_temp_dir); in php_get_temporary_directory() 263 return PG(php_sys_temp_dir); in php_get_temporary_directory() 269 PG(php_sys_temp_dir) = estrdup(P_tmpdir); in php_get_temporary_directory() 270 return PG(php_sys_temp_dir); in php_get_temporary_directory() 274 PG(php_sys_temp_dir) = estrdup("/tmp"); in php_get_temporary_directory() [all …]
|
H A D | php_ticks.c | 28 zend_llist_init(&PG(tick_functions), sizeof(struct st_tick_function), NULL, 1); in php_startup_ticks() 34 zend_llist_clean(&PG(tick_functions)); in php_deactivate_ticks() 52 zend_llist_add_element(&PG(tick_functions), (void *)&tmp); in php_add_tick_function() 58 …zend_llist_del_element(&PG(tick_functions), (void *)&tmp, (int(*)(void*, void*))php_compare_tick_f… in php_remove_tick_function() 69 …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 | 80 if (PG(open_basedir_modified)) { in ZEND_INI_MH() 85 PG(open_basedir_modified) = false; in ZEND_INI_MH() 126 if (PG(open_basedir_modified)) { in ZEND_INI_MH() 130 PG(open_basedir_modified) = true; in ZEND_INI_MH() 294 if (PG(open_basedir) && *PG(open_basedir)) { 307 pathbuf = estrdup(PG(open_basedir)); 372 if (PG(user_dir) && *PG(user_dir) && path_info && '/' == path_info[0] && '~' == path_info[1]) { 415 if (PG(doc_root) && path_info && (length = strlen(PG(doc_root))) && 454 orig_display_errors = PG(display_errors); 455 PG(display_errors) = 0; [all …]
|
H A D | php_globals.h | 27 # define PG(v) ZEND_TSRMG_FAST(core_globals_offset, php_core_globals *, v) macro 31 # define PG(v) (core_globals.v) macro
|
H A D | rfc1867.c | 124 zend_hash_str_add_empty_element(&PG(rfc1867_protected_variables), varname, strlen(varname)); in add_protected_variable() 131 return zend_hash_str_exists(&PG(rfc1867_protected_variables), varname, strlen(varname)); in is_protected_variable() 670 zend_long max_input_vars = REQUEST_PARSE_BODY_OPTION_GET(max_input_vars, PG(max_input_vars)); 748 zend_hash_init(&PG(rfc1867_protected_variables), 8, NULL, NULL, 0); 754 if (Z_TYPE(PG(http_globals)[TRACK_VARS_FILES]) != IS_ARRAY) { 756 array_init(&PG(http_globals)[TRACK_VARS_FILES]); 907 if (!PG(file_uploads)) { 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); [all …]
|
H A D | main_arginfo.h | 101 …REGISTER_STRING_CONSTANT("PHP_BINARY", PG(php_binary) ? PG(php_binary) : "", CONST_PERSISTENT | CO… in register_main_symbols()
|
H A D | php_ini.c | 428 open_basedir = PG(open_basedir); in php_init_config() 506 if (PG(php_binary)) { in php_init_config() 509 binary_location = estrdup(PG(php_binary)); in php_init_config() 542 PG(open_basedir) = NULL; in php_init_config() 597 PG(open_basedir) = open_basedir; in php_init_config()
|
/php-src/ext/mbstring/ |
H A D | mb_gpc.c | 64 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() 111 separator = (char *) estrdup(PG(arg_separator).input); in ZEND_EXTERN_MODULE_GLOBALS() 224 zend_long max_input_vars = REQUEST_PARSE_BODY_OPTION_GET(max_input_vars, PG(max_input_vars)); in _php_mb_encoding_handler_ex()
|
/php-src/win32/ |
H A D | codepage.c | 314 if (PG(internal_encoding) && PG(internal_encoding)[0]) { in php_win32_cp_get_enc() 315 enc = PG(internal_encoding); in php_win32_cp_get_enc() 472 if (PG(input_encoding) && PG(input_encoding)[0]) { in php_win32_cp_cli_io_setup() 473 cur_in_cp = php_win32_cp_get_by_enc(PG(input_encoding)); in php_win32_cp_cli_io_setup() 481 if (PG(output_encoding) && PG(output_encoding)[0]) { in php_win32_cp_cli_io_setup() 482 cur_out_cp = php_win32_cp_get_by_enc(PG(output_encoding)); in php_win32_cp_cli_io_setup()
|
/php-src/sapi/fpm/fpm/ |
H A D | fpm_main.c | 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() 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() 698 php_parse_user_ini_file(path, PG(user_ini_filename), entry->user_config); in php_cgi_ini_activate_user_config() 701 entry->expires = request_time + PG(user_ini_cache_ttl); in php_cgi_ini_activate_user_config() 734 (PG(user_ini_filename) && *PG(user_ini_filename)) in sapi_cgi_activate() 755 if (PG(user_ini_filename) && *PG(user_ini_filename)) { in sapi_cgi_activate() [all …]
|
/php-src/sapi/litespeed/ |
H A D | lsapi_main.c | 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() 919 if (!PG(user_ini_filename) || !*PG(user_ini_filename)) { in lsapi_activate_user_ini_basic_checks() 1041 php_parse_user_ini_file(ctx->path, PG(user_ini_filename), in lsapi_activate_user_ini_walk_down_the_path() [all …]
|
/php-src/sapi/cgi/ |
H A D | cgi_main.c | 666 if (PG(variables_order) && (strchr(PG(variables_order),'E') || strchr(PG(variables_order),'e'))) { in cgi_php_import_environment_variables() 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() 852 entry->expires = request_time + PG(user_ini_cache_ttl); 889 (PG(user_ini_filename) && *PG(user_ini_filename)) 913 if (PG(user_ini_filename) && *PG(user_ini_filename)) { 1223 if (!env_document_root && PG(doc_root)) { 2416 size_t slen = strlen(PG(arg_separator).input); 2432 strlcat(s, PG(arg_separator).input, len); [all …]
|
/php-src/ext/standard/ |
H A D | php_fopen_wrapper.c | 220 if ((options & STREAM_OPEN_FOR_INCLUDE) && !PG(allow_url_include) ) { in php_stream_url_wrap_php() 231 …input->body = php_stream_temp_create_ex(TEMP_STREAM_DEFAULT, SAPI_POST_BLOCK_SIZE, PG(upload_tmp_d… in php_stream_url_wrap_php() 239 if ((options & STREAM_OPEN_FOR_INCLUDE) && !PG(allow_url_include) ) { in php_stream_url_wrap_php() 305 if ((options & STREAM_OPEN_FOR_INCLUDE) && !PG(allow_url_include) ) { in php_stream_url_wrap_php()
|
H A D | basic_functions.c | 1409 if (PG(last_error_message)) { 1413 ZVAL_LONG(&tmp, PG(last_error_type)); 1422 ZVAL_LONG(&tmp, PG(last_error_lineno)); 1433 if (PG(last_error_message)) { 1434 PG(last_error_type) = 0; 1435 PG(last_error_lineno) = 0; 1438 PG(last_error_message) = NULL; 1440 if (PG(last_error_file)) { 1442 PG(last_error_file) = NULL; 2018 if (PG(open_basedir)) { [all …]
|
H A D | dl.c | 51 if (!PG(enable_dl)) { in PHP_FUNCTION() 123 extension_dir = PG(extension_dir); in php_load_extension()
|
H A D | dir.c | 413 if (PG(open_basedir) && *PG(open_basedir)) { in PHP_FUNCTION()
|
H A D | http.c | 345 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()
|
/php-src/ext/soap/ |
H A D | php_xml.c | 87 old_allow_url_fopen = PG(allow_url_fopen); in soap_xmlParseFile() 88 PG(allow_url_fopen) = 1; in soap_xmlParseFile() 90 PG(allow_url_fopen) = old_allow_url_fopen; in soap_xmlParseFile()
|
/php-src/sapi/phpdbg/ |
H A D | phpdbg_info.c | 84 if (PG(last_error_message)) { in PHPDBG_INFO() 87 ZSTR_VAL(PG(last_error_message)), in PHPDBG_INFO() 88 ZSTR_VAL(PG(last_error_file)), in PHPDBG_INFO() 89 PG(last_error_lineno)); in PHPDBG_INFO()
|
/php-src/ext/pdo_sqlite/ |
H A D | sqlite_driver.c | 746 if (PG(open_basedir) && *PG(open_basedir)) { in make_filename_safe() 814 if (!(PG(open_basedir) && *PG(open_basedir))) { in pdo_sqlite_handle_factory() 826 if (PG(open_basedir) && *PG(open_basedir)) { in pdo_sqlite_handle_factory()
|
/php-src/ext/filter/ |
H A D | filter.c | 301 orig_array_ptr = &PG(http_globals)[t]; \ in php_sapi_filter() 408 if (PG(auto_globals_jit)) { in php_filter_get_storage() 414 if (PG(auto_globals_jit)) { in php_filter_get_storage() 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/ext/readline/ |
H A D | readline_cli.c | 611 if (PG(auto_prepend_file) && PG(auto_prepend_file)[0]) { in readline_shell_run() 614 zend_stream_init_filename(&prepend_file, PG(auto_prepend_file)); in readline_shell_run()
|