Closed rosmo closed 10 years ago
I think it the issue is probably that the fatal error handler should only be triggered when E_ERROR, E_CORE_ERROR or E_USER_ERROR is set. Otherwise just jump back to old error handler.
Would this be an approriate fix? Seems to work for me: https://github.com/rosmo/v8js/commit/cbda704d7e72a8e208d184c3a678752f24cbff53
Hi @rosmo,
good catch, I should have tested warning/notice behaviour initially... sorry for that.
Anyways, thanks for your patch! I just merged it with two minor tweaks:
true
.V8JSG(old_error_handler)
must be initialized to NULL manually on ZTScheers ~stesie
Awesome, thanks!
This only seems to happen in Apache (at least a simple test from command line triggering "Array to string conversion" did not crash):
This started happening consistently right after the unwind patch.