From: Ilia Alshanetsky Date: Wed, 22 Jan 2003 14:48:30 +0000 (+0000) Subject: Fixed bug #21814 (Allow booleans to be used as array keys). X-Git-Tag: PHP_5_0_dev_before_13561_fix~93 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=72cd67b3cadb90a436adeb9ed8b26a6a5c8c4b56;p=php Fixed bug #21814 (Allow booleans to be used as array keys). --- diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index 8c46ce4bc7..e6688be316 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -3172,6 +3172,7 @@ inline int zend_init_add_array_helper(ZEND_OPCODE_HANDLER_ARGS) zend_hash_index_update(array_ptr->value.ht, (long) offset->value.dval, &expr_ptr, sizeof(zval *), NULL); break; case IS_LONG: + case IS_BOOL: zend_hash_index_update(array_ptr->value.ht, offset->value.lval, &expr_ptr, sizeof(zval *), NULL); break; case IS_STRING: