diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2004-05-11 19:51:50 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2004-05-11 19:51:50 +0000 |
commit | 7f8bbde60948c4801909aedbaf2242ab51909e16 (patch) | |
tree | 4b159533f40752dccb556bd0e08d958bba5af5f1 | |
parent | 338de41cf9c750c60d7f5d0b5188e4f9808a599b (diff) | |
download | php-git-7f8bbde60948c4801909aedbaf2242ab51909e16.tar.gz |
MFH: Make vprintf() and printf() return the length of the string printed.
-rw-r--r-- | ext/standard/formatted_print.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/standard/formatted_print.c b/ext/standard/formatted_print.c index d3ad906122..6a0e1a5e43 100644 --- a/ext/standard/formatted_print.c +++ b/ext/standard/formatted_print.c @@ -758,6 +758,7 @@ PHP_FUNCTION(user_printf) } PHPWRITE(result, len); efree(result); + RETURN_LONG(len); } /* }}} */ @@ -773,6 +774,7 @@ PHP_FUNCTION(vprintf) } PHPWRITE(result, len); efree(result); + RETURN_LONG(len); } /* }}} */ |