Skip to content

Commit

Permalink
[php] set_error_handler
Browse files Browse the repository at this point in the history
  • Loading branch information
RealyUniqueName committed Aug 22, 2016
1 parent 829e225 commit e21a2e0
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions std/php7/Global.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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<String,Int> ) : Void ;

/**
@see http://php.net/manual/en/function.exit.php
**/
static function die( status:EitherType<String,Int> ) : 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:Null<Int->String->String->Int->Array<Dynamic>->Bool>, error_types:Int ) : Dynamic ;

/**
@see http://php.net/manual/en/function.is-int.php
**/
Expand Down

0 comments on commit e21a2e0

Please sign in to comment.