From c10796e7e9306b08d6280c3b39c9b315c7df91cc Mon Sep 17 00:00:00 2001 From: krakjoe Date: Wed, 20 Nov 2013 13:00:28 +0000 Subject: [PATCH] zend expects this to be clean memory --- phpdbg_prompt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.40.0