Home
last modified time | relevance | path

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

123

/PHP-7.4/main/
H A Dphp_variables.c189 if (!PG(display_errors)) { in php_register_variable_ex()
763 memset(PG(http_globals), 0, sizeof(PG(http_globals))); in php_hash_environment()
765 if (PG(register_argc_argv)) { in php_hash_environment()
774 if (PG(variables_order) && (strchr(PG(variables_order),'G') || strchr(PG(variables_order),'g'))) { in php_auto_globals_create_get()
789 if (PG(variables_order) && in php_auto_globals_create_post()
790 (strchr(PG(variables_order),'P') || strchr(PG(variables_order),'p')) && in php_auto_globals_create_post()
808 if (PG(variables_order) && (strchr(PG(variables_order),'C') || strchr(PG(variables_order),'c'))) { in php_auto_globals_create_cookie()
851 if (PG(variables_order) && (strchr(PG(variables_order),'S') || strchr(PG(variables_order),'s'))) { in php_auto_globals_create_server()
891 if (PG(variables_order) && (strchr(PG(variables_order),'E') || strchr(PG(variables_order),'e'))) { in php_auto_globals_create_env()
911 p = PG(request_order); in php_auto_globals_create_request()
[all …]
H A Dphp_syslog.c47 if (!PG(have_called_openlog)) { in php_syslog()
48 php_openlog(PG(syslog_ident), 0, PG(syslog_facility)); in php_syslog()
70 if (!PG(have_called_openlog)) { in php_syslog()
71 php_openlog(PG(syslog_ident), 0, PG(syslog_facility)); in php_syslog()
79 if (PG(syslog_filter) == PHP_SYSLOG_FILTER_RAW) { in php_syslog()
96 else if ((c >= 0x80) && (PG(syslog_filter) != PHP_SYSLOG_FILTER_ASCII)) in php_syslog()
101 } else if ((c < 0x20) && (PG(syslog_filter) == PHP_SYSLOG_FILTER_ALL)) in php_syslog()
H A Dmain.c585 if (PG(internal_encoding) && PG(internal_encoding)[0]) { in php_get_internal_encoding()
594 if (PG(input_encoding) && PG(input_encoding)[0]) { in php_get_input_encoding()
603 if (PG(output_encoding) && PG(output_encoding)[0]) { in php_get_output_encoding()
1127 if (PG(docref_ext) && strlen(PG(docref_ext))) { in php_verror()
1263 if (PG(ignore_repeated_errors) && PG(last_error_message)) { in php_error_cb()
1390 …if (PG(display_errors) && ((module_initialized && !PG(during_request_startup)) || (PG(display_star… in php_error_cb()
1857 if (PG(open_basedir) && *PG(open_basedir)) { in php_request_startup()
1865 if (PG(output_handler) && PG(output_handler)[0]) { in php_request_startup()
2349 if (PG(open_basedir) && *PG(open_basedir)) { in php_module_startup()
2642 if (PG(auto_prepend_file) && PG(auto_prepend_file)[0]) { in php_execute_script()
[all …]
H A Dphp_open_temporary_file.c209 if (PG(php_sys_temp_dir)) { in php_get_temporary_directory()
210 return PG(php_sys_temp_dir); in php_get_temporary_directory()
215 char *sys_temp_dir = PG(sys_temp_dir); in php_get_temporary_directory()
220 return PG(php_sys_temp_dir); in php_get_temporary_directory()
223 return PG(php_sys_temp_dir); in php_get_temporary_directory()
250 return PG(php_sys_temp_dir); in php_get_temporary_directory()
265 return PG(php_sys_temp_dir); in php_get_temporary_directory()
271 PG(php_sys_temp_dir) = estrdup(P_tmpdir); in php_get_temporary_directory()
272 return PG(php_sys_temp_dir); in php_get_temporary_directory()
276 PG(php_sys_temp_dir) = estrdup("/tmp"); in php_get_temporary_directory()
[all …]
H A Dphp_ticks.c30 zend_llist_init(&PG(tick_functions), sizeof(struct st_tick_function), NULL, 1); in php_startup_ticks()
36 zend_llist_clean(&PG(tick_functions)); in php_deactivate_ticks()
41 zend_llist_destroy(&PG(tick_functions)); in php_shutdown_ticks()
54 zend_llist_add_element(&PG(tick_functions), (void *)&tmp); in php_add_tick_function()
60 …zend_llist_del_element(&PG(tick_functions), (void *)&tmp, (int(*)(void*, void*))php_compare_tick_f… in php_remove_tick_function()
71 …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.c292 if (PG(open_basedir) && *PG(open_basedir)) {
305 pathbuf = estrdup(PG(open_basedir));
370 if (PG(user_dir) && *PG(user_dir) && path_info && '/' == path_info[0] && '~' == path_info[1]) {
402 …spprintf(&filename, 0, "%s%c%s%c%s", pw->pw_dir, PHP_DIR_SEPARATOR, PG(user_dir), PHP_DIR_SEPARATO…
412 if (PG(doc_root) && path_info && (length = strlen(PG(doc_root))) &&
413 IS_ABSOLUTE_PATH(PG(doc_root), length)) {
416 memcpy(filename, PG(doc_root), length);
451 orig_display_errors = PG(display_errors);
452 PG(display_errors) = 0;
454 PG(display_errors) = orig_display_errors;
[all …]
H A Drfc1867.c154 zend_hash_str_add_empty_element(&PG(rfc1867_protected_variables), varname, strlen(varname)); in add_protected_variable()
161 return zend_hash_str_exists(&PG(rfc1867_protected_variables), varname, strlen(varname)); in is_protected_variable()
763 zend_hash_init(&PG(rfc1867_protected_variables), 8, NULL, NULL, 0);
769 if (Z_TYPE(PG(http_globals)[TRACK_VARS_FILES]) != IS_ARRAY) {
771 array_init(&PG(http_globals)[TRACK_VARS_FILES]);
891 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)) {
1162 register_http_post_files_variable(lbuf, s, &PG(http_globals)[TRACK_VARS_FILES], 0);
1193 register_http_post_files_variable(lbuf, cd, &PG(http_globals)[TRACK_VARS_FILES], 0);
[all …]
H A Dphp_globals.h27 # define PG(v) ZEND_TSRMG_FAST(core_globals_offset, php_core_globals *, v) macro
31 # define PG(v) (core_globals.v) macro
H A Dphp_ini.c435 open_basedir = PG(open_basedir); in php_init_config()
523 if (PG(php_binary)) { in php_init_config()
526 binary_location = estrdup(PG(php_binary)); in php_init_config()
570 PG(open_basedir) = NULL; in php_init_config()
623 PG(open_basedir) = open_basedir; in php_init_config()
/PHP-7.4/ext/mbstring/
H A Dmb_gpc.c73 ZVAL_COPY_VALUE(&PG(http_globals)[TRACK_VARS_POST], &v_array); in ZEND_EXTERN_MODULE_GLOBALS()
76 ZVAL_COPY_VALUE(&PG(http_globals)[TRACK_VARS_GET], &v_array); in ZEND_EXTERN_MODULE_GLOBALS()
79 ZVAL_COPY_VALUE(&PG(http_globals)[TRACK_VARS_COOKIE], &v_array); in ZEND_EXTERN_MODULE_GLOBALS()
120 separator = (char *) estrdup(PG(arg_separator).input); in ZEND_EXTERN_MODULE_GLOBALS()
247 if (ZEND_SIZE_T_GT_ZEND_LONG(n, (PG(max_input_vars) * 2))) { in _php_mb_encoding_handler_ex()
248 …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-7.4/win32/
H A Dcodepage.c286 if (PG(internal_encoding) && PG(internal_encoding)[0]) { in php_win32_cp_get_enc()
287 enc = PG(internal_encoding); in php_win32_cp_get_enc()
444 if (PG(input_encoding) && PG(input_encoding)[0]) { in php_win32_cp_cli_io_setup()
445 cur_in_cp = php_win32_cp_get_by_enc(PG(input_encoding)); in php_win32_cp_cli_io_setup()
453 if (PG(output_encoding) && PG(output_encoding)[0]) { in php_win32_cp_cli_io_setup()
454 cur_out_cp = php_win32_cp_get_by_enc(PG(output_encoding)); in php_win32_cp_cli_io_setup()
/PHP-7.4/sapi/fpm/fpm/
H A Dfpm_main.c526 if (Z_TYPE(PG(http_globals)[TRACK_VARS_ENV]) == IS_ARRAY && in cgi_php_import_environment_variables()
527 Z_ARR_P(array_ptr) != Z_ARR(PG(http_globals)[TRACK_VARS_ENV]) && in cgi_php_import_environment_variables()
528 zend_hash_num_elements(Z_ARRVAL(PG(http_globals)[TRACK_VARS_ENV])) > 0 in cgi_php_import_environment_variables()
533 } else if (Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) == IS_ARRAY && in cgi_php_import_environment_variables()
534 Z_ARR_P(array_ptr) != Z_ARR(PG(http_globals)[TRACK_VARS_SERVER]) && in cgi_php_import_environment_variables()
535 zend_hash_num_elements(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER])) > 0 in cgi_php_import_environment_variables()
682 php_parse_user_ini_file(path, PG(user_ini_filename), entry->user_config); in php_cgi_ini_activate_user_config()
685 entry->expires = request_time + PG(user_ini_cache_ttl); in php_cgi_ini_activate_user_config()
718 (PG(user_ini_filename) && *PG(user_ini_filename)) in sapi_cgi_activate()
739 if (PG(user_ini_filename) && *PG(user_ini_filename)) { in sapi_cgi_activate()
[all …]
H A Dfpm_php.c100 PG(disable_functions) = v; in fpm_php_apply_defines_ex()
107 PG(disable_classes) = v; in fpm_php_apply_defines_ex()
/PHP-7.4/sapi/litespeed/
H A Dlsapi_main.c227 if (Z_TYPE(PG(http_globals)[TRACK_VARS_ENV]) == IS_ARRAY && in litespeed_php_import_environment_variables()
228 Z_ARR_P(array_ptr) != Z_ARR(PG(http_globals)[TRACK_VARS_ENV]) && in litespeed_php_import_environment_variables()
229 zend_hash_num_elements(Z_ARRVAL(PG(http_globals)[TRACK_VARS_ENV])) > 0 in litespeed_php_import_environment_variables()
232 ZVAL_DUP(array_ptr, &PG(http_globals)[TRACK_VARS_ENV]); in litespeed_php_import_environment_variables()
234 } else if (Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) == IS_ARRAY && in litespeed_php_import_environment_variables()
235 Z_ARR_P(array_ptr) != Z_ARR(PG(http_globals)[TRACK_VARS_SERVER]) && in litespeed_php_import_environment_variables()
236 zend_hash_num_elements(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER])) > 0 in litespeed_php_import_environment_variables()
239 ZVAL_DUP(array_ptr, &PG(http_globals)[TRACK_VARS_SERVER]); in litespeed_php_import_environment_variables()
933 if (!PG(user_ini_filename) || !*PG(user_ini_filename)) { in lsapi_activate_user_ini_basic_checks()
1055 php_parse_user_ini_file(ctx->path, PG(user_ini_filename), in lsapi_activate_user_ini_walk_down_the_path()
[all …]
/PHP-7.4/ext/standard/
H A Dphp_fopen_wrapper.c222 if ((options & STREAM_OPEN_FOR_INCLUDE) && !PG(allow_url_include) ) { in php_stream_url_wrap_php()
233 …input->body = php_stream_temp_create_ex(TEMP_STREAM_DEFAULT, SAPI_POST_BLOCK_SIZE, PG(upload_tmp_d… in php_stream_url_wrap_php()
241 if ((options & STREAM_OPEN_FOR_INCLUDE) && !PG(allow_url_include) ) { in php_stream_url_wrap_php()
307 if ((options & STREAM_OPEN_FOR_INCLUDE) && !PG(allow_url_include) ) { in php_stream_url_wrap_php()
H A Ddir.c499 if (PG(open_basedir) && *PG(open_basedir)) { in PHP_FUNCTION()
511 if (PG(open_basedir) && *PG(open_basedir)) { in PHP_FUNCTION()
H A Ddl.c54 if (!PG(enable_dl)) { in PHP_FUNCTION()
116 extension_dir = PG(extension_dir); in php_load_extension()
H A Dsyslog.c129 PG(have_called_openlog) = 1; in php_openlog()
/PHP-7.4/sapi/cgi/
H A Dcgi_main.c669 if (PG(variables_order) && (strchr(PG(variables_order),'E') || strchr(PG(variables_order),'e'))) { in cgi_php_import_environment_variables()
670 if (Z_TYPE(PG(http_globals)[TRACK_VARS_ENV]) != IS_ARRAY) { in cgi_php_import_environment_variables()
674 if (Z_TYPE(PG(http_globals)[TRACK_VARS_ENV]) == IS_ARRAY && in cgi_php_import_environment_variables()
675 Z_ARR_P(array_ptr) != Z_ARR(PG(http_globals)[TRACK_VARS_ENV])) { in cgi_php_import_environment_variables()
856 entry->expires = request_time + PG(user_ini_cache_ttl);
893 (PG(user_ini_filename) && *PG(user_ini_filename))
917 if (PG(user_ini_filename) && *PG(user_ini_filename)) {
1238 if (!env_document_root && PG(doc_root)) {
2459 size_t slen = strlen(PG(arg_separator).input);
2475 strlcat(s, PG(arg_separator).input, len);
[all …]
/PHP-7.4/sapi/phpdbg/
H A Dphpdbg_wait.c28 if (Z_TYPE(PG(http_globals)[type]) != IS_UNDEF) { in ZEND_EXTERN_MODULE_GLOBALS()
29 zval_ptr_dtor_nogc(&PG(http_globals)[type]); in ZEND_EXTERN_MODULE_GLOBALS()
33 PG(http_globals)[type] = *zvp; in ZEND_EXTERN_MODULE_GLOBALS()
155 PG(auto_globals_jit) = 0; in phpdbg_webdata_decompress()
177 …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.c86 if (PG(last_error_message)) { in PHPDBG_INFO()
88 …\"%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.c48 zval cookies = PG(http_globals)[TRACK_VARS_COOKIE]; in PHP_RINIT_FUNCTION()
/PHP-7.4/ext/soap/
H A Dphp_xml.c89 old_allow_url_fopen = PG(allow_url_fopen); in soap_xmlParseFile()
90 PG(allow_url_fopen) = 1; in soap_xmlParseFile()
92 PG(allow_url_fopen) = old_allow_url_fopen; in soap_xmlParseFile()
/PHP-7.4/ext/openssl/tests/
H A Dopenssl_pkcs12_read_basic.phpt84 ey8zxGcLd4aFFBlVhXHYdBXg/PG/oxJMAFuMwa+KxSP6Mqp1FlOZtvUUieQcToMf
/PHP-7.4/ext/readline/
H A Dreadline_cli.c597 if (PG(auto_prepend_file) && PG(auto_prepend_file)[0]) { in readline_shell_run()
599 zend_stream_init_filename(&prepend_file, PG(auto_prepend_file)); in readline_shell_run()

Completed in 82 milliseconds

123