0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-09-16 18:05:18 +00:00

conditionally call DisposePlatform or ShutdownPlatform

This commit is contained in:
Stefan Siegl 2022-06-24 22:24:52 +02:00
parent 23cc21c5b8
commit 32d8dd8dec

View File

@ -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;
}