Skip to content

Commit 73a0c96

Browse files
author
王星星
committed
modify skeleton confirm_extname_compiled
1 parent 22bef96 commit 73a0c96

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ext/skeleton/skeleton.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,9 @@ PHP_FUNCTION(confirm_extname_compiled)
4343
return;
4444
}
4545

46-
len = spprintf(&strg, 0, "Congratulations! You have successfully modified ext/%.78s/config.m4. Module %.78s is now compiled into PHP.", "extname", arg);
46+
strg = strpprintf(0, "Congratulations! You have successfully modified ext/%.78s/config.m4. Module %.78s is now compiled into PHP.", "extname", arg);
4747

48-
RETVAL_STRING(strg, len);
49-
efree(strg);
48+
RETURN_STR(strg);
5049
}
5150
/* }}} */
5251
/* The previous line is meant for vim and emacs, so it can correctly fold and

0 commit comments

Comments
 (0)