summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Bannert <aaron@php.net>2002-04-11 17:22:11 +0000
committerAaron Bannert <aaron@php.net>2002-04-11 17:22:11 +0000
commitd19fd6a0ad4e776df46607c3fe4611a0728f12c1 (patch)
tree5c84aeaa49afd910b17d5b4cf3379cdf8624e442
parent49d6f53007e0b0bd09a583095ab7435a8dd49d1f (diff)
downloadphp-git-d19fd6a0ad4e776df46607c3fe4611a0728f12c1.tar.gz
Return the number of bytes consumed, not the number of bytes left.
Suggested by: Brian Havard <brianh@kheldar.apana.org.au>
-rw-r--r--sapi/apache2filter/sapi_apache2.c2
1 files changed, 1 insertions, 1 deletions
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