[php-src] PR #21535: ext/spl: Use zend_hash_index_add_new() for missing array keys
| From: | arshidkv12 | Date: | Thu, 26 Mar 2026 05:26:11 +0000 |
| Subject: | [php-src] PR #21535: ext/spl: Use zend_hash_index_add_new() for missing array keys | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-35367@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21535
Author: arshidkv12
Previously,
zend_hash_index_update() was used, which handles both insertion and
overwriting.
Since we already check that the key does not exist, zend_hash_index_add_new() is more
appropriate.
- Avoids unnecessary overwrite logic