0
0
mirror of https://github.com/phpv8/v8js.git synced 2025-01-03 11:21:51 +00:00

Fix to start timer thread when there is a memory limit but no time limit.

This commit is contained in:
Simon Best 2013-04-14 12:23:39 +01:00
parent e778b6d7af
commit ef8620f0c2

View File

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