summaryrefslogtreecommitdiff
path: root/sapi
diff options
context:
space:
mode:
authorJani Taskinen <jani@php.net>2009-07-23 14:54:04 (GMT)
committerJani Taskinen <jani@php.net>2009-07-23 14:54:04 (GMT)
commit6dc86facd091bf78b4b76328258801672affde00 (patch)
tree70d360e1289146895d953efb36acafb4d238130b /sapi
parent855034b95510c407f0e2c05ba26a32789fa104d4 (diff)
downloadphp-6dc86facd091bf78b4b76328258801672affde00.tar.gz
- Fixed bug #48802 (printf() returns incorrect outputted length)
Diffstat (limited to 'sapi')
-rw-r--r--sapi/cli/php_cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c
index a8ab0ed..71e0fd9 100644
--- a/sapi/cli/php_cli.c
+++ b/sapi/cli/php_cli.c
@@ -298,7 +298,7 @@ static int sapi_cli_ub_write(const char *str, uint str_length TSRMLS_DC) /* {{{
remaining -= ret;
}
- return str_length;
+ return (ptr - str);
}
/* }}} */