Home
last modified time | relevance | path

Searched refs:PG (Results 1 – 25 of 61) sorted by relevance

123

/PHP-8.1/main/
H A Dphp_variables.c179 if (!PG(display_errors)) { in php_register_variable_ex()
752 memset(PG(http_globals), 0, sizeof(PG(http_globals))); in php_hash_environment()
754 if (PG(register_argc_argv)) { in php_hash_environment()
763 if (PG(variables_order) && (strchr(PG(variables_order),'G') || strchr(PG(variables_order),'g'))) { in php_auto_globals_create_get()
778 if (PG(variables_order) && in php_auto_globals_create_post()
779 (strchr(PG(variables_order),'P') || strchr(PG(variables_order),'p')) && in php_auto_globals_create_post()
797 if (PG(variables_order) && (strchr(PG(variables_order),'C') || strchr(PG(variables_order),'c'))) { in php_auto_globals_create_cookie()
840 if (PG(variables_order) && (strchr(PG(variables_order),'S') || strchr(PG(variables_order),'s'))) { in php_auto_globals_create_server()
880 if (PG(variables_order) && (strchr(PG(variables_order),'E') || strchr(PG(variables_order),'e'))) { in php_auto_globals_create_env()
900 p = PG(request_order); in php_auto_globals_create_request()
[all …]
H A Dphp_syslog.c39 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 Dmain.c505 if (PG(internal_encoding) && PG(internal_encoding)[0]) { in php_get_internal_encoding()
514 if (PG(input_encoding) && PG(input_encoding)[0]) { in php_get_input_encoding()
523 if (PG(output_encoding) && PG(output_encoding)[0]) { in php_get_output_encoding()
1063 if (PG(docref_ext) && strlen(PG(docref_ext))) { in php_verror()
1214 if (PG(ignore_repeated_errors) && PG(last_error_message)) { in php_error_cb()
1328 …if (PG(display_errors) && ((module_initialized && !PG(during_request_startup)) || (PG(display_star… in php_error_cb()
1755 if (PG(open_basedir) && *PG(open_basedir)) { in php_request_startup()
1763 if (PG(output_handler) && PG(output_handler)[0]) { in php_request_startup()
2230 if (PG(open_basedir) && *PG(open_basedir)) { in php_module_startup()
2535 if (PG(auto_prepend_file) && PG(auto_prepend_file)[0]) { in php_execute_script()
[all …]
H A Dphp_open_temporary_file.c207 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 Dphp_ticks.c28 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 Dfopen_wrappers.c282 if (PG(open_basedir) && *PG(open_basedir)) {
295 pathbuf = estrdup(PG(open_basedir));
360 if (PG(user_dir) && *PG(user_dir) && path_info && '/' == path_info[0] && '~' == path_info[1]) {
392 …filename = zend_strpprintf(0, "%s%c%s%c%s", pw->pw_dir, PHP_DIR_SEPARATOR, PG(user_dir), PHP_DIR_S…
403 if (PG(doc_root) && path_info && (length = strlen(PG(doc_root))) &&
404 IS_ABSOLUTE_PATH(PG(doc_root), length)) {
407 memcpy(ZSTR_VAL(filename), PG(doc_root), length);
442 orig_display_errors = PG(display_errors);
443 PG(display_errors) = 0;
450 PG(display_errors) = orig_display_errors;
[all …]
H A Drfc1867.c153 return zend_hash_str_exists(&PG(rfc1867_protected_variables), varname, strlen(varname)); in is_protected_variable()
712 body_parts_cnt = PG(max_input_vars) + upload_cnt;
761 zend_hash_init(&PG(rfc1867_protected_variables), 8, NULL, NULL, 0);
767 if (Z_TYPE(PG(http_globals)[TRACK_VARS_FILES]) != IS_ARRAY) {
769 array_init(&PG(http_globals)[TRACK_VARS_FILES]);
894 if (count == PG(max_input_vars) + 1) {
920 if (!PG(file_uploads)) {
1036 if (PG(upload_max_filesize) > 0 && (zend_long)(total_bytes+blen) > PG(upload_max_filesize)) {
1157 register_http_post_files_variable(lbuf, s, &PG(http_globals)[TRACK_VARS_FILES], 0);
1189 register_http_post_files_variable(lbuf, cd, &PG(http_globals)[TRACK_VARS_FILES], 0);
[all …]
H A Dphp_globals.h25 # define PG(v) ZEND_TSRMG_FAST(core_globals_offset, php_core_globals *, v) macro
29 # define PG(v) (core_globals.v) macro
H A Dphp_ini.c417 open_basedir = PG(open_basedir); in php_init_config()
505 if (PG(php_binary)) { in php_init_config()
508 binary_location = estrdup(PG(php_binary)); in php_init_config()
552 PG(open_basedir) = NULL; in php_init_config()
607 PG(open_basedir) = open_basedir; in php_init_config()
/PHP-8.1/ext/mbstring/
H A Dmb_gpc.c65 ZVAL_COPY_VALUE(&PG(http_globals)[TRACK_VARS_POST], &v_array); in ZEND_EXTERN_MODULE_GLOBALS()
68 ZVAL_COPY_VALUE(&PG(http_globals)[TRACK_VARS_GET], &v_array); in ZEND_EXTERN_MODULE_GLOBALS()
71 ZVAL_COPY_VALUE(&PG(http_globals)[TRACK_VARS_COOKIE], &v_array); in ZEND_EXTERN_MODULE_GLOBALS()
112 separator = (char *) estrdup(PG(arg_separator).input); in ZEND_EXTERN_MODULE_GLOBALS()
239 if (ZEND_SIZE_T_GT_ZEND_LONG(n, (PG(max_input_vars) * 2))) { in _php_mb_encoding_handler_ex()
240 …d " ZEND_LONG_FMT ". To increase the limit change max_input_vars in php.ini.", PG(max_input_vars)); in _php_mb_encoding_handler_ex()
/PHP-8.1/win32/
H A Dcodepage.c280 if (PG(internal_encoding) && PG(internal_encoding)[0]) { in php_win32_cp_get_enc()
281 enc = PG(internal_encoding); in php_win32_cp_get_enc()
438 if (PG(input_encoding) && PG(input_encoding)[0]) { in php_win32_cp_cli_io_setup()
439 cur_in_cp = php_win32_cp_get_by_enc(PG(input_encoding)); in php_win32_cp_cli_io_setup()
447 if (PG(output_encoding) && PG(output_encoding)[0]) { in php_win32_cp_cli_io_setup()
448 cur_out_cp = php_win32_cp_get_by_enc(PG(output_encoding)); in php_win32_cp_cli_io_setup()
/PHP-8.1/sapi/fpm/fpm/
H A Dfpm_main.c521 if (Z_TYPE(PG(http_globals)[TRACK_VARS_ENV]) == IS_ARRAY && in cgi_php_import_environment_variables()
522 Z_ARR_P(array_ptr) != Z_ARR(PG(http_globals)[TRACK_VARS_ENV]) && in cgi_php_import_environment_variables()
523 zend_hash_num_elements(Z_ARRVAL(PG(http_globals)[TRACK_VARS_ENV])) > 0 in cgi_php_import_environment_variables()
528 } else if (Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) == IS_ARRAY && in cgi_php_import_environment_variables()
529 Z_ARR_P(array_ptr) != Z_ARR(PG(http_globals)[TRACK_VARS_SERVER]) && in cgi_php_import_environment_variables()
530 zend_hash_num_elements(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER])) > 0 in cgi_php_import_environment_variables()
675 php_parse_user_ini_file(path, PG(user_ini_filename), entry->user_config); in php_cgi_ini_activate_user_config()
678 entry->expires = request_time + PG(user_ini_cache_ttl); in php_cgi_ini_activate_user_config()
711 (PG(user_ini_filename) && *PG(user_ini_filename)) in sapi_cgi_activate()
732 if (PG(user_ini_filename) && *PG(user_ini_filename)) { in sapi_cgi_activate()
[all …]
H A Dfpm_php.c112 PG(disable_classes) = v; in fpm_php_apply_defines_ex()
/PHP-8.1/sapi/litespeed/
H A Dlsapi_main.c222 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()
923 if (!PG(user_ini_filename) || !*PG(user_ini_filename)) { in lsapi_activate_user_ini_basic_checks()
1045 php_parse_user_ini_file(ctx->path, PG(user_ini_filename), in lsapi_activate_user_ini_walk_down_the_path()
[all …]
/PHP-8.1/sapi/cgi/
H A Dcgi_main.c665 if (PG(variables_order) && (strchr(PG(variables_order),'E') || strchr(PG(variables_order),'e'))) { in cgi_php_import_environment_variables()
666 if (Z_TYPE(PG(http_globals)[TRACK_VARS_ENV]) != IS_ARRAY) { in cgi_php_import_environment_variables()
670 if (Z_TYPE(PG(http_globals)[TRACK_VARS_ENV]) == IS_ARRAY && in cgi_php_import_environment_variables()
671 Z_ARR_P(array_ptr) != Z_ARR(PG(http_globals)[TRACK_VARS_ENV])) { in cgi_php_import_environment_variables()
851 entry->expires = request_time + PG(user_ini_cache_ttl);
888 (PG(user_ini_filename) && *PG(user_ini_filename))
912 if (PG(user_ini_filename) && *PG(user_ini_filename)) {
1225 if (!env_document_root && PG(doc_root)) {
2430 size_t slen = strlen(PG(arg_separator).input);
2446 strlcat(s, PG(arg_separator).input, len);
[all …]
/PHP-8.1/ext/standard/
H A Dphp_fopen_wrapper.c220 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 Dbasic_functions.c1506 if (PG(last_error_message)) {
1510 ZVAL_LONG(&tmp, PG(last_error_type));
1519 ZVAL_LONG(&tmp, PG(last_error_lineno));
1530 if (PG(last_error_message)) {
1531 PG(last_error_type) = 0;
1532 PG(last_error_lineno) = 0;
1535 PG(last_error_message) = NULL;
1537 if (PG(last_error_file)) {
1539 PG(last_error_file) = NULL;
2096 if (PG(open_basedir)) {
[all …]
H A Ddir.c481 if (PG(open_basedir) && *PG(open_basedir)) { in PHP_FUNCTION()
493 if (PG(open_basedir) && *PG(open_basedir)) { in PHP_FUNCTION()
H A Ddl.c51 if (!PG(enable_dl)) { in PHP_FUNCTION()
123 extension_dir = PG(extension_dir); in php_load_extension()
H A Durl_scanner_ex.re308 append_modified_url(&ctx->val, &ctx->result, &ctx->url_app, PG(arg_separator).output);
609 append_modified_url(&surl, &buf, &url_app, PG(arg_separator).output);
753 smart_str_appends(&url_state->url_app, PG(arg_separator).output);
894 separator_len = strlen(PG(arg_separator).output);
896 if (!memcmp(end, PG(arg_separator).output, separator_len)) {
910 && (size_t)(start - PG(arg_separator).output) >= separator_len
911 && !memcmp(start - separator_len, PG(arg_separator).output, separator_len)) {
/PHP-8.1/ext/soap/
H A Dphp_xml.c87 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-8.1/sapi/phpdbg/
H A Dphpdbg_info.c84 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-8.1/ext/pdo_sqlite/
H A Dsqlite_driver.c749 if (PG(open_basedir) && *PG(open_basedir)) { in make_filename_safe()
826 if (!(PG(open_basedir) && *PG(open_basedir))) { in pdo_sqlite_handle_factory()
838 if (PG(open_basedir) && *PG(open_basedir)) { in pdo_sqlite_handle_factory()
/PHP-8.1/ext/filter/
H A Dfilter.c374 orig_array_ptr = &PG(http_globals)[t]; \ in php_sapi_filter()
481 if (PG(auto_globals_jit)) { in php_filter_get_storage()
487 if (PG(auto_globals_jit)) { in php_filter_get_storage()
490 array_ptr = !Z_ISUNDEF(IF_G(env_array)) ? &IF_G(env_array) : &PG(http_globals)[TRACK_VARS_ENV]; in php_filter_get_storage()
/PHP-8.1/ext/readline/
H A Dreadline_cli.c611 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()

Completed in 125 milliseconds

123