com php-src: Use more accurate sizeof: Zend/zend.c

From: Date: Sat, 13 Sep 2014 19:57:58 +0000
Subject: com php-src: Use more accurate sizeof: Zend/zend.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-81545@lists.php.net to get a copy of this message
Commit: 345b0f44c30d3d42f9a0088718aa712b1d0754d5 Author: Nikita Popov <nikic@php.net> Sat, 13 Sep 2014 21:57:58 +0200 Parents: 3defdb18804650ddd82202f5cffbeb779a7a97d7 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=345b0f44c30d3d42f9a0088718aa712b1d0754d5 Log: Use more accurate sizeof This is allocating an array of zval*s, not zval**s. Changed paths: M Zend/zend.c Diff: diff --git a/Zend/zend.c b/Zend/zend.c index de13108...eee2739 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -509,7 +509,7 @@ static void compiler_globals_ctor(zend_compiler_globals *compiler_globals TSRMLS compiler_globals->last_static_member = zend_hash_num_elements(compiler_globals->class_table); if (compiler_globals->last_static_member) { - compiler_globals->static_members_table = calloc(compiler_globals->last_static_member, sizeof(zval**)); + compiler_globals->static_members_table = calloc(compiler_globals->last_static_member, sizeof(zval*)); } else { compiler_globals->static_members_table = NULL; }

« previous php.cvs (#81545) next »