Skip to content

Commit 571509f

Browse files
committed
Merge branch 'PHP-7.4'
* PHP-7.4: Change the way timer queue timer is deleted
2 parents d24faba + 4f4cf98 commit 571509f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Zend/zend_execute_API.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,7 +1178,7 @@ static void zend_set_timeout_ex(zend_long seconds, int reset_signals) /* {{{ */
11781178
timer, so we could end up with just an ignored timeout. Instead
11791179
delete and recreate. */
11801180
if (NULL != tq_timer) {
1181-
if (!DeleteTimerQueueTimer(NULL, tq_timer, NULL)) {
1181+
if (!DeleteTimerQueueTimer(NULL, tq_timer, INVALID_HANDLE_VALUE)) {
11821182
tq_timer = NULL;
11831183
zend_error_noreturn(E_ERROR, "Could not delete queued timer");
11841184
return;
@@ -1252,7 +1252,7 @@ void zend_unset_timeout(void) /* {{{ */
12521252
{
12531253
#ifdef ZEND_WIN32
12541254
if (NULL != tq_timer) {
1255-
if (!DeleteTimerQueueTimer(NULL, tq_timer, NULL)) {
1255+
if (!DeleteTimerQueueTimer(NULL, tq_timer, INVALID_HANDLE_VALUE)) {
12561256
EG(timed_out) = 0;
12571257
tq_timer = NULL;
12581258
zend_error_noreturn(E_ERROR, "Could not delete queued timer");

0 commit comments

Comments
 (0)