[php-src] PR #23827: standard: Pass `unserialize('')` through the regular path
| From: | TimWolla | Date: | Mon, 21 Sep 2026 16:51:52 +0000 |
| Subject: | [php-src] PR #23827: standard: Pass `unserialize('')` through the regular path | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-38687@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/23827
Author: TimWolla
Previously
unserialize() with an empty string as input was handled specially, returning
false (indicating an error), but without emitting an associated warning. We can just
pass it through the regular path, which will also return false (including the warning)
and will also avoid a check that is almost never taken in practice.
Fixes php/php-src#23780.