Error introduced when refactoring zend_alloc code into zend_bitset.
This commit is contained in:
Nikita Popov 2016-12-14 17:56:31 +01:00
parent 1820f4b9d1
commit 2f438342ec
2 changed files with 4 additions and 2 deletions

2
NEWS
View file

@ -7,6 +7,8 @@ PHP NEWS
references). (Nikita, Laruence)
. Fixed bug #73663 ("Invalid opcode 65/16/8" occurs with a variable created
with list()). (Laruence)
. Fixed bug #73727 (ZEND_MM_BITSET_LEN is "undefined symbol" in
zend_bitset.h). (Nikita)
- COM:
. Fixed bug #73679 (DOTNET read access violation using invalid codepage).

View file

@ -56,14 +56,14 @@ static zend_always_inline int zend_ulong_ntz(zend_ulong num)
if (!BitScanForward(&index, num)) {
#endif
/* undefined behavior */
return 32;
return SIZEOF_ZEND_LONG * 8;
}
return (int) index;
#else
int n;
if (num == Z_UL(0)) return ZEND_MM_BITSET_LEN;
if (num == Z_UL(0)) return SIZEOF_ZEND_LONG * 8;
n = 1;
#if SIZEOF_ZEND_LONG == 8