Home
last modified time | relevance | path

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

12345

/PHP-5.3/main/
H A Dphp_variables.c50 if (PG(magic_quotes_gpc)) { in php_register_variable_safe()
151 if (!PG(display_errors)) { in php_register_variable_ex()
192 if (PG(magic_quotes_gpc)) { in php_register_variable_ex()
230 if (PG(magic_quotes_gpc)) { in php_register_variable_ex()
684 …zend_bool jit_initialization = (PG(auto_globals_jit) && !PG(register_globals) && !PG(register_long… in php_hash_environment()
704 PG(http_globals)[i] = NULL; in php_hash_environment()
773 if (!PG(http_globals)[i]) { in php_hash_environment()
799 if (PG(variables_order) && (strchr(PG(variables_order),'S') || strchr(PG(variables_order),'s'))) { in php_auto_globals_create_server()
851 if (PG(variables_order) && (strchr(PG(variables_order),'E') || strchr(PG(variables_order),'e'))) { in php_auto_globals_create_env()
877 p = PG(request_order); in php_auto_globals_create_request()
[all …]
H A Dmain.c585 PG(in_error_log) = 1; in php_log_err()
630 PG(in_error_log) = 0; in php_log_err()
796 if (PG(docref_ext) && strlen(PG(docref_ext))) { in php_verror()
918 if (PG(ignore_repeated_errors) && PG(last_error_message)) { in php_error_cb()
985 && (PG(log_errors) || PG(display_errors) || (!module_initialized))) { in php_error_cb()
1163 if (PG(safe_mode)) { in PHP_FUNCTION()
1453 if (PG(safe_mode) || (PG(open_basedir) && *PG(open_basedir))) { in php_request_startup()
1461 if (PG(output_handler) && PG(output_handler)[0]) { in php_request_startup()
2031 if (PG(safe_mode) || (PG(open_basedir) && *PG(open_basedir))) { in php_module_startup()
2291 if (PG(auto_prepend_file) && PG(auto_prepend_file)[0]) { in php_execute_script()
[all …]
H A Dphp_ticks.c26 zend_llist_init(&PG(tick_functions), sizeof(void(*)(int)), NULL, 1); in php_startup_ticks()
32 zend_llist_clean(&PG(tick_functions)); in php_deactivate_ticks()
37 zend_llist_destroy(&PG(tick_functions)); in php_shutdown_ticks()
53 zend_llist_add_element(&PG(tick_functions), (void *)&func); in php_add_tick_function()
60 zend_llist_del_element(&PG(tick_functions), (void *)func, in php_remove_tick_function()
76 …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.c297 if (PG(open_basedir) && *PG(open_basedir)) {
310 pathbuf = estrdup(PG(open_basedir));
345 if (PG(safe_mode)) {
346 if (PG(safe_mode_include_dir) && *PG(safe_mode_include_dir)) {
356 pathbuf = estrdup(PG(safe_mode_include_dir));
422 if (PG(user_dir) && *PG(user_dir) && path_info && '/' == path_info[0] && '~' == path_info[1]) {
464 if (PG(doc_root) && path_info && (length = strlen(PG(doc_root))) &&
465 IS_ABSOLUTE_PATH(PG(doc_root), length)) {
469 memcpy(filename, PG(doc_root), length);
702 if (PG(safe_mode) && (!php_checkuid(filename, mode, CHECKUID_CHECK_MODE_PARAM))) {
[all …]
H A Drfc1867.c51 zend_hash_destroy(&PG(rfc1867_protected_variables)); \
247 int register_globals = PG(register_globals); in register_http_post_files_variable()
249 PG(register_globals) = 0; in register_http_post_files_variable()
251 PG(register_globals) = register_globals; in register_http_post_files_variable()
257 int register_globals = PG(register_globals); in register_http_post_files_variable_ex()
259 PG(register_globals) = 0; in register_http_post_files_variable_ex()
261 PG(register_globals) = register_globals; in register_http_post_files_variable_ex()
950 if (count == PG(max_input_vars) + 1) {
976 if (!PG(file_uploads)) {
1092 if (PG(upload_max_filesize) > 0 && (total_bytes+blen) > PG(upload_max_filesize)) {
[all …]
H A Dphp_globals.h29 # define PG(v) TSRMG(core_globals_id, php_core_globals *, v) macro
32 # define PG(v) (core_globals.v) macro
H A Dsafe_mode.c109 } else if (PG(safe_mode_gid) && gid == php_getgid()) { in php_checkuid_ex()
162 } else if (PG(safe_mode_gid) && dgid == php_getgid()) { in php_checkuid_ex()
188 if (PG(safe_mode_gid)) { in php_checkuid_ex()
H A Dfopen_wrappers.h39 …(PG(safe_mode) && (!php_checkuid(filename, NULL, CHECKUID_CHECK_FILE_AND_DIR))) || php_check_open_…
H A Dphp_content_types.c52 …if ((PG(always_populate_raw_post_data) || NULL == SG(request_info).post_entry) && SG(request_info)… in SAPI_POST_READER_FUNC()
/PHP-5.3/ext/standard/
H A Dlink.c71 if (PG(safe_mode) && !php_checkuid(link, NULL, CHECKUID_CHECK_FILE_AND_DIR)) { in PHP_FUNCTION()
170 if (PG(safe_mode) && !php_checkuid(dest_p, NULL, CHECKUID_CHECK_FILE_AND_DIR)) { in PHP_FUNCTION()
174 if (PG(safe_mode) && !php_checkuid(source_p, NULL, CHECKUID_CHECK_FILE_AND_DIR)) { in PHP_FUNCTION()
234 if (PG(safe_mode) && !php_checkuid(dest_p, NULL, CHECKUID_CHECK_FILE_AND_DIR)) { in PHP_FUNCTION()
238 if (PG(safe_mode) && !php_checkuid(source_p, NULL, CHECKUID_CHECK_FILE_AND_DIR)) { in PHP_FUNCTION()
H A Ddir.c332 …if ((PG(safe_mode) && !php_checkuid(str, NULL, CHECKUID_CHECK_FILE_AND_DIR)) || php_check_open_bas… in PHP_FUNCTION()
498 if (PG(safe_mode) || (PG(open_basedir) && *PG(open_basedir))) { in PHP_FUNCTION()
511 if (PG(safe_mode) || (PG(open_basedir) && *PG(open_basedir))) { in PHP_FUNCTION()
512 …if (PG(safe_mode) && (!php_checkuid_ex(globbuf.gl_pathv[n], NULL, CHECKUID_CHECK_FILE_AND_DIR, CHE… in PHP_FUNCTION()
H A Ddl.c63 if (!PG(enable_dl)) { in PHP_FUNCTION()
66 } else if (PG(safe_mode)) { in PHP_FUNCTION()
117 extension_dir = PG(extension_dir); in php_load_extension()
H A Dftok.c56 …if ((PG(safe_mode) && (!php_checkuid(pathname, NULL, CHECKUID_CHECK_FILE_AND_DIR))) || php_check_o… in PHP_FUNCTION()
H A Dexec.c73 if (PG(safe_mode)) { in php_exec()
92 …spprintf(&d, 0, "%s%s%s%s%s", PG(safe_mode_exec_dir), (b ? "" : "/"), (b ? b : cmd), (c ? " " : ""… in php_exec()
173 if (PG(magic_quotes_runtime)) { in php_exec()
487 if (PG(safe_mode)) {
H A Dphp_fopen_wrapper.c206 if ((options & STREAM_OPEN_FOR_INCLUDE) && !PG(allow_url_include) ) { in php_stream_url_wrap_php()
216 if ((options & STREAM_OPEN_FOR_INCLUDE) && !PG(allow_url_include) ) { in php_stream_url_wrap_php()
273 if ((options & STREAM_OPEN_FOR_INCLUDE) && !PG(allow_url_include) ) { in php_stream_url_wrap_php()
/PHP-5.3/sapi/apache_hooks/
H A Dsapi_apache.c82 if(PG(register_globals)) { in apache_php_module_hook()
86 php_register_variable_ex("request", req, PG(http_globals)[TRACK_VARS_SERVER] TSRMLS_CC); in apache_php_module_hook()
90 …php_register_variable("PHP_SELF_HOOK", handler->name, PG(http_globals)[TRACK_VARS_SERVER] TSRMLS_C… in apache_php_module_hook()
/PHP-5.3/ext/mbstring/
H A Dmb_gpc.c81 PG(http_globals)[TRACK_VARS_POST] = array_ptr; in ZEND_EXTERN_MODULE_GLOBALS()
84 PG(http_globals)[TRACK_VARS_GET] = array_ptr; in ZEND_EXTERN_MODULE_GLOBALS()
87 PG(http_globals)[TRACK_VARS_COOKIE] = array_ptr; in ZEND_EXTERN_MODULE_GLOBALS()
130 separator = (char *) estrdup(PG(arg_separator).input); in ZEND_EXTERN_MODULE_GLOBALS()
216 if (info->force_register_globals && !(prev_rg_state = PG(register_globals))) { in _php_mb_encoding_handler_ex()
266 if (n > (PG(max_input_vars) * 2)) { in _php_mb_encoding_handler_ex()
267 …iables exceeded %ld. To increase the limit change max_input_vars in php.ini.", PG(max_input_vars)); in _php_mb_encoding_handler_ex()
/PHP-5.3/sapi/cgi/
H A Dcgi_main.c593 if (PG(http_globals)[TRACK_VARS_ENV] && in cgi_php_import_environment_variables()
594 array_ptr != PG(http_globals)[TRACK_VARS_ENV] && in cgi_php_import_environment_variables()
599 *array_ptr = *PG(http_globals)[TRACK_VARS_ENV]; in cgi_php_import_environment_variables()
603 } else if (PG(http_globals)[TRACK_VARS_SERVER] && in cgi_php_import_environment_variables()
621 int magic_quotes_gpc = PG(magic_quotes_gpc); in cgi_php_import_environment_variables()
817 (PG(user_ini_filename) && *PG(user_ini_filename))
838 if (PG(user_ini_filename) && *PG(user_ini_filename)) {
1140 if (!env_document_root && PG(doc_root)) {
2014 int slen = strlen(PG(arg_separator).input);
2030 strlcat(s, PG(arg_separator).input, len);
[all …]
/PHP-5.3/sapi/fpm/fpm/
H A Dfpm_main.c571 if (PG(http_globals)[TRACK_VARS_ENV] && in cgi_php_import_environment_variables()
572 array_ptr != PG(http_globals)[TRACK_VARS_ENV] && in cgi_php_import_environment_variables()
577 *array_ptr = *PG(http_globals)[TRACK_VARS_ENV]; in cgi_php_import_environment_variables()
581 } else if (PG(http_globals)[TRACK_VARS_SERVER] && in cgi_php_import_environment_variables()
582 array_ptr != PG(http_globals)[TRACK_VARS_SERVER] && in cgi_php_import_environment_variables()
587 *array_ptr = *PG(http_globals)[TRACK_VARS_SERVER]; in cgi_php_import_environment_variables()
597 magic_quotes_gpc = PG(magic_quotes_gpc); in cgi_php_import_environment_variables()
762 entry->expires = request_time + PG(user_ini_cache_ttl);
794 (PG(user_ini_filename) && *PG(user_ini_filename))
815 if (PG(user_ini_filename) && *PG(user_ini_filename)) {
[all …]
/PHP-5.3/sapi/webjames/
H A Dwebjames.c51 PG(connection_status) = PHP_CONNECTION_ABORTED; in sapi_webjames_ub_write()
52 if (!PG(ignore_user_abort)) { in sapi_webjames_ub_write()
74 PG(connection_status) = PHP_CONNECTION_ABORTED; in sapi_webjames_send_header()
75 if (!PG(ignore_user_abort)) { in sapi_webjames_send_header()
/PHP-5.3/ext/curl/
H A Dstreams.c406 if ((PG(open_basedir) && *PG(open_basedir)) || PG(safe_mode)) { in php_curl_stream_opener()
414 if ((PG(open_basedir) && *PG(open_basedir)) || PG(safe_mode)) { in php_curl_stream_opener()
/PHP-5.3/ext/session/
H A Dmod_files.c174 if (PG(safe_mode) || PG(open_basedir)) { in ps_files_open()
185 (PG(safe_mode) && !php_checkuid(buf, NULL, CHECKUID_CHECK_FILE_AND_DIR)) in ps_files_open()
277 if (PG(safe_mode) && (!php_checkuid(save_path, NULL, CHECKUID_CHECK_FILE_AND_DIR))) { in PS_OPEN_FUNC()
/PHP-5.3/main/streams/
H A Dplain_wrapper.c868 if (PG(safe_mode) &&(!php_checkuid(path, NULL, CHECKUID_CHECK_FILE_AND_DIR))) { in php_plain_files_dir_opener()
1005 …if ((options & ENFORCE_SAFE_MODE) && PG(safe_mode) && (!php_checkuid(path, mode, CHECKUID_CHECK_MO… in php_plain_files_stream_opener()
1021 …if (PG(safe_mode) &&(!php_checkuid_ex(url, NULL, CHECKUID_CHECK_FILE_AND_DIR, (flags & PHP_STREAM_… in php_plain_files_url_stater()
1057 if (PG(safe_mode) && !php_checkuid(url, NULL, CHECKUID_CHECK_FILE_AND_DIR)) { in php_plain_files_unlink()
1112 if (PG(safe_mode) && (!php_checkuid(url_from, NULL, CHECKUID_CHECK_FILE_AND_DIR) || in php_plain_files_rename()
1274 if (PG(safe_mode) &&(!php_checkuid(url, NULL, CHECKUID_CHECK_FILE_AND_DIR))) { in php_plain_files_rmdir()
1357 if (PG(safe_mode) && (!php_checkuid(filename, mode, CHECKUID_CHECK_MODE_PARAM))) { in _php_stream_fopen_with_path()
1381 if (PG(safe_mode) && (!php_checkuid(filename, mode, CHECKUID_CHECK_MODE_PARAM))) in _php_stream_fopen_with_path()
1407 if (PG(safe_mode) && (!php_checkuid(trypath, mode, CHECKUID_CHECK_MODE_PARAM))) { in _php_stream_fopen_with_path()
1416 if (PG(safe_mode) && (!php_checkuid(filename, mode, CHECKUID_CHECK_MODE_PARAM))) { in _php_stream_fopen_with_path()
[all …]
/PHP-5.3/ext/soap/
H A Dphp_xml.c90 old_allow_url_fopen = PG(allow_url_fopen); in soap_xmlParseFile()
91 PG(allow_url_fopen) = 1; in soap_xmlParseFile()
93 PG(allow_url_fopen) = old_allow_url_fopen; in soap_xmlParseFile()
/PHP-5.3/ext/zip/
H A Dphp_zip.h49 …(PG(safe_mode) && (!php_checkuid(filename, NULL, CHECKUID_CHECK_FILE_AND_DIR))) || php_check_open_…

Completed in 73 milliseconds

12345