From: Zeev Suraski Date: Sun, 6 May 2001 15:39:27 +0000 (+0000) Subject: Floating point keys didn't work in array() (fix bug #6662) X-Git-Tag: php-4.0.6RC1~111 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f78e65cabff69aea976d25ad9016022d3664752d;p=php Floating point keys didn't work in array() (fix bug #6662) --- diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index 28025efdf9..9f34ec1bc4 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -1917,7 +1917,7 @@ send_by_ref: if (offset) { switch(offset->type) { case IS_DOUBLE: - zend_hash_index_update(array_ptr->value.ht, (long) offset->value.lval, &expr_ptr, sizeof(zval *), NULL); + zend_hash_index_update(array_ptr->value.ht, (long) offset->value.dval, &expr_ptr, sizeof(zval *), NULL); break; case IS_LONG: zend_hash_index_update(array_ptr->value.ht, offset->value.lval, &expr_ptr, sizeof(zval *), NULL);