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:
parent
e778b6d7af
commit
ef8620f0c2
2
v8js.cc
2
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
|
||||
|
Loading…
Reference in New Issue
Block a user