Skip to content

Commit b7788c5

Browse files
committed
Fix wrong macro usage and add missing NEWS entry
1 parent cc51729 commit b7788c5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ PHP NEWS
1010
details here: https://wiki.php.net/rfc/cli_process_title. (Keyur)
1111
. Fixed bug #64370 (microtime(true) less than $_SERVER['REQUEST_TIME_FLOAT']).
1212
(Anatol)
13+
. Added support for non-scalar Iterator keys in foreach
14+
(https://wiki.php.net/rfc/foreach-non-scalar-keys). (Nikita Popov)
1315

1416
- mysqlnd
1517
. Fixed bug #63530 (mysqlnd_stmt::bind_one_parameter crashes, uses wrong alloc

Zend/zend_API.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1521,7 +1521,7 @@ ZEND_API int array_set_zval_key(HashTable *ht, zval *key, zval *value) /* {{{ */
15211521
result = zend_hash_index_update(ht, Z_LVAL_P(key), &value, sizeof(zval *), NULL);
15221522
break;
15231523
case IS_DOUBLE:
1524-
result = zend_hash_index_update(ht, zend_dval_to_lval(Z_LVAL_P(key)), &value, sizeof(zval *), NULL);
1524+
result = zend_hash_index_update(ht, zend_dval_to_lval(Z_DVAL_P(key)), &value, sizeof(zval *), NULL);
15251525
break;
15261526
default:
15271527
zend_error(E_WARNING, "Illegal offset type");

0 commit comments

Comments
 (0)