]> granicus.if.org Git - php/commitdiff
Return the number of bytes consumed, not the number of bytes left.
authorAaron Bannert <aaron@php.net>
Thu, 11 Apr 2002 17:22:11 +0000 (17:22 +0000)
committerAaron Bannert <aaron@php.net>
Thu, 11 Apr 2002 17:22:11 +0000 (17:22 +0000)
Suggested by:  Brian Havard <brianh@kheldar.apana.org.au>

sapi/apache2filter/sapi_apache2.c

index ef97176ee2bc1306aee81ad0bd287818d0abe433..d44fed1b56ec60aa3fff7fad74669a67acb20e19 100644 (file)
@@ -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