From 2721e6afa7301458c21d669b29e8e94d8f87fec9 Mon Sep 17 00:00:00 2001 From: Aaron Bannert Date: Thu, 11 Apr 2002 17:18:48 +0000 Subject: [PATCH] Return the number of bytes consumed, not the number of bytes left. Suggested by: Brian Havard --- sapi/apache2filter/sapi_apache2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.50.1