Home
last modified time | relevance | path

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

123

/PHP-8.0/main/
H A Dphp_syslog.c38 PG(have_called_openlog) = 1; in php_openlog()
44 PG(have_called_openlog) = 0; in php_closelog()
57 if (!PG(have_called_openlog)) { in php_syslog()
58 php_openlog(PG(syslog_ident), 0, PG(syslog_facility)); in php_syslog()
80 if (!PG(have_called_openlog)) { in php_syslog()
81 php_openlog(PG(syslog_ident), 0, PG(syslog_facility)); in php_syslog()
89 if (PG(syslog_filter) == PHP_SYSLOG_FILTER_RAW) { in php_syslog()
106 else if ((c >= 0x80) && (PG(syslog_filter) != PHP_SYSLOG_FILTER_ASCII)) in php_syslog()
111 } else if ((c < 0x20) && (PG(syslog_filter) == PHP_SYSLOG_FILTER_ALL)) in php_syslog()
H A Dphp_variables.c178 if (!PG(display_errors)) { in php_register_variable_ex()
739 memset(PG(http_globals), 0, sizeof(PG(http_globals))); in php_hash_environment()
741 if (PG(register_argc_argv)) { in php_hash_environment()
750 if (PG(variables_order) && (strchr(PG(variables_order),'G') || strchr(PG(variables_order),'g'))) { in php_auto_globals_create_get()
765 if (PG(variables_order) && in php_auto_globals_create_post()
766 (strchr(PG(variables_order),'P') || strchr(PG(variables_order),'p')) && in php_auto_globals_create_post()
784 if (PG(variables_order) && (strchr(PG(variables_order),'C') || strchr(PG(variables_order),'c'))) { in php_auto_globals_create_cookie()
827 if (PG(variables_order) && (strchr(PG(variables_order),'S') || strchr(PG(variables_order),'s'))) { in php_auto_globals_create_server()
867 if (PG(variables_order) && (strchr(PG(variables_order),'E') || strchr(PG(variables_order),'e'))) { in php_auto_globals_create_env()
887 p = PG(request_order); in php_auto_globals_create_request()
[all …]
H A Dmain.c510 if (PG(internal_encoding) && PG(internal_encoding)[0]) { in php_get_internal_encoding()
519 if (PG(input_encoding) && PG(input_encoding)[0]) { in php_get_input_encoding()
528 if (PG(output_encoding) && PG(output_encoding)[0]) { in php_get_output_encoding()
1067 if (PG(docref_ext) && strlen(PG(docref_ext))) { in php_verror()
1218 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()
1740 if (PG(open_basedir) && *PG(open_basedir)) { in php_request_startup()
1748 if (PG(output_handler) && PG(output_handler)[0]) { in php_request_startup()
2223 if (PG(open_basedir) && *PG(open_basedir)) { in php_module_startup()
2526 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()
39 zend_llist_destroy(&PG(tick_functions)); in php_shutdown_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));
358 if (PG(user_dir) && *PG(user_dir) && path_info && '/' == path_info[0] && '~' == path_info[1]) {
390 …spprintf(&filename, 0, "%s%c%s%c%s", pw->pw_dir, PHP_DIR_SEPARATOR, PG(user_dir), PHP_DIR_SEPARATO…
400 if (PG(doc_root) && path_info && (length = strlen(PG(doc_root))) &&
401 IS_ABSOLUTE_PATH(PG(doc_root), length)) {
404 memcpy(filename, PG(doc_root), length);
439 orig_display_errors = PG(display_errors);
440 PG(display_errors) = 0;
442 PG(display_errors) = orig_display_errors;
[all …]
H A Drfc1867.c154 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)) {
1040 if (PG(upload_max_filesize) > 0 && (zend_long)(total_bytes+blen) > PG(upload_max_filesize)) {
1165 register_http_post_files_variable(lbuf, s, &PG(http_globals)[TRACK_VARS_FILES], 0);
1196 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.c419 open_basedir = PG(open_basedir); in php_init_config()
507 if (PG(php_binary)) { in php_init_config()
510 binary_location = estrdup(PG(php_binary)); in php_init_config()
554 PG(open_basedir) = NULL; in php_init_config()
607 PG(open_basedir) = open_basedir; in php_init_config()
/PHP-8.0/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.0/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.0/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 …]
/PHP-8.0/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()
922 if (!PG(user_ini_filename) || !*PG(user_ini_filename)) { in lsapi_activate_user_ini_basic_checks()
1044 php_parse_user_ini_file(ctx->path, PG(user_ini_filename), in lsapi_activate_user_ini_walk_down_the_path()
[all …]
/PHP-8.0/sapi/phpdbg/
H A Dphpdbg_wait.c26 if (Z_TYPE(PG(http_globals)[type]) != IS_UNDEF) { in ZEND_EXTERN_MODULE_GLOBALS()
27 zval_ptr_dtor_nogc(&PG(http_globals)[type]); in ZEND_EXTERN_MODULE_GLOBALS()
31 PG(http_globals)[type] = *zvp; in ZEND_EXTERN_MODULE_GLOBALS()
149 PG(auto_globals_jit) = 0; in phpdbg_webdata_decompress()
171 …st_body = php_stream_temp_create_ex(TEMP_STREAM_DEFAULT, SAPI_POST_BLOCK_SIZE, PG(upload_tmp_dir)); in phpdbg_webdata_decompress()
H A Dphpdbg_info.c84 if (PG(last_error_message)) { in PHPDBG_INFO()
86 …\"%s\" line=\"%d\"", "Last error: %s at %s line %d", PG(last_error_message), PG(last_error_file), in PHPDBG_INFO()
H A Dphpdbg_rinit_hook.c46 zval cookies = PG(http_globals)[TRACK_VARS_COOKIE]; in PHP_RINIT_FUNCTION()
/PHP-8.0/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.c1507 if (PG(last_error_message)) {
1512 …add_assoc_string_ex(return_value, "file", sizeof("file")-1, PG(last_error_file)?PG(last_error_file…
1523 if (PG(last_error_message)) {
1524 PG(last_error_type) = 0;
1525 PG(last_error_lineno) = 0;
1528 PG(last_error_message) = NULL;
1530 if (PG(last_error_file)) {
1531 free(PG(last_error_file));
1532 PG(last_error_file) = NULL;
2113 if (PG(open_basedir)) {
[all …]
H A Ddir.c478 if (PG(open_basedir) && *PG(open_basedir)) { in PHP_FUNCTION()
490 if (PG(open_basedir) && *PG(open_basedir)) { in PHP_FUNCTION()
H A Ddl.c51 if (!PG(enable_dl)) { in PHP_FUNCTION()
111 extension_dir = PG(extension_dir); in php_load_extension()
/PHP-8.0/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.0/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.0/ext/openssl/tests/
H A Dopenssl_pkcs12_read_basic.phpt84 ey8zxGcLd4aFFBlVhXHYdBXg/PG/oxJMAFuMwa+KxSP6Mqp1FlOZtvUUieQcToMf
/PHP-8.0/ext/filter/
H A Dfilter.c371 orig_array_ptr = &PG(http_globals)[t]; \ in php_sapi_filter()
478 if (PG(auto_globals_jit)) { in php_filter_get_storage()
484 if (PG(auto_globals_jit)) { in php_filter_get_storage()
487 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.0/ext/readline/
H A Dreadline_cli.c599 if (PG(auto_prepend_file) && PG(auto_prepend_file)[0]) { in readline_shell_run()
601 zend_stream_init_filename(&prepend_file, PG(auto_prepend_file)); in readline_shell_run()

Completed in 150 milliseconds

123