|
@@ -779,7 +779,12 @@ static PHP_METHOD(V8Js, __construct)
|
|
|
c->pending_exception = NULL;
|
|
|
c->in_execution = 0;
|
|
|
c->isolate = v8::Isolate::New();
|
|
|
+#if PHP_V8_API_VERSION <= 3023008
|
|
|
+ /* Until V8 3.23.8 Isolate could only take one external pointer. */
|
|
|
+ c->isolate->SetData(c);
|
|
|
+#else
|
|
|
c->isolate->SetData(0, c);
|
|
|
+#endif
|
|
|
c->time_limit_hit = false;
|
|
|
c->memory_limit_hit = false;
|
|
|
c->module_loader = NULL;
|