mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
Fixed bug #69017 (Fail to push to the empty array with the constant value defined in class scope)
This commit is contained in:
parent
e6d8bad618
commit
f2940b7120
4
NEWS
4
NEWS
@ -2,6 +2,10 @@ PHP NEWS
|
|||||||
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||
?? ??? 2015, PHP 5.5.23
|
?? ??? 2015, PHP 5.5.23
|
||||||
|
|
||||||
|
- Core:
|
||||||
|
. Fixed bug #69017 (Fail to push to the empty array with the constant value
|
||||||
|
defined in class scope). (Laruence)
|
||||||
|
|
||||||
- ODBC:
|
- ODBC:
|
||||||
. Bug #68964 (Allowed memory size exhausted with odbc_exec). (Anatol)
|
. Bug #68964 (Allowed memory size exhausted with odbc_exec). (Anatol)
|
||||||
|
|
||||||
|
@ -1415,6 +1415,9 @@ ZEND_API int zend_hash_update_current_key_ex(HashTable *ht, int key_type, const
|
|||||||
|
|
||||||
if (key_type == HASH_KEY_IS_LONG) {
|
if (key_type == HASH_KEY_IS_LONG) {
|
||||||
p->h = num_index;
|
p->h = num_index;
|
||||||
|
if ((long)num_index >= (long)ht->nNextFreeElement) {
|
||||||
|
ht->nNextFreeElement = num_index < LONG_MAX ? num_index + 1 : LONG_MAX;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
p->h = h;
|
p->h = h;
|
||||||
p->nKeyLength = str_length;
|
p->nKeyLength = str_length;
|
||||||
|
Loading…
Reference in New Issue
Block a user