[php-src] PR #21860: Zlib: Fix the bug when zval_get_long silently cast several options into long in deflate_init
| From: | LamentXU123 | Date: | Fri, 24 Apr 2026 02:17:59 +0000 |
| Subject: | [php-src] PR #21860: Zlib: Fix the bug when zval_get_long silently cast several options into long in deflate_init | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-35876@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21860
Author: LamentXU123
I opened #21841 yesterday to fix the case in one option
strategy and after a closer
look this morning I realized almost every options in this function has the same problem. So this
follow-up PR fix them all. (I will take a look of similar occasions in the future).
plus: to make things easy I write a helper function to throw errors