From ef8620f0c2f0b19b00817f5d7b5e038777c27883 Mon Sep 17 00:00:00 2001 From: Simon Best Date: Sun, 14 Apr 2013 12:23:39 +0100 Subject: [PATCH] Fix to start timer thread when there is a memory limit but no time limit. --- v8js.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v8js.cc b/v8js.cc index 4510fdd..6aaa0ff 100644 --- a/v8js.cc +++ b/v8js.cc @@ -776,7 +776,7 @@ static PHP_METHOD(V8Js, executeString) /* Set flags for runtime use */ V8JS_GLOBAL_SET_FLAGS(flags); - if (time_limit > 0) { + if (time_limit > 0 || memory_limit > 0) { // If timer thread is not running then start it if (!V8JSG(timer_thread)) { // If not, start timer thread