We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1182d0 commit 11e5ab6Copy full SHA for 11e5ab6
Zend/zend_timer.c
@@ -65,6 +65,11 @@ void zend_timer_settime(zend_long seconds) /* {{{ }*/
65
{
66
timer_t timer = EG(timer);
67
68
+ /* Timer doesn't anymore on request shutdown. */
69
+ if (timer == (timer_t){0}) {
70
+ return;
71
+ }
72
+
73
struct itimerspec its;
74
its.it_value.tv_sec = seconds;
75
its.it_value.tv_nsec = its.it_interval.tv_sec = its.it_interval.tv_nsec = 0;
0 commit comments