0
0
mirror of https://github.com/phpv8/v8js.git synced 2025-03-11 20:08:43 +00:00

Fix non-ZTS build.

This commit is contained in:
Stefan Siegl 2015-09-27 09:25:58 +02:00
parent 34ca8500b1
commit b292715c75

10
v8js.cc
View File

@ -140,7 +140,15 @@ static PHP_MSHUTDOWN_FUNCTION(v8js)
{
UNREGISTER_INI_ENTRIES();
if(v8js_process_globals.v8_initialized) {
bool v8_initialized;
#ifdef ZTS
v8_initialized = v8js_process_globals.v8_initialized;
#else
v8_initialized = V8JSG(v8_initialized);
#endif
if(v8_initialized) {
v8::V8::Dispose();
#if !defined(_WIN32) && PHP_V8_API_VERSION >= 3029036
v8::V8::ShutdownPlatform();