]> granicus.if.org Git - php/commitdiff
Another typo in converting array index doubles to long.
authorSara Golemon <pollita@php.net>
Fri, 18 Jun 2004 18:33:46 +0000 (18:33 +0000)
committerSara Golemon <pollita@php.net>
Fri, 18 Jun 2004 18:33:46 +0000 (18:33 +0000)
Zend/zend_execute.c

index 195131ceda31dad4b4cfb95e85a40e9f3d9b7ce9..48d5eb7db181dcb69204d31f5f551c8cdc56cfa9 100644 (file)
@@ -3659,7 +3659,7 @@ int zend_unset_dim_obj_handler(ZEND_OPCODE_HANDLER_ARGS)
                                case IS_BOOL: 
                                case IS_LONG:
                                        if (offset->type == IS_DOUBLE) {
-                                               index = (long) offset->value.lval;
+                                               index = (long) offset->value.dval;
                                        } else {
                                                index = offset->value.lval;
                                        }