Skip to content

Commit

Permalink
Merge pull request #503 from marekskopal/php8_0-build-fix
Browse files Browse the repository at this point in the history
Fixed build on PHP 8.0.x
  • Loading branch information
stesie authored Feb 8, 2023
2 parents 37cdb6f + e06b382 commit 7c40690
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions v8js_object_export.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ v8::Local<v8::Value> v8js_propagate_exception(v8js_ctx *ctx) /* {{{ */
{
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))) {
#endif
v8js_terminate_execution(ctx->isolate);
return return_value;
}
Expand Down

0 comments on commit 7c40690

Please sign in to comment.