Home
last modified time | relevance | path

Searched refs:PG (Results 1 – 25 of 66) sorted by last modified time

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 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 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_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 …]
/PHP-7.4/main/streams/
H A Dstreams.c176 if (PG(html_errors)) { in php_stream_display_wrapper_errors()
1929 (!PG(allow_url_fopen) ||
1931 PG(in_user_include)) && !PG(allow_url_include)))) {
1934 if (!PG(allow_url_fopen)) {
/PHP-7.4/ext/libxml/
H A Dlibxml.c762 if (xmlGenericError == php_libxml_error_handler && PG(modules_activated)) { in _php_libxml_pre_ext_ent_loader()
/PHP-7.4/ext/mbstring/
H A Dmbstring.c2176 info.separator = PG(arg_separator).input; in PHP_FUNCTION()
/PHP-7.4/ext/curl/
H A Dinterface.c140 if (PG(open_basedir) && *PG(open_basedir)) { in php_curl_option_url()
2579 (PG(open_basedir) && *PG(open_basedir)) && (lval & CURLPROTO_FILE)) { in _php_curl_setopt()
2955 if (lval && PG(open_basedir) && *PG(open_basedir)) { in _php_curl_setopt()
/PHP-7.4/ext/phar/
H A Dphar_object.c58 if (Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) == IS_UNDEF) { in phar_mung_server_vars()
62 _SERVER = Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER]); in phar_mung_server_vars()
605 if (Z_TYPE(PG(http_globals)[TRACK_VARS_SERVER]) != IS_UNDEF) { in PHP_METHOD()
606 HashTable *_server = Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER]); in PHP_METHOD()
H A Dutil.c308 …ntf(&path, MAXPATHLEN + 1 + strlen(PG(include_path)), "phar://%s/%s%c%s", arch, PHAR_G(cwd), DEFAU… in phar_find_in_include_path()
/PHP-7.4/ext/opcache/
H A DZendAccelerator.c1794 if (PG(auto_globals_jit)) { in opcache_compile_file()
4349 orig_open_basedir = PG(open_basedir); in accel_preload()
4350 PG(open_basedir) = NULL; in accel_preload()
4398 PG(open_basedir) = orig_open_basedir; in accel_preload()
4412 if (PG(auto_globals_jit)) { in accel_preload()
4848 orig_report_memleaks = PG(report_memleaks); in accel_finish_startup()
4849 PG(report_memleaks) = 0; in accel_finish_startup()
4856 PG(report_memleaks) = orig_report_memleaks; in accel_finish_startup()
/PHP-7.4/ext/mysqli/
H A Dmysqli_api.c1775 if (PG(open_basedir) && PG(open_basedir)[0] != '\0') {
/PHP-7.4/ext/json/
H A Djson_encoder.c105 php_gcvt(d, (int)PG(serialize_precision), '.', 'e', num); in php_json_encode_double()
/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/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 …]
/PHP-7.4/sapi/cli/
H A Dphp_cli.c954 PG(during_request_startup) = 0; in do_cli()
H A Dphp_cli_server.c1176 if (PG(last_error_message)) { in php_cli_server_log_response()
1177 switch (PG(last_error_type)) { in php_cli_server_log_response()
1225 …spprintf(&error_buf, 0, " - %s in %s on line %d", PG(last_error_message), PG(last_error_file), PG(… in php_cli_server_log_response()
2195 PG(during_request_startup) = 0; in php_cli_server_request_startup()
/PHP-7.4/ext/standard/
H A Dvar.c511 php_gcvt(Z_DVAL_P(struc), (int)PG(serialize_precision), '.', 'E', tmp_str); in php_var_export_ex()
1000 php_gcvt(Z_DVAL_P(struc), (int)PG(serialize_precision), '.', 'E', tmp_str); in php_var_serialize_intern()
/PHP-7.4/ext/pdo_mysql/
H A Dmysql_driver.c697 if (PG(open_basedir) && PG(open_basedir)[0] != '\0') {
/PHP-7.4/ext/odbc/
H A Dphp_odbc.c431 if (res->stmt && !(PG(connection_status) & PHP_CONNECTION_TIMEOUT)) { in ZEND_GET_MODULE()
485 if (!(PG(connection_status) & PHP_CONNECTION_TIMEOUT)) { in _close_odbc_conn()
513 if (!(PG(connection_status) & PHP_CONNECTION_TIMEOUT)) { in _close_odbc_pconn()
570 if (PG(html_errors)) { in PHP_INI_DISP()
/PHP-7.4/ext/session/
H A Dsession.c541 if (PG(modules_activated) && !tmp) { in PHP_INI_MH()
580 if (PG(modules_activated) && !tmp) { in PHP_INI_MH()
641 if (PG(open_basedir) && *p && php_check_open_basedir(p)) { in PHP_INI_MH()
1573 …(data = zend_hash_str_find(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER]), "REQUEST_URI", sizeof("R… in php_session_start()
1587 !Z_ISUNDEF(PG(http_globals)[TRACK_VARS_SERVER]) && in php_session_start()
1588 …(data = zend_hash_str_find(Z_ARRVAL(PG(http_globals)[TRACK_VARS_SERVER]), "HTTP_REFERER", sizeof("… in php_session_start()
3076 if (Z_ISUNDEF(PG(http_globals)[where])) { in early_find_sid_in()
3080 …if ((ppid = zend_hash_str_find(Z_ARRVAL(PG(http_globals)[where]), PS(session_name), progress->snam… in early_find_sid_in()
/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/sapi/phpdbg/
H A Dphpdbg_prompt.c441 php_build_argv(NULL, &PG(http_globals)[TRACK_VARS_SERVER]); in PHPDBG_COMMAND()
875 php_build_argv(NULL, &PG(http_globals)[TRACK_VARS_SERVER]); in PHPDBG_COMMAND()
/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()

Completed in 166 milliseconds

123