[php-src] PHP-8.5: Merge branch 'PHP-8.4' into PHP-8.5
| From: | Ilia Alshanetsky | Date: | Thu, 29 Oct 2026 19:07:26 +0000 |
| Subject: | [php-src] PHP-8.5: Merge branch 'PHP-8.4' into PHP-8.5 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-142959@lists.php.net to get a copy of this message | ||
Author: Ilia Alshanetsky (iliaal)
Date: 2026-10-29T14:48:34-04:00
Commit: https://github.com/php/php-src/commit/ebc5463ca6af8308173405fd5918ee3e88b94bc6
Raw diff: https://github.com/php/php-src/commit/ebc5463ca6af8308173405fd5918ee3e88b94bc6.diff
Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
ext/standard: Free Windows DNS query results
Changed paths:
M NEWS
M ext/standard/dns_win32.c
Diff:
diff --git a/NEWS b/NEWS
index 186d729a28af..2ec973d9bc53 100644
--- a/NEWS
+++ b/NEWS
@@ -220,6 +220,8 @@ PHP NEWS
properties). (Lazizbek Ergashev)
- Standard:
+ . Fixed memory leaks in checkdnsrr() and dns_check_record() on Windows.
+ (Ilia Alshanetsky)
. Fixed bug GH-24308 (Request shutdown calls closelog() even when syslog
was not opened by PHP). (lazerg)
. Fixed password_get_info() and password_needs_rehash() accepting malformed
diff --git a/ext/standard/dns_win32.c b/ext/standard/dns_win32.c
index 10ba1701a2c7..3124f768e92e 100644
--- a/ext/standard/dns_win32.c
+++ b/ext/standard/dns_win32.c
@@ -120,6 +120,8 @@ PHP_FUNCTION(dns_check_record)
RETURN_FALSE;
}
+ DnsRecordListFree(pResult, DnsFreeRecordListDeep);
+
RETURN_TRUE;
}
/* }}} */