diff options
Diffstat (limited to 'ext/standard/formatted_print.c')
-rw-r--r-- | ext/standard/formatted_print.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/standard/formatted_print.c b/ext/standard/formatted_print.c index e12d0eebc9..ee33b17f36 100644 --- a/ext/standard/formatted_print.c +++ b/ext/standard/formatted_print.c @@ -781,6 +781,7 @@ PHP_FUNCTION(user_printf) } PHPWRITE(result, len); efree(result); + RETURN_LONG(len); } /* }}} */ @@ -796,6 +797,7 @@ PHP_FUNCTION(vprintf) } PHPWRITE(result, len); efree(result); + RETURN_LONG(len); } /* }}} */ @@ -826,7 +828,7 @@ PHP_FUNCTION(fprintf) efree(result); - RETVAL_LONG(len - 1); + RETURN_LONG(len); } /* {{{ proto int vfprintf(resource stream, string format, array args) @@ -856,7 +858,7 @@ PHP_FUNCTION(vfprintf) efree(result); - RETVAL_LONG(len - 1); + RETURN_LONG(len); } |