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:
1
NEWS
1
NEWS
@@ -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.
|
||||
|
||||
@@ -204,6 +204,7 @@ PHP_FUNCTION(iptcembed)
|
||||
|
||||
if (spool < 2) {
|
||||
if (zend_fstat(fileno(fp), &sb) != 0) {
|
||||
fclose(fp);
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user