mirror of
https://github.com/phpv8/v8js.git
synced 2024-12-22 19:51:51 +00:00
Merge pull request #503 from marekskopal/php8_0-build-fix
Fixed build on PHP 8.0.x
This commit is contained in:
commit
7c40690ec0
@ -38,7 +38,11 @@ v8::Local<v8::Value> v8js_propagate_exception(v8js_ctx *ctx) /* {{{ */
|
|||||||
{
|
{
|
||||||
v8::Local<v8::Value> return_value = v8::Null(ctx->isolate);
|
v8::Local<v8::Value> return_value = v8::Null(ctx->isolate);
|
||||||
|
|
||||||
|
#if PHP_VERSION_ID < 80100
|
||||||
|
if (!(ctx->flags & V8JS_FLAG_PROPAGATE_PHP_EXCEPTIONS) || zend_is_unwind_exit(EG(exception))) {
|
||||||
|
#else
|
||||||
if (!(ctx->flags & V8JS_FLAG_PROPAGATE_PHP_EXCEPTIONS) || zend_is_graceful_exit(EG(exception)) || zend_is_unwind_exit(EG(exception))) {
|
if (!(ctx->flags & V8JS_FLAG_PROPAGATE_PHP_EXCEPTIONS) || zend_is_graceful_exit(EG(exception)) || zend_is_unwind_exit(EG(exception))) {
|
||||||
|
#endif
|
||||||
v8js_terminate_execution(ctx->isolate);
|
v8js_terminate_execution(ctx->isolate);
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user