[php-src] PR #19255: Use consistent type for h on call zend_hash_index_*
| From: | marc-mabe | Date: | Sat, 26 Jul 2025 23:23:14 +0000 |
| Subject: | [php-src] PR #19255: Use consistent type for h on call zend_hash_index_* | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-32618@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/19255
Author: marc-mabe
zend_hash_index_* expects zend_ulong for the h argument but
often this argument got casted to zend_long (instead of zend_ulong.
Additionally, most of the time, a pointer first got casted to (uintptr_t) before
(zend_ulong) but sometimes a pointer got casted directly. I noticed this during my work
of #19079 as it fails if the pointer size and zend_ulong differs.