BitOne / php-meminfo

PHP extension to get insight about memory usage
MIT License
1.08k stars 78 forks source link

Use proper type for out parameter #101

Closed cmb69 closed 3 years ago

cmb69 commented 4 years ago

The third parameter of zend_hash_get_current_key_ex() is declared as zend_long which has not necessarily the same size as ulong (for instance, on 64bit Windows the former has eight bytes, while the latter has only 4 bytes). However, for out parameters the sizes should match.

BitOne commented 3 years ago

Thanks @cmb69 !