Server IP : 192.158.238.246 / Your IP : 3.21.43.72 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/7779/task/7779/cwd/plugins/woocommerce/vendor/automattic/jetpack-status/src/ |
Upload File : |
<?php /** * An errors utility class for Jetpack. * * @package automattic/jetpack-status */ // phpcs:disable WordPress.PHP.IniSet.display_errors_Disallowed // phpcs:disable WordPress.PHP.NoSilencedErrors.Discouraged // phpcs:disable WordPress.PHP.DevelopmentFunctions.prevent_path_disclosure_error_reporting // phpcs:disable WordPress.PHP.DiscouragedPHPFunctions.runtime_configuration_error_reporting namespace Automattic\Jetpack; /** * Erros class. * * @deprecated since 3.2.0 */ class Errors { /** * Catches PHP errors. Must be used in conjunction with output buffering. * * @deprecated since 3.2.0 * @param bool $catch True to start catching, False to stop. * * @static */ public function catch_errors( $catch ) { _deprecated_function( __METHOD__, '3.2.0' ); static $display_errors, $error_reporting; if ( $catch ) { // Force error reporting and output, store original values. $display_errors = @ini_set( 'display_errors', 1 ); $error_reporting = @error_reporting( E_ALL ); if ( class_exists( 'Jetpack' ) ) { add_action( 'shutdown', array( 'Jetpack', 'catch_errors_on_shutdown' ), 0 ); } } else { // Restore the original values for error reporting and output. @ini_set( 'display_errors', $display_errors ); @error_reporting( $error_reporting ); if ( class_exists( 'Jetpack' ) ) { remove_action( 'shutdown', array( 'Jetpack', 'catch_errors_on_shutdown' ), 0 ); } } } }