diff --git a/src/php_error.php b/src/php_error.php index fa55cd5..cf160b7 100644 --- a/src/php_error.php +++ b/src/php_error.php @@ -1278,6 +1278,15 @@ public function __construct( $options=null ) { $this->startBuffer(); } + /** + * Returns current global handler, or null if there is none. + * + * @return ErrorHandler */ + public static function globalHandler() { + global $_php_error_global_handler; + return $_php_error_global_handler; + } + /* * --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- * Public Functions