Lines Matching refs:PG

179 		PG(memory_limit) = zend_atol(new_value, new_value_length);  in PHP_INI_MH()
181 PG(memory_limit) = 1<<30; /* effectively, no limit */ in PHP_INI_MH()
183 return zend_set_memory_limit(PG(memory_limit)); in PHP_INI_MH()
198 e = PG(disable_functions) = strdup(INI_STR("disable_functions")); in php_disable_functions()
236 e = PG(disable_classes) = strdup(INI_STR("disable_classes")); in php_disable_classes()
271 PG(php_binary) = NULL; in php_binary_init()
310 PG(php_binary) = binary_location; in php_binary_init()
365 PG(display_errors) = (zend_bool) php_get_display_errors_mode(new_value, new_value_length); in PHP_INI_MH()
425 if (PG(open_basedir) && php_check_open_basedir(new_value TSRMLS_CC)) { in PHP_INI_MH()
440 if (PG(open_basedir) && php_check_open_basedir(new_value TSRMLS_CC)) { in PHP_INI_MH()
614 if (PG(in_error_log)) { in php_log_err()
618 PG(in_error_log) = 1; in php_log_err()
621 if (PG(error_log) != NULL) { in php_log_err()
623 if (!strcmp(PG(error_log), "syslog")) { in php_log_err()
625 PG(in_error_log) = 0; in php_log_err()
629 fd = VCWD_OPEN_MODE(PG(error_log), O_CREAT | O_APPEND | O_WRONLY, 0644); in php_log_err()
653 PG(in_error_log) = 0; in php_log_err()
663 PG(in_error_log) = 0; in php_log_err()
718 if (PG(html_errors)) { in php_verror()
776 if (PG(html_errors)) { in php_verror()
810 if (docref && is_function && PG(html_errors) && strlen(PG(docref_root))) { in php_verror()
816 docref_root = PG(docref_root); in php_verror()
833 if (PG(docref_ext) && strlen(PG(docref_ext))) { in php_verror()
834 spprintf(&docref_buf, 0, "%s%s", ref, PG(docref_ext)); in php_verror()
840 if (PG(html_errors)) { in php_verror()
856 if (PG(track_errors) && module_initialized && in php_verror()
952 buffer_len = vspprintf(&buffer, PG(log_errors_max_len), format, args); in php_error_cb()
955 if (PG(ignore_repeated_errors) && PG(last_error_message)) { in php_error_cb()
958 if (strcmp(PG(last_error_message), buffer) in php_error_cb()
959 || (!PG(ignore_repeated_source) in php_error_cb()
960 && ((PG(last_error_lineno) != (int)error_lineno) in php_error_cb()
961 || strcmp(PG(last_error_file), error_filename)))) { in php_error_cb()
975 if (PG(last_error_message)) { in php_error_cb()
976 free(PG(last_error_message)); in php_error_cb()
977 PG(last_error_message) = NULL; in php_error_cb()
979 if (PG(last_error_file)) { in php_error_cb()
980 free(PG(last_error_file)); in php_error_cb()
981 PG(last_error_file) = NULL; in php_error_cb()
989 PG(last_error_type) = type; in php_error_cb()
990 PG(last_error_message) = strdup(buffer); in php_error_cb()
991 PG(last_error_file) = strdup(error_filename); in php_error_cb()
992 PG(last_error_lineno) = error_lineno; in php_error_cb()
1028 && (PG(log_errors) || PG(display_errors) || (!module_initialized))) { in php_error_cb()
1066 if (!module_initialized || PG(log_errors)) { in php_error_cb()
1069 if ((type == E_CORE_ERROR || type == E_CORE_WARNING) && PG(display_startup_errors)) { in php_error_cb()
1078 …if (PG(display_errors) && ((module_initialized && !PG(during_request_startup)) || (PG(display_star… in php_error_cb()
1079 if (PG(xmlrpc_errors)) { in php_error_cb()
1080 …e %d</string></value></member></struct></value></fault></methodResponse>", PG(xmlrpc_error_number)… in php_error_cb()
1085 if (PG(html_errors)) { in php_error_cb()
1097 PG(display_errors) == PHP_DISPLAY_ERRORS_STDERR in php_error_cb()
1112 if (PG(report_zend_debug)) { in php_error_cb()
1154 if (!PG(display_errors) && in php_error_cb()
1170 zend_set_memory_limit(PG(memory_limit)); in php_error_cb()
1187 if (PG(track_errors) && module_initialized) { in php_error_cb()
1371 return php_resolve_path(filename, filename_len, PG(include_path) TSRMLS_CC); in php_resolve_path_for_zend()
1396 … inclusion (include_path='%s')", php_strip_url_passwd((char *) data), STR_PRINT(PG(include_path))); in php_message_handler_for_zend()
1399 …uired '%s' (include_path='%s')", php_strip_url_passwd((char *) data), STR_PRINT(PG(include_path))); in php_message_handler_for_zend()
1476 PG(connection_status) |= PHP_CONNECTION_TIMEOUT; in php_on_timeout()
1478 if(PG(exit_on_timeout)) sapi_terminate_process(TSRMLS_C); in php_on_timeout()
1504 PG(during_request_startup) = 1; in php_start_sapi()
1507 PG(modules_activated) = 0; in php_start_sapi()
1508 PG(header_is_being_sent) = 0; in php_start_sapi()
1509 PG(connection_status) = PHP_CONNECTION_NORMAL; in php_start_sapi()
1514 PG(modules_activated)=1; in php_start_sapi()
1538 PG(com_initialized) = 0; in php_request_startup()
1546 PG(in_error_log) = 0; in php_request_startup()
1547 PG(during_request_startup) = 1; in php_request_startup()
1552 PG(modules_activated) = 0; in php_request_startup()
1553 PG(header_is_being_sent) = 0; in php_request_startup()
1554 PG(connection_status) = PHP_CONNECTION_NORMAL; in php_request_startup()
1555 PG(in_user_include) = 0; in php_request_startup()
1564 if (PG(max_input_time) == -1) { in php_request_startup()
1567 zend_set_timeout(PG(max_input_time), 1); in php_request_startup()
1571 if (PG(open_basedir) && *PG(open_basedir)) { in php_request_startup()
1575 if (PG(expose_php)) { in php_request_startup()
1579 if (PG(output_handler) && PG(output_handler)[0]) { in php_request_startup()
1583 ZVAL_STRING(oh, PG(output_handler), 1); in php_request_startup()
1586 } else if (PG(output_buffering)) { in php_request_startup()
1587 …php_output_start_user(NULL, PG(output_buffering) > 1 ? PG(output_buffering) : 0, PHP_OUTPUT_HANDLE… in php_request_startup()
1588 } else if (PG(implicit_flush)) { in php_request_startup()
1597 PG(modules_activated)=1; in php_request_startup()
1624 PG(during_request_startup) = 1; in php_request_startup()
1625 if (PG(expose_php)) { in php_request_startup()
1678 if (PG(modules_activated)) zend_try { in php_request_shutdown_for_hook()
1682 if (PG(modules_activated)) { in php_request_shutdown_for_hook()
1695 if (PG(http_globals)[i]) { in php_request_shutdown_for_hook()
1696 zval_ptr_dtor(&PG(http_globals)[i]); in php_request_shutdown_for_hook()
1733 report_memleaks = PG(report_memleaks); in php_request_shutdown()
1744 if (PG(modules_activated)) zend_try { in php_request_shutdown()
1757 if (CG(unclean_shutdown) && PG(last_error_type) == E_ERROR && in php_request_shutdown()
1758 (size_t)PG(memory_limit) < zend_memory_usage(1 TSRMLS_CC) in php_request_shutdown()
1776 if (PG(modules_activated)) { in php_request_shutdown()
1791 if (PG(http_globals)[i]) { in php_request_shutdown()
1792 zval_ptr_dtor(&PG(http_globals)[i]); in php_request_shutdown()
1798 if (PG(last_error_message)) { in php_request_shutdown()
1799 free(PG(last_error_message)); in php_request_shutdown()
1800 PG(last_error_message) = NULL; in php_request_shutdown()
1802 if (PG(last_error_file)) { in php_request_shutdown()
1803 free(PG(last_error_file)); in php_request_shutdown()
1804 PG(last_error_file) = NULL; in php_request_shutdown()
1837 if (PG(com_initialized)) { in php_request_shutdown()
1839 PG(com_initialized) = 0; in php_request_shutdown()
1854 if (!PG(com_initialized)) { in php_com_initialize()
1856 PG(com_initialized) = 1; in php_com_initialize()
1950 if(PG(windows_show_crt_warning)) { in dummy_invalid_parameter_handler()
2067 PG(header_is_being_sent) = 0; in php_module_startup()
2072 PG(connection_status) = PHP_CONNECTION_NORMAL; in php_module_startup()
2073 PG(during_request_startup) = 0; in php_module_startup()
2074 PG(last_error_message) = NULL; in php_module_startup()
2075 PG(last_error_file) = NULL; in php_module_startup()
2076 PG(last_error_lineno) = 0; in php_module_startup()
2079 PG(disable_functions) = NULL; in php_module_startup()
2080 PG(disable_classes) = NULL; in php_module_startup()
2154 if (PG(php_binary)) { in php_module_startup()
2155 …REGISTER_MAIN_STRINGL_CONSTANT("PHP_BINARY", PG(php_binary), strlen(PG(php_binary)), CONST_PERSIST… in php_module_startup()
2177 if (PG(open_basedir) && *PG(open_basedir)) { in php_module_startup()
2447 PG(during_request_startup) = 0; in php_execute_script()
2477 if (PG(auto_prepend_file) && PG(auto_prepend_file)[0]) { in php_execute_script()
2478 prepend_file.filename = PG(auto_prepend_file); in php_execute_script()
2487 if (PG(auto_append_file) && PG(auto_append_file)[0]) { in php_execute_script()
2488 append_file.filename = PG(auto_append_file); in php_execute_script()
2496 if (PG(max_input_time) != -1) { in php_execute_script()
2540 PG(during_request_startup) = 0; in php_execute_simple_script()
2564 PG(connection_status) = PHP_CONNECTION_ABORTED; in php_handle_aborted_connection()
2567 if (!PG(ignore_user_abort)) { in php_handle_aborted_connection()