Skip to content

Commit 37d7061

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

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Zend/zend_max_execution_timer.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ ZEND_API void zend_max_execution_timer_init(void) /* {{{ */
4646
EG(pid) = getpid();
4747
// Now check to see if a we've already set a signal handler
4848
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.");
49+
# ifdef MAX_EXECUTION_TIMERS_DEBUG
50+
fprintf(stderr, "A max execution timer was already configured and will not be configured again on thread %d\n", sev.sigev_notify_thread_id);
51+
# endif
5152
return;
5253
}
5354

0 commit comments

Comments
 (0)