[php-src] PR #17236: Fix GH-17234: Numeric parent hook call fails with assertion
| From: | nielsdos | Date: | Sat, 21 Dec 2024 18:55:52 +0000 |
| Subject: | [php-src] PR #17236: Fix GH-17234: Numeric parent hook call fails with assertion | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-30087@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/17236
Author: nielsdos
The current code expects the property name to be a string, but it can also be a number via the {}
syntax. Handle this consistently to a string by using zval_get_string which will do the type
coercion and refcount update (instead of assuming string and doing an explicit string copy).