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 memory leak in zip when encountering empty glob result
This commit is contained in:
3
NEWS
3
NEWS
@@ -50,6 +50,9 @@ PHP NEWS
|
||||
. Remove incorrect call to zval_ptr_dtor() in user_wrapper_metadata().
|
||||
(nielsdos)
|
||||
|
||||
- Zip:
|
||||
. Fix memory leak in zip when encountering empty glob result. (nielsdos)
|
||||
|
||||
28 Aug 2025, PHP 8.4.12
|
||||
|
||||
- Core:
|
||||
|
||||
@@ -667,7 +667,6 @@ int php_zip_glob(char *pattern, int pattern_len, zend_long flags, zval *return_v
|
||||
can be used for simple glob() calls without further error
|
||||
checking.
|
||||
*/
|
||||
array_init(return_value);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
@@ -676,7 +675,6 @@ int php_zip_glob(char *pattern, int pattern_len, zend_long flags, zval *return_v
|
||||
|
||||
/* now catch the FreeBSD style of "no matches" */
|
||||
if (!globbuf.gl_pathc || !globbuf.gl_pathv) {
|
||||
array_init(return_value);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user