summaryrefslogtreecommitdiff
path: root/sapi/apache2filter
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2002-12-09 18:45:32 +0000
committerIlia Alshanetsky <iliaa@php.net>2002-12-09 18:45:32 +0000
commit04a16f914c088a37708cb10f00419c03f99262f5 (patch)
treed08ca307faa97dc5c8dcfd9fa67885684ddd162d /sapi/apache2filter
parent8a8041befef9f58c249e187931b749bdbc6d0780 (diff)
downloadphp-git-04a16f914c088a37708cb10f00419c03f99262f5.tar.gz
Replaced deprecated APR_BRIGADE_FOREACH macro.
Diffstat (limited to 'sapi/apache2filter')
-rw-r--r--sapi/apache2filter/sapi_apache2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sapi/apache2filter/sapi_apache2.c b/sapi/apache2filter/sapi_apache2.c
index 1108a52cf3..738c82cb0f 100644
--- a/sapi/apache2filter/sapi_apache2.c
+++ b/sapi/apache2filter/sapi_apache2.c
@@ -328,7 +328,7 @@ static int php_input_filter(ap_filter_t *f, apr_bucket_brigade *bb,
return rv;
}
- APR_BRIGADE_FOREACH(b, bb) {
+ for (b = APR_BRIGADE_FIRST(bb); b != APR_BRIGADE_SENTINEL(bb); b = APR_BUCKET_NEXT(b)) {
apr_bucket_read(b, &str, &n, 1);
if (n > 0) {
old_index = ctx->post_len;
@@ -415,7 +415,7 @@ static int php_output_filter(ap_filter_t *f, apr_bucket_brigade *bb)
return ap_pass_brigade(f->next, bb);
}
- APR_BRIGADE_FOREACH(b, bb) {
+ for (b = APR_BRIGADE_FIRST(bb); b != APR_BRIGADE_SENTINEL(bb); b = APR_BUCKET_NEXT(b)) {
zend_file_handle zfd;
if (!ctx->request_processed && APR_BUCKET_IS_FILE(b)) {