From 32d8dd8dec073b000ee42570e60fecb5881b0f72 Mon Sep 17 00:00:00 2001 From: Stefan Siegl Date: Fri, 24 Jun 2022 22:24:52 +0200 Subject: [PATCH] conditionally call DisposePlatform or ShutdownPlatform --- v8js_main.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/v8js_main.cc b/v8js_main.cc index 5fa08e7..51efd71 100644 --- a/v8js_main.cc +++ b/v8js_main.cc @@ -162,7 +162,11 @@ static PHP_MSHUTDOWN_FUNCTION(v8js) if(v8_initialized) { v8::V8::Dispose(); +#if PHP_V8_API_VERSION >= 10000000 v8::V8::DisposePlatform(); +#else + v8::V8::ShutdownPlatform(); +#endif // @fixme call virtual destructor somehow //delete v8js_process_globals.v8_platform; }