]> granicus.if.org Git - php/commitdiff
Fixed bug #21814 (Allow booleans to be used as array keys).
authorIlia Alshanetsky <iliaa@php.net>
Wed, 22 Jan 2003 14:48:30 +0000 (14:48 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 22 Jan 2003 14:48:30 +0000 (14:48 +0000)
Zend/zend_execute.c

index 8c46ce4bc79ec87353f7afe19b1a405555c5ed03..e6688be3164395c978e96021b19600bdb5a8ca09 100644 (file)
@@ -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: