[php-src] PR #17814: Reduce number of string duplications in phar
| From: | nielsdos | Date: | Sat, 15 Feb 2025 12:20:57 +0000 |
| Subject: | [php-src] PR #17814: Reduce number of string duplications in phar | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-30792@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/17814
Author: nielsdos
We don't need to duplicate these strings from the resource, we can just use them with an
offset.
To prove this was safe, I had to make the arguments const and then propagate that everywhere, so
this patch also introduces some more constness.