summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-06-09 16:54:04 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2020-06-09 16:54:43 +0200
commit3c12c41927f6612bb59a8ed5edde9e27991a3b21 (patch)
tree8c5fa981d3544e3b7863a1450e3297ef40967a29
parent85657b486f863368dd891410d59d6c1878b753ae (diff)
parent7ac0fb5ae48b2513c8949780c2b067be7bfdceb0 (diff)
downloadphp-git-3c12c41927f6612bb59a8ed5edde9e27991a3b21.tar.gz
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3: Fix possibly unsupported timercmp() usage
-rw-r--r--NEWS1
-rw-r--r--main/network.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 13ae3f80c6..9ef7369f93 100644
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,7 @@ PHP NEWS
. Fixed bug #79657 ("yield from" hangs when invalid value encountered).
(Nikita)
. Fixed bug #79683 (Fake reflection scope affects __toString()). (Nikita)
+ . Fixed possibly unsupported timercmp() usage. (cmb)
- Filter:
. Fixed bug #73527 (Invalid memory access in php_filter_strip). (cmb)
diff --git a/main/network.c b/main/network.c
index 04da866d27..f2c54ed3b0 100644
--- a/main/network.c
+++ b/main/network.c
@@ -920,7 +920,7 @@ skip_bind:
if (timeout) {
gettimeofday(&time_now, NULL);
- if (timercmp(&time_now, &limit_time, >=)) {
+ if (!timercmp(&time_now, &limit_time, <)) {
/* time limit expired; don't attempt any further connections */
fatal = 1;
} else {