mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fixed bug #73727
Error introduced when refactoring zend_alloc code into zend_bitset.
This commit is contained in:
parent
1820f4b9d1
commit
2f438342ec
2 changed files with 4 additions and 2 deletions
2
NEWS
2
NEWS
|
@ -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).
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue