Home
last modified time | relevance | path

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

123

/PHP-8.2/main/
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 Dphp_variables.c214 if (!PG(display_errors)) { in php_register_variable_ex()
791 memset(PG(http_globals), 0, sizeof(PG(http_globals))); in php_hash_environment()
793 if (PG(register_argc_argv)) { in php_hash_environment()
802 if (PG(variables_order) && (strchr(PG(variables_order),'G') || strchr(PG(variables_order),'g'))) { in php_auto_globals_create_get()
817 if (PG(variables_order) && in php_auto_globals_create_post()
818 (strchr(PG(variables_order),'P') || strchr(PG(variables_order),'p')) && in php_auto_globals_create_post()
836 if (PG(variables_order) && (strchr(PG(variables_order),'C') || strchr(PG(variables_order),'c'))) { in php_auto_globals_create_cookie()
879 if (PG(variables_order) && (strchr(PG(variables_order),'S') || strchr(PG(variables_order),'s'))) { in php_auto_globals_create_server()
919 if (PG(variables_order) && (strchr(PG(variables_order),'E') || strchr(PG(variables_order),'e'))) { in php_auto_globals_create_env()
939 p = PG(request_order); in php_auto_globals_create_request()
[all …]
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()
825 if (PG(error_log_mode) > 0 && PG(error_log_mode) <= 0777) { in php_log_err_with_severity()
1075 if (PG(docref_ext) && strlen(PG(docref_ext))) { in php_verror()
1226 if (PG(ignore_repeated_errors) && PG(last_error_message)) { in php_error_cb()
1797 if (PG(open_basedir) && *PG(open_basedir)) { in php_request_startup()
1805 if (PG(output_handler) && PG(output_handler)[0]) { in php_request_startup()
2255 if (PG(open_basedir) && *PG(open_basedir)) { in php_module_startup()
2562 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]) {
404 …filename = zend_strpprintf(0, "%s%c%s%c%s", pw->pw_dir, PHP_DIR_SEPARATOR, PG(user_dir), PHP_DIR_S…
415 if (PG(doc_root) && path_info && (length = strlen(PG(doc_root))) &&
416 IS_ABSOLUTE_PATH(PG(doc_root), length)) {
419 memcpy(ZSTR_VAL(filename), PG(doc_root), length);
454 orig_display_errors = PG(display_errors);
455 PG(display_errors) = 0;
462 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()
713 body_parts_cnt = PG(max_input_vars) + upload_cnt;
762 zend_hash_init(&PG(rfc1867_protected_variables), 8, NULL, NULL, 0);
768 if (Z_TYPE(PG(http_globals)[TRACK_VARS_FILES]) != IS_ARRAY) {
770 array_init(&PG(http_globals)[TRACK_VARS_FILES]);
895 if (count == PG(max_input_vars) + 1) {
921 if (!PG(file_uploads)) {
1037 if (PG(upload_max_filesize) > 0 && (zend_long)(total_bytes+blen) > PG(upload_max_filesize)) {
1158 register_http_post_files_variable(lbuf, s, &PG(http_globals)[TRACK_VARS_FILES], 0);
1190 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.2/ext/mbstring/
H A Dmb_gpc.c64 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()
225 if (ZEND_SIZE_T_GT_ZEND_LONG(n, (PG(max_input_vars) * 2))) { in _php_mb_encoding_handler_ex()
226 …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.2/win32/
H A Dcodepage.c314 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-8.2/sapi/fpm/fpm/
H A Dfpm_main.c537 if (Z_TYPE(PG(http_globals)[TRACK_VARS_ENV]) == IS_ARRAY && in cgi_php_import_environment_variables()
538 Z_ARR_P(array_ptr) != Z_ARR(PG(http_globals)[TRACK_VARS_ENV]) && in cgi_php_import_environment_variables()
539 zend_hash_num_elements(Z_ARRVAL(PG(http_globals)[TRACK_VARS_ENV])) > 0 in cgi_php_import_environment_variables()
544 } else if (Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) == IS_ARRAY && in cgi_php_import_environment_variables()
545 Z_ARR_P(array_ptr) != Z_ARR(PG(http_globals)[TRACK_VARS_SERVER]) && in cgi_php_import_environment_variables()
546 zend_hash_num_elements(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER])) > 0 in cgi_php_import_environment_variables()
695 php_parse_user_ini_file(path, PG(user_ini_filename), entry->user_config); in php_cgi_ini_activate_user_config()
698 entry->expires = request_time + PG(user_ini_cache_ttl); in php_cgi_ini_activate_user_config()
731 (PG(user_ini_filename) && *PG(user_ini_filename)) in sapi_cgi_activate()
752 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.2/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()
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-8.2/sapi/cgi/
H A Dcgi_main.c666 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)) {
2427 size_t slen = strlen(PG(arg_separator).input);
2443 strlcat(s, PG(arg_separator).input, len);
[all …]
/PHP-8.2/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.c1452 if (PG(last_error_message)) {
1456 ZVAL_LONG(&tmp, PG(last_error_type));
1465 ZVAL_LONG(&tmp, PG(last_error_lineno));
1476 if (PG(last_error_message)) {
1477 PG(last_error_type) = 0;
1478 PG(last_error_lineno) = 0;
1481 PG(last_error_message) = NULL;
1483 if (PG(last_error_file)) {
1485 PG(last_error_file) = NULL;
2061 if (PG(open_basedir)) {
[all …]
H A Ddl.c51 if (!PG(enable_dl)) { in PHP_FUNCTION()
123 extension_dir = PG(extension_dir); in php_load_extension()
H A Ddir.c481 if (PG(open_basedir) && *PG(open_basedir)) { in PHP_FUNCTION()
H A Durl_scanner_ex.re310 append_modified_url(&ctx->val, &ctx->result, &ctx->url_app, PG(arg_separator).output);
611 append_modified_url(&surl, &buf, &url_app, PG(arg_separator).output);
756 smart_str_appends(&url_state->url_app, PG(arg_separator).output);
901 separator_len = strlen(PG(arg_separator).output);
903 if (!memcmp(end, PG(arg_separator).output, separator_len)) {
917 && (size_t)(start - PG(arg_separator).output) >= separator_len
918 && !memcmp(start - separator_len, PG(arg_separator).output, separator_len)) {
/PHP-8.2/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.2/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.2/ext/pdo_sqlite/
H A Dsqlite_driver.c748 if (PG(open_basedir) && *PG(open_basedir)) { in make_filename_safe()
816 if (!(PG(open_basedir) && *PG(open_basedir))) { in pdo_sqlite_handle_factory()
828 if (PG(open_basedir) && *PG(open_basedir)) { in pdo_sqlite_handle_factory()
/PHP-8.2/ext/filter/
H A Dfilter.c307 orig_array_ptr = &PG(http_globals)[t]; \ in php_sapi_filter()
414 if (PG(auto_globals_jit)) { in php_filter_get_storage()
420 if (PG(auto_globals_jit)) { in php_filter_get_storage()
423 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.2/ext/readline/
H A Dreadline_cli.c612 if (PG(auto_prepend_file) && PG(auto_prepend_file)[0]) { in readline_shell_run()
615 zend_stream_init_filename(&prepend_file, PG(auto_prepend_file)); in readline_shell_run()

Completed in 109 milliseconds

123