Home
last modified time | relevance | path

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

123

/PHP-5.5/main/
H A Dphp_variables.c142 if (!PG(display_errors)) { in php_register_variable_ex()
624 memset(PG(http_globals), 0, sizeof(PG(http_globals))); in php_hash_environment()
626 if (PG(register_argc_argv)) { in php_hash_environment()
637 if (PG(variables_order) && (strchr(PG(variables_order),'G') || strchr(PG(variables_order),'g'))) { in php_auto_globals_create_get()
660 if (PG(variables_order) && in php_auto_globals_create_post()
661 (strchr(PG(variables_order),'P') || strchr(PG(variables_order),'p')) && in php_auto_globals_create_post()
687 if (PG(variables_order) && (strchr(PG(variables_order),'C') || strchr(PG(variables_order),'c'))) { in php_auto_globals_create_cookie()
744 if (PG(variables_order) && (strchr(PG(variables_order),'S') || strchr(PG(variables_order),'s'))) { in php_auto_globals_create_server()
792 if (PG(variables_order) && (strchr(PG(variables_order),'E') || strchr(PG(variables_order),'e'))) { in php_auto_globals_create_env()
814 p = PG(request_order); in php_auto_globals_create_request()
[all …]
H A Dmain.c270 PG(php_binary) = NULL; in php_binary_init()
618 PG(in_error_log) = 1; in php_log_err()
833 if (PG(docref_ext) && strlen(PG(docref_ext))) { in php_verror()
955 if (PG(ignore_repeated_errors) && PG(last_error_message)) { in php_error_cb()
1028 && (PG(log_errors) || PG(display_errors) || (!module_initialized))) { in php_error_cb()
1078 …if (PG(display_errors) && ((module_initialized && !PG(during_request_startup)) || (PG(display_star… in php_error_cb()
1575 if (PG(open_basedir) && *PG(open_basedir)) { in php_request_startup()
1583 if (PG(output_handler) && PG(output_handler)[0]) { in php_request_startup()
2199 if (PG(open_basedir) && *PG(open_basedir)) { in php_module_startup()
2485 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.c296 if (PG(open_basedir) && *PG(open_basedir)) {
309 pathbuf = estrdup(PG(open_basedir));
369 if (PG(user_dir) && *PG(user_dir) && path_info && '/' == path_info[0] && '~' == path_info[1]) {
401 …spprintf(&filename, 0, "%s%c%s%c%s", pw->pw_dir, PHP_DIR_SEPARATOR, PG(user_dir), PHP_DIR_SEPARATO…
411 if (PG(doc_root) && path_info && (length = strlen(PG(doc_root))) &&
412 IS_ABSOLUTE_PATH(PG(doc_root), length)) {
416 memcpy(filename, PG(doc_root), length);
448 orig_display_errors = PG(display_errors);
449 PG(display_errors) = 0;
451 PG(display_errors) = orig_display_errors;
[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 Drfc1867.c151 …zend_hash_add(&PG(rfc1867_protected_variables), varname, strlen(varname)+1, &dummy, sizeof(int), N… in add_protected_variable()
158 return zend_hash_exists(&PG(rfc1867_protected_variables), varname, strlen(varname)+1); in is_protected_variable()
759 zend_hash_init(&PG(rfc1867_protected_variables), 5, NULL, NULL, 0);
768 PG(http_globals)[TRACK_VARS_FILES] = http_post_files;
868 …if (++count <= PG(max_input_vars) && sapi_module.input_filter(PARSE_POST, param, &value, value_len…
887 if (count == PG(max_input_vars) + 1) {
913 if (!PG(file_uploads)) {
1004 fd = php_open_temporary_fd_ex(PG(upload_tmp_dir), "php", &temp_filename, 1 TSRMLS_CC);
1029 if (PG(upload_max_filesize) > 0 && (long)(total_bytes+blen) > PG(upload_max_filesize)) {
1031 …ICE, "upload_max_filesize of %ld bytes exceeded - file [%s=%s] not saved", PG(upload_max_filesize)…
[all …]
H A Dfopen_wrappers.h40 …(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()
H A Dphp_ini.c403 open_basedir = PG(open_basedir); in php_init_config()
491 if (PG(php_binary)) { in php_init_config()
494 binary_location = estrdup(PG(php_binary)); in php_init_config()
538 PG(open_basedir) = NULL; in php_init_config()
590 PG(open_basedir) = open_basedir; in php_init_config()
/PHP-5.5/sapi/litespeed/
H A Dlsapi_main.c247 if (Z_TYPE(PG(http_globals)[TRACK_VARS_ENV]) == IS_ARRAY && in litespeed_php_import_environment_variables()
252 ZVAL_DUP(array_ptr, &PG(http_globals)[TRACK_VARS_ENV]); in litespeed_php_import_environment_variables()
259 ZVAL_DUP(array_ptr, &PG(http_globals)[TRACK_VARS_SERVER]); in litespeed_php_import_environment_variables()
263 if (PG(http_globals)[TRACK_VARS_ENV] && in litespeed_php_import_environment_variables()
264 array_ptr != PG(http_globals)[TRACK_VARS_ENV] && in litespeed_php_import_environment_variables()
265 Z_TYPE_P(PG(http_globals)[TRACK_VARS_ENV]) == IS_ARRAY && in litespeed_php_import_environment_variables()
269 *array_ptr = *PG(http_globals)[TRACK_VARS_ENV]; in litespeed_php_import_environment_variables()
273 } else if (PG(http_globals)[TRACK_VARS_SERVER] && in litespeed_php_import_environment_variables()
274 array_ptr != PG(http_globals)[TRACK_VARS_SERVER] && in litespeed_php_import_environment_variables()
279 *array_ptr = *PG(http_globals)[TRACK_VARS_SERVER]; in litespeed_php_import_environment_variables()
[all …]
/PHP-5.5/ext/mbstring/
H A Dmb_gpc.c82 PG(http_globals)[TRACK_VARS_POST] = array_ptr; in ZEND_EXTERN_MODULE_GLOBALS()
85 PG(http_globals)[TRACK_VARS_GET] = array_ptr; in ZEND_EXTERN_MODULE_GLOBALS()
88 PG(http_globals)[TRACK_VARS_COOKIE] = array_ptr; in ZEND_EXTERN_MODULE_GLOBALS()
131 separator = (char *) estrdup(PG(arg_separator).input); in ZEND_EXTERN_MODULE_GLOBALS()
258 if (n > (PG(max_input_vars) * 2)) { in _php_mb_encoding_handler_ex()
259 …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.5/sapi/fpm/fpm/
H A Dfpm_main.c574 if (PG(http_globals)[TRACK_VARS_ENV] && in cgi_php_import_environment_variables()
575 array_ptr != PG(http_globals)[TRACK_VARS_ENV] && in cgi_php_import_environment_variables()
576 Z_TYPE_P(PG(http_globals)[TRACK_VARS_ENV]) == IS_ARRAY && in cgi_php_import_environment_variables()
580 *array_ptr = *PG(http_globals)[TRACK_VARS_ENV]; in cgi_php_import_environment_variables()
584 } else if (PG(http_globals)[TRACK_VARS_SERVER] && in cgi_php_import_environment_variables()
585 array_ptr != PG(http_globals)[TRACK_VARS_SERVER] && in cgi_php_import_environment_variables()
590 *array_ptr = *PG(http_globals)[TRACK_VARS_SERVER]; in cgi_php_import_environment_variables()
761 entry->expires = request_time + PG(user_ini_cache_ttl);
793 (PG(user_ini_filename) && *PG(user_ini_filename))
814 if (PG(user_ini_filename) && *PG(user_ini_filename)) {
[all …]
H A Dfpm_php.c101 PG(disable_functions) = v; in fpm_php_apply_defines_ex()
108 PG(disable_classes) = v; in fpm_php_apply_defines_ex()
/PHP-5.5/sapi/apache_hooks/
H A Dsapi_apache.c82 php_register_variable_ex("request", req, PG(http_globals)[TRACK_VARS_SERVER] TSRMLS_CC); in apache_php_module_hook()
86 …php_register_variable("PHP_SELF_HOOK", handler->name, PG(http_globals)[TRACK_VARS_SERVER] TSRMLS_C… in apache_php_module_hook()
/PHP-5.5/sapi/cgi/
H A Dcgi_main.c629 if (PG(http_globals)[TRACK_VARS_ENV] && in cgi_php_import_environment_variables()
630 array_ptr != PG(http_globals)[TRACK_VARS_ENV] && in cgi_php_import_environment_variables()
635 *array_ptr = *PG(http_globals)[TRACK_VARS_ENV]; in cgi_php_import_environment_variables()
639 } else if (PG(http_globals)[TRACK_VARS_SERVER] && in cgi_php_import_environment_variables()
645 *array_ptr = *PG(http_globals)[TRACK_VARS_SERVER]; in cgi_php_import_environment_variables()
861 (PG(user_ini_filename) && *PG(user_ini_filename))
882 if (PG(user_ini_filename) && *PG(user_ini_filename)) {
1202 if (!env_document_root && PG(doc_root)) {
2286 int slen = strlen(PG(arg_separator).input);
2302 strlcat(s, PG(arg_separator).input, len);
[all …]
/PHP-5.5/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.5/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.5/ext/standard/
H A Ddir.c500 if (PG(open_basedir) && *PG(open_basedir)) { in PHP_FUNCTION()
512 if (PG(open_basedir) && *PG(open_basedir)) { in PHP_FUNCTION()
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()
H A Ddl.c63 if (!PG(enable_dl)) { in PHP_FUNCTION()
114 extension_dir = PG(extension_dir); in php_load_extension()
/PHP-5.5/ext/zip/
H A Dphp_zip.h49 …(PG(safe_mode) && (!php_checkuid(filename, NULL, CHECKUID_CHECK_FILE_AND_DIR))) || php_check_open_…
/PHP-5.5/sapi/caudium/
H A Dcaudium.c217 PG(connection_status) = PHP_CONNECTION_ABORTED; in php_caudium_low_ub_write()
229 PG(connection_status) = PHP_CONNECTION_ABORTED; in php_caudium_low_ub_write()
258 PG(connection_status) = PHP_CONNECTION_ABORTED; in php_caudium_sapi_ub_write()
366 PG(connection_status) = PHP_CONNECTION_ABORTED; in php_caudium_low_send_headers()
406 PG(connection_status) = PHP_CONNECTION_ABORTED; in php_caudium_low_read_post()
/PHP-5.5/sapi/roxen/
H A Droxen.c222 PG(connection_status) = PHP_CONNECTION_ABORTED; in php_roxen_low_ub_write()
264 PG(connection_status) = PHP_CONNECTION_ABORTED; in php_roxen_sapi_ub_write()
358 PG(connection_status) = PHP_CONNECTION_ABORTED; in php_roxen_low_send_headers()
400 PG(connection_status) = PHP_CONNECTION_ABORTED; in php_roxen_low_read_post()
/PHP-5.5/ext/pdo_mysql/
H A Dmysql_driver.c633 if ((PG(open_basedir) && PG(open_basedir)[0] != '\0') || PG(safe_mode))
635 if (PG(open_basedir) && PG(open_basedir)[0] != '\0')
/PHP-5.5/ext/readline/
H A Dreadline_cli.c595 if (PG(auto_prepend_file) && PG(auto_prepend_file)[0]) { in readline_shell_run()
599 prepend_file.filename = PG(auto_prepend_file); in readline_shell_run()

Completed in 86 milliseconds

123