Skip to content

[pull] master from php:master#853

Merged
pull[bot] merged 8 commits intoturkdevops:masterfrom
php:master
Apr 10, 2026
Merged

[pull] master from php:master#853
pull[bot] merged 8 commits intoturkdevops:masterfrom
php:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented Apr 10, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

alexandre-daubois and others added 8 commits April 10, 2026 11:42
globfree was not called on the no-matches path and on the
open_basedir reject path, leaking the glob_t contents populated by a
successful glob() call.

close GH-21702
* PHP-8.4:
  Fix GH-21698: memory leak in ZipArchive::addGlob on early returns.
* PHP-8.5:
  Fix GH-21698: memory leak in ZipArchive::addGlob on early returns.
GH-21702 added two `globfree()` calls at the no-match and open_basedir
reject paths, but called `globfree` directly instead of the `php_globfree`
wrapper used at the success path below. PHP-8.5 dropped the direct
`<glob.h>` include from `ext/zip/php_zip.c` in favor of the `php_glob.h`
wrapper, so the build now breaks with
`-Werror=implicit-function-declaration` on systems where `<glob.h>` isn't
transitively included.

Match the existing wrapper usage at line 675.

close GH-21709
* PHP-8.5:
  Fix build: use php_globfree wrapper in ZipArchive::addGlob early returns
@pull pull bot locked and limited conversation to collaborators Apr 10, 2026
@pull pull bot added the ⤵️ pull label Apr 10, 2026
@pull pull bot merged commit e60f880 into turkdevops:master Apr 10, 2026
0 of 2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants