-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Global error handler #22
Comments
Well, the error_handler has a pretty complicated signature and I'm not sure what this errcontext really is and also it can return a string or an array but basically it would be something like this: @:phpGlobal
extern ErrorHandling {
static function set_error_handler(handler:Int->String->?String->?Int->?NativeArray->Bool, types:Int):String;
} The problem is that you can't pass in a function directly here, I think only a closure would work. Maybe a |
I don't see any problem here. |
Yeah, but you can't pass |
I think those will be wrapped in anonymous functions : var q = MyClass.method; $q = function () {return MyClass::method()}; |
I had this idea as well, but there was a problem, but I don't remember (of course). |
|
Implemented in e21a2e0 |
* Fix unix impl of sys_filetime * indent
Implemented in e21a2e0
PHP provides an ability to globally handle errors, warnings and notices.
Need to implement access to this function from Haxe side.
http://php.net/manual/en/function.set-error-handler.php
The text was updated successfully, but these errors were encountered: