[php-src] PR #25375: tree: use ZSTR_VAL()/ZSTR_LEN() instead of direct zend_string member access
| From: | adapik | Date: | Tue, 10 Nov 2026 18:44:33 +0000 |
| Subject: | [php-src] PR #25375: tree: use ZSTR_VAL()/ZSTR_LEN() instead of direct zend_string member access | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-40517@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25375
Author: adapik
Replace direct ->val / ->len accesses on zend_string with the ZSTR_VAL() / ZSTR_LEN() macros
in the few places that still bypass them.
No functional change. I built master and the resulting binary are byte-for-byte identical.
Each file is a separate commit so they can be dropped or reviewed individually.
Similar to #24330 and 35e96f621b7. Going through the macros means these places don't break if
the layout of
zend_string changes, and most of the tree already does it.