You appear to be a bot. Output may be restricted
Description
Catches PHP errors. Must be used in conjunction with output buffering.
Usage
Jetpack::catch_errors( $catch );
Parameters
- $catch
- ( bool ) required – True to start catching, False to stop.
Returns
void
Source
File name: jetpack/class.jetpack.php
Lines:
1 to 13 of 13
public static function catch_errors( $catch ) { static $display_errors, $error_reporting; if ( $catch ) { $display_errors = @ini_set( 'display_errors', 1 ); $error_reporting = @error_reporting( E_ALL ); add_action( 'shutdown', array( 'Jetpack', 'catch_errors_on_shutdown' ), 0 ); } else { @ini_set( 'display_errors', $display_errors ); @error_reporting( $error_reporting ); remove_action( 'shutdown', array( 'Jetpack', 'catch_errors_on_shutdown' ), 0 ); } }