Skip to content

Commit fc6cc79

Browse files
committed
only output a warning in timer debug mode
1 parent 159bf70 commit fc6cc79

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
@@ -45,8 +45,9 @@ ZEND_API void zend_max_execution_timer_init(void) /* {{{ */
4545

4646
// Now check to see if a we've already set a signal handler
4747
if(is_handler_set) {
48-
// emit a warning and return
49-
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
5051
return;
5152
}
5253

0 commit comments

Comments
 (0)