[php-src] PR #23976: ext/zip: use `ZIP_RDONLY` when calling `zip_open()` in zip_stream.c
| From: | DanielEScherzer | Date: | Tue, 29 Sep 2026 00:26:19 +0000 |
| Subject: | [php-src] PR #23976: ext/zip: use `ZIP_RDONLY` when calling `zip_open()` in zip_stream.c | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-38908@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/23976
Author: DanielEScherzer
The code paths that call
zip_open() are used for stats and reading, not writing.
Previously ZIP_CREATE would create an in-memory zip archive, and if it were written to,
would persist it to disk when closed, but since the archive was never written to, this functionality
was unneeded. Use the ZIP_RDONLY flag to make it clearer that the zip archive is not
being written to.