From 10544de9849f8704aaeb54388e9795f2273202a0 Mon Sep 17 00:00:00 2001 From: Sean Finney Date: Sat, 19 Sep 2009 23:00:15 +0200 Subject: Imported Upstream version 5.2.11.dfsg.1 --- sapi/cli/php_cli.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sapi/cli/php_cli.c') diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 80a096195..ba767f5d0 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -20,7 +20,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_cli.c,v 1.129.2.13.2.34 2009/04/09 10:20:39 bjori Exp $ */ +/* $Id: php_cli.c 284649 2009-07-23 14:54:04Z jani $ */ #include "php.h" #include "php_globals.h" @@ -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); } /* }}} */ -- cgit v1.2.3