From 73a0c96ac3369e301e69c1cf65c1c77d0ad22837 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E7=8E=8B=E6=98=9F=E6=98=9F?= Date: Sun, 12 Apr 2015 20:59:11 +0800 Subject: [PATCH] modify skeleton confirm_extname_compiled --- ext/skeleton/skeleton.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ext/skeleton/skeleton.c b/ext/skeleton/skeleton.c index 6ff69a569b..1fe049c533 100644 --- a/ext/skeleton/skeleton.c +++ b/ext/skeleton/skeleton.c @@ -43,10 +43,9 @@ PHP_FUNCTION(confirm_extname_compiled) return; } - len = spprintf(&strg, 0, "Congratulations! You have successfully modified ext/%.78s/config.m4. Module %.78s is now compiled into PHP.", "extname", arg); + strg = strpprintf(0, "Congratulations! You have successfully modified ext/%.78s/config.m4. Module %.78s is now compiled into PHP.", "extname", arg); - RETVAL_STRING(strg, len); - efree(strg); + RETURN_STR(strg); } /* }}} */ /* The previous line is meant for vim and emacs, so it can correctly fold and -- 2.40.0