Skip to content

Commit 7c40690

Browse files
authored
Merge pull request #503 from marekskopal/php8_0-build-fix
Fixed build on PHP 8.0.x
2 parents 37cdb6f + e06b382 commit 7c40690

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

v8js_object_export.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ v8::Local<v8::Value> v8js_propagate_exception(v8js_ctx *ctx) /* {{{ */
3838
{
3939
v8::Local<v8::Value> return_value = v8::Null(ctx->isolate);
4040

41+
#if PHP_VERSION_ID < 80100
42+
if (!(ctx->flags & V8JS_FLAG_PROPAGATE_PHP_EXCEPTIONS) || zend_is_unwind_exit(EG(exception))) {
43+
#else
4144
if (!(ctx->flags & V8JS_FLAG_PROPAGATE_PHP_EXCEPTIONS) || zend_is_graceful_exit(EG(exception)) || zend_is_unwind_exit(EG(exception))) {
45+
#endif
4246
v8js_terminate_execution(ctx->isolate);
4347
return return_value;
4448
}

0 commit comments

Comments
 (0)