1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Merge branch 'PHP-8.3' into PHP-8.4

* PHP-8.3:
  Fix resource leak in iptcembed() on error
This commit is contained in:
Niels Dossche
2025-04-02 21:06:28 +02:00
2 changed files with 2 additions and 0 deletions

1
NEWS
View File

@@ -19,6 +19,7 @@ PHP NEWS
- Standard:
. Fixed bug GH-18145 (php8ts crashes in php_clear_stat_cache()).
(Jakub Zelenka)
. Fix resource leak in iptcembed() on error. (nielsdos)
- Tests:
. Address deprecated PHP 8.4 session options to prevent test failures.

View File

@@ -204,6 +204,7 @@ PHP_FUNCTION(iptcembed)
if (spool < 2) {
if (zend_fstat(fileno(fp), &sb) != 0) {
fclose(fp);
RETURN_FALSE;
}