[php-src] PR #25934: Fix gzdecode() decoding only the first member of a gzip stream

From: Date: Mon, 30 Nov 2026 10:15:29 +0000
Subject: [php-src] PR #25934: Fix gzdecode() decoding only the first member of a gzip stream
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-41234@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25934 Author: lacatoire gzdecode() and zlib_decode() stop after the first member of a gzip stream made of several members (what cat a.gz b.gz produces), while gzfile(), compress.zlib:// and zcat decode them all. php_zlib_inflate_rounds() now resets the stream and continues when the next member starts with the gzip magic bytes. ### To reproduce ```php <?php $members = gzencode("first\n") . gzencode("second\n"); var_dump(gzdecode($members)); ``` Before (8.4.28, 8.5.12, 8.6.0): string(6) "first\n" After: string(13) "first\nsecond\n"

« previous php.git-pulls (#41234) next »