[php-src] PR #21865: ext/phar: Avoid repeated strlen() calls in phar_fancy_stat()
| From: | LamentXU123 | Date: | Fri, 24 Apr 2026 14:09:25 +0000 |
| Subject: | [php-src] PR #21865: ext/phar: Avoid repeated strlen() calls in phar_fancy_stat() | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-35884@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21865
Author: LamentXU123
This patch removes the temporary key array and uses
ZEND_STRL(...) directly for each
fixed key instead. This avoid repeated strlen() calls and also reduce code complexity.