Skip to content

Commit 9de65b1

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

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Zend/zend_max_execution_timer.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,12 @@ ZEND_API void zend_max_execution_timer_init(void) /* {{{ */
4444
sev.sigev_notify_thread_id = (pid_t) syscall(SYS_gettid);
4545

4646
EG(pid) = getpid();
47+
4748
// Now check to see if a we've already set a signal handler
4849
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.");
50+
# ifdef MAX_EXECUTION_TIMERS_DEBUG
51+
fprintf(stderr, "A max execution timer was already configured and will not be configured again on thread %d\n", sev.sigev_notify_thread_id);
52+
# endif
5153
return;
5254
}
5355

0 commit comments

Comments
 (0)