Uh oh!
There was an error while loading. Please reload this page.
ext/phar: Readability Improvements in phar_fancy_stat() - #21865
Conversation
I would say yes even though the benefit is really more the readability improvement more than "saving strlen calls", nowadays strlen(str)/sizeof(str)-1 the former still use __builtin_strlen behind the scene with compile time strings like here. |
LamentXU123
commented
Apr 25, 2026
Test failures are unrelated :/ |
TimWolla
left a comment
There was a problem hiding this comment.
I agree with David's comment. Can you adjust the commit message and PR title accordingly?
Girgias
commented
Apr 29, 2026
Can you rebase the PR on master now that CI should be fixed. |
LamentXU123
commented
May 3, 2026
Ah the CI is fixed now :) |
Girgias
commented
May 4, 2026
Please rebase and force push rather than merging master, this adds random commits that make it hard to review. |
LamentXU123
commented
May 4, 2026
Ah ok now it works. Its late night last time and I'm kind of stupid that I forgot to check it.. Anyway, now its clean :) |
Uh oh!
There was an error while loading. Please reload this page.
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.