public/wordpress/wp-content/plugins/backupbuddy/classes/restore.php
/*	shutdown_function()
	 *	
	 *	Used for catching fatal PHP errors during backup to write to log for debugging.
	 *	
	 *	@return		null
	 */


Used for catching fatal PHP errors during backup to write to log for debugging.

@return         null
Used for catching fatal PHP errors during backup to write to log for debugging . @return null
public function shutdown_function() {
		$e = error_get_last();
		if ( $e === NULL ) { 
			return;
		} else { 
			if ( !is_array( $e ) || ( $e['type'] != E_ERROR ) && ( $e['type'] != E_USER_ERROR ) ) { 
				return;
			}
		}
		$e_string = '';
		foreach( (array)$e as $e_line_title => $e_line ) {
			$e_string .= $e_line_title . ' => ' . $e_line . "\n";
		}
		pb_backupbuddy::status( 'error', 'FATAL PHP ERROR: ' . $e_string );
	}
public function shutdown_function ( ) { $ e = error_get_last ( ) ; if ( $ e === NULL ) { return ; } else { if ( ! is_array ( $ e ) || ( $ e [ 'type' ] != E_ERROR ) && ( $ e [ 'type' ] != E_USER_ERROR ) ) { return ; } } $ e_string = '' ; foreach ( ( array ) $ e as $ e_line_title => $ e_line ) { $ e_string .= $ e_line_title . ' => ' . $ e_line . " \n " ; } pb_backupbuddy :: status ( 'error' , 'FATAL PHP ERROR: ' . $ e_string ) ; }
shutdown_function()
shutdown_function ()
// Get error message. // Error types: http://php.net/manual/en/errorfunc.constants.php // No error of any kind. // Some type of error. // Return if not a fatal error.