[php-src] PR #11387: Zend: Refactor object property write API
| From: | Girgias | Date: | Wed, 07 Jun 2023 06:03:33 +0000 |
| Subject: | [php-src] PR #11387: Zend: Refactor object property write API | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-22680@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/11387
Author: Girgias
Each commit is independent and should be reviewed in order.
The motivation for the first commit comes while I was working on #11381, as a lot of C string usage
that would be prime candidates to be converted to known Zend strings were used when trying to update
a property, which does not have an API to update a property name directly if one already has the
name as a Zend string.
Commit number 2 comes from the realisation that we have a duplicated API which is mostly unused, so
converted it to use the more standard `
zend_update_property_TYPE()` API.
Commit number 3 removes some unused APIs which has been cross-checked using https://sourcegraph.com