]> granicus.if.org Git - php/commitdiff
modify skeleton confirm_extname_compiled
author王星星 <xingxingwang@anjuke.com>
Sun, 12 Apr 2015 12:59:11 +0000 (20:59 +0800)
committer王星星 <xingxingwang@anjuke.com>
Sun, 12 Apr 2015 12:59:11 +0000 (20:59 +0800)
ext/skeleton/skeleton.c

index 6ff69a569b7a40de6d22e628e0aea64380436dd2..1fe049c5330d31bf2cfd307ae4034b44a0fdfb85 100644 (file)
@@ -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