Skip to content

Commit cae3ece

Browse files
committed
only output a warning in timer debug mode
1 parent 73139df commit cae3ece

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Zend/zend_max_execution_timer.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ ZEND_API void zend_max_execution_timer_init(void) /* {{{ */
4343
sev.sigev_signo = SIGRTMIN;
4444
sev.sigev_notify_thread_id = (pid_t) syscall(SYS_gettid);
4545

46-
EG(pid) = getpid();
4746
// Now check to see if a we've already set a signal handler
4847
if(is_handler_set) {
49-
// emit a warning and return
50-
zend_error(E_WARNING, "A max execution timer was already configured and will not be configured again.");
48+
# ifdef MAX_EXECUTION_TIMERS_DEBUG
49+
fprintf(stderr, "A max execution timer was already configured and will not be configured again on thread %d\n", sev.sigev_notify_thread_id);
50+
# endif
5151
return;
5252
}
5353

0 commit comments

Comments
 (0)