From: Aaron Bannert Date: Thu, 11 Apr 2002 17:18:48 +0000 (+0000) Subject: Return the number of bytes consumed, not the number of bytes left. X-Git-Tag: php-4.2.0RC3~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2721e6afa7301458c21d669b29e8e94d8f87fec9;p=php Return the number of bytes consumed, not the number of bytes left. Suggested by: Brian Havard --- diff --git a/sapi/apache2filter/sapi_apache2.c b/sapi/apache2filter/sapi_apache2.c index ef97176ee2..d44fed1b56 100644 --- a/sapi/apache2filter/sapi_apache2.c +++ b/sapi/apache2filter/sapi_apache2.c @@ -72,7 +72,7 @@ php_apache_sapi_ub_write(const char *str, uint str_length TSRMLS_DC) php_handle_aborted_connection(); } - return 0; /* we wrote everything, we promise! */ + return str_length; /* we always consume all the data passed to us. */ } static int