com php-src: Fixed #68779 (Incorrect sizeof): Zend/zend_API .c
| From: | Xinchen Hui | Date: | Sat, 10 Jan 2015 15:58:22 +0000 |
| Subject: | com php-src: Fixed #68779 (Incorrect sizeof): Zend/zend_API .c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-84058@lists.php.net to get a copy of this message | ||
Commit: 84f2311bc98dc2e1d45ce9e67615ce3592ed39c2
Author: Xinchen Hui <laruence@php.net> Sat, 10 Jan 2015 10:58:22 -0500
Parents: dbd02ad23bfbe0b0dc703c68774e397fc0a8b1ef
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=84f2311bc98dc2e1d45ce9e67615ce3592ed39c2
Log:
Fixed #68779 (Incorrect sizeof)
Bugs:
https://bugs.php.net/68779
Changed paths:
M Zend/zend_API.c
Diff:
diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index 01d3f9a..6486df1 100644
--- a/Zend/zend_API.c
+++ b/Zend/zend_API.c
@@ -1006,9 +1006,9 @@ ZEND_API void zend_update_class_constants(zend_class_entry *class_type) /* {{{
*
zend_update_class_constants(class_type->parent);
}
#if ZTS
- CG(static_members_table)[(zend_intptr_t)(class_type->static_members_table)] =
emalloc(sizeof(zval*) * class_type->default_static_members_count);
+ CG(static_members_table)[(zend_intptr_t)(class_type->static_members_table)] =
emalloc(sizeof(zval) * class_type->default_static_members_count);
#else
- class_type->static_members_table = emalloc(sizeof(zval*) *
class_type->default_static_members_count);
+ class_type->static_members_table = emalloc(sizeof(zval) *
class_type->default_static_members_count);
#endif
for (i = 0; i < class_type->default_static_members_count; i++) {
p = &class_type->default_static_members_table[i];