From 20e5027293bf8711bc4f6cabd8f304ca5b127690 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 17 Jul 2015 16:49:34 +0200 Subject: Switch asprintf to spprintf in phpdbg opcode dump Also use %td where appropriate, a lot of the values are ptrdiff based. Fix a leak in phpdbg_frame.c. --- sapi/phpdbg/phpdbg_frame.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sapi/phpdbg/phpdbg_frame.c') diff --git a/sapi/phpdbg/phpdbg_frame.c b/sapi/phpdbg/phpdbg_frame.c index 189b3b20fa..4f0e5e88b0 100644 --- a/sapi/phpdbg/phpdbg_frame.c +++ b/sapi/phpdbg/phpdbg_frame.c @@ -164,7 +164,11 @@ static void phpdbg_dump_prototype(zval *tmp) /* {{{ */ } ++j; - php_printf("%s", phpdbg_short_zval_print(argstmp, 40)); + { + char *arg_print = phpdbg_short_zval_print(argstmp, 40); + php_printf("%s", arg_print); + efree(arg_print); + } phpdbg_xml(""); } ZEND_HASH_FOREACH_END(); -- cgit v1.2.1