[php-src] PR #15751: Generated arginfo header files: use known strings for prop names when…
| From: | DanielEScherzer | Date: | Wed, 04 Sep 2024 21:21:00 +0000 |
| Subject: | [php-src] PR #15751: Generated arginfo header files: use known strings for prop names when… | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-28407@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/15751
Author: DanielEScherzer
… possible
Instead of allocating, using, and then releasing a zend_string for every property name
unconditionally, only do so when the minimum supported version of PHP does not have that string in
its known strings (ZEND_KNOWN_STRINGS). If the string is already known, just use the known version
directly. This is already done for some non-generated class registrations, e.g. in
zend_enum_register_props().