Return the number of bytes consumed, not the number of bytes left.

Suggested by:  Brian Havard <brianh@kheldar.apana.org.au>
This commit is contained in:
Aaron Bannert 2002-04-11 17:22:11 +00:00
parent 49d6f53007
commit d19fd6a0ad

View file

@ -72,7 +72,7 @@ php_apache_sapi_ub_write(const char *str, uint str_length TSRMLS_DC)
php_handle_aborted_connection(); 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 static int