From: 王星星 Date: Sun, 12 Apr 2015 12:59:11 +0000 (+0800) Subject: modify skeleton confirm_extname_compiled X-Git-Tag: PRE_PHP7_NSAPI_REMOVAL~222^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=73a0c96ac3369e301e69c1cf65c1c77d0ad22837;p=php modify skeleton confirm_extname_compiled --- 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