dmitry Fri Jun 24 07:48:33 2005 EDT
Modified files: (Branch: PHP_4_4)
/Zend zend_compile.c
Log:
Partial fix for bug #26584 (Class member - array key overflow)
http://cvs.php.net/diff.php/Zend/zend_compile.c?r1=1.240.2.10.2.2&r2=1.240.2.10.2.3&ty=u
Index: Zend/zend_compile.c
diff -u Zend/zend_compile.c:1.240.2.10.2.2 Zend/zend_compile.c:1.240.2.10.2.3
--- Zend/zend_compile.c:1.240.2.10.2.2 Tue Jun 7 04:49:04 2005
+++ Zend/zend_compile.c Fri Jun 24 07:48:30 2005
@@ -1903,9 +1903,16 @@
zend_hash_update(result->u.constant.value.ht,
offset->u.constant.value.str.val, offset->u.constant.value.str.len+1, &element,
sizeof(zval *), NULL);
zval_dtor(&offset->u.constant);
break;
+ case IS_NULL:
+ zend_hash_update(result->u.constant.value.ht,
"", 1, &element, sizeof(zval *), NULL);
+ break;
case IS_LONG:
+ case IS_BOOL:
zend_hash_index_update(result->u.constant.value.ht,
offset->u.constant.value.lval, &element, sizeof(zval *), NULL);
break;
+ case IS_DOUBLE:
+
zend_hash_index_update(result->u.constant.value.ht,
(long)offset->u.constant.value.dval, &element, sizeof(zval *), NULL);
+ break;
}
} else {
zend_hash_next_index_insert(result->u.constant.value.ht,
&element, sizeof(zval *), NULL);
--
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
|