From e21a2e05e499e204779d201b76280cb3f20bd392 Mon Sep 17 00:00:00 2001 From: Alexander Kuzmenko Date: Mon, 22 Aug 2016 23:35:48 +0300 Subject: [PATCH] [php] set_error_handler --- std/php7/Global.hx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/std/php7/Global.hx b/std/php7/Global.hx index 05cc819dc31..d6a30a24ae2 100644 --- a/std/php7/Global.hx +++ b/std/php7/Global.hx @@ -9,11 +9,29 @@ import haxe.extern.Rest; **/ @:phpGlobal extern class Global { + /** + @see http://php.net/manual/en/function.exit.php + **/ + static function exit( status:EitherType ) : Void ; + + /** + @see http://php.net/manual/en/function.exit.php + **/ + static function die( status:EitherType ) : Void ; + /** @see http://php.net/manual/en/function.error-reporting.php **/ static function error_reporting( level:Int ) : Int ; + /** + @see http://php.net/manual/en/function.set-error-handler.php + **/ + @:overload(function( error_handler:Int->String->Bool, error_types:Int ) : Dynamic {}) + @:overload(function( error_handler:Int->String->String->Bool, error_types:Int ) : Dynamic {}) + @:overload(function( error_handler:Int->String->String->Int->Bool, error_types:Int ) : Dynamic {}) + static function set_error_handler( error_handler:NullString->String->Int->Array->Bool>, error_types:Int ) : Dynamic ; + /** @see http://php.net/manual/en/function.is-int.php **/