From: krakjoe Date: Wed, 20 Nov 2013 13:00:28 +0000 (+0000) Subject: zend expects this to be clean memory X-Git-Tag: php-5.6.0alpha1~110^2~185 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c10796e7e9306b08d6280c3b39c9b315c7df91cc;p=php zend expects this to be clean memory --- diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c index 8cf3407ee2..cda710aba0 100644 --- a/phpdbg_prompt.c +++ b/phpdbg_prompt.c @@ -925,7 +925,7 @@ int phpdbg_call_register(phpdbg_input_t *input TSRMLS_DC) /* {{{ */ &PHPDBG_G(registered), function->string, function->length+1)) { zval fname, *fretval; - zend_fcall_info *fci = emalloc(sizeof(zend_fcall_info)); + zend_fcall_info *fci = ecalloc(1, sizeof(zend_fcall_info)); ZVAL_STRINGL(&fname, function->string, function->length, 1);