Re: cvs: php4(PHP_4_2_0) /sapi/apache2filter php_apache.h sapi_apache2.c
| From: | derick@php.net | Date: | Thu, 11 Apr 2002 20:35:35 +0000 |
| Subject: | Re: cvs: php4(PHP_4_2_0) /sapi/apache2filter php_apache.h sapi_apache2.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-11061@lists.php.net to get a copy of this message | ||
Hello,
I wonder if you're now done with those might nice fixes? I'd like to pack
up RC3 tomorrow, and hopefully we will base the release on this (php
4.2.0).
regards,
Derick
On Thu, 11 Apr 2002, Aaron Bannert wrote:
> aaron Thu Apr 11 16:34:31 2002 EDT
>
> Modified files: (Branch: PHP_4_2_0)
> /php4/sapi/apache2filter php_apache.h sapi_apache2.c
> Log:
> Fix a problem where php-generated data was pushed down the entire output
> filter chain instead of just down the rest of the chain. This fix will
> speed up some unnecessary overhead introduced in the last patch.
>
> Suggested by: Cliff Woolley <jwoolley@apache.org>
>
>
> Index: php4/sapi/apache2filter/php_apache.h
> diff -u php4/sapi/apache2filter/php_apache.h:1.10.2.2
> php4/sapi/apache2filter/php_apache.h:1.10.2.3
> --- php4/sapi/apache2filter/php_apache.h:1.10.2.2 Thu Apr 11 15:27:27 2002
> +++ php4/sapi/apache2filter/php_apache.h Thu Apr 11 16:34:31 2002
> @@ -22,6 +22,7 @@
> typedef struct php_struct {
> int state;
> request_rec *r;
> + ap_filter_t *f; /* downstream output filters after the PHP filter. */
> /* Length of post_data buffer */
> int post_len;
> /* Index for reading from buffer */
> Index: php4/sapi/apache2filter/sapi_apache2.c
> diff -u php4/sapi/apache2filter/sapi_apache2.c:1.61.2.7
> php4/sapi/apache2filter/sapi_apache2.c:1.61.2.8
> --- php4/sapi/apache2filter/sapi_apache2.c:1.61.2.7 Thu Apr 11 15:27:27 2002
> +++ php4/sapi/apache2filter/sapi_apache2.c Thu Apr 11 16:34:31 2002
> @@ -49,11 +49,11 @@
> apr_bucket *b;
> apr_bucket_brigade *bb;
> apr_bucket_alloc_t *ba;
> - ap_filter_t *f; /* output filters */
> + ap_filter_t *f; /* remaining output filters */
> php_struct *ctx;
>
> ctx = SG(server_context);
> - f = ctx->r->output_filters;
> + f = ctx->f;
>
> if (str_length == 0) return 0;
>
> @@ -183,7 +183,7 @@
> if (!server_context)
> return;
>
> - f = ctx->r->output_filters;
> + f = ctx->f;
>
> /* Send a flush bucket down the filter chain. The current default
> * handler seems to act on the first flush bucket, but ignores
> @@ -344,6 +344,7 @@
> ap_add_cgi_vars(f->r);
>
> ctx = SG(server_context);
> + ctx->f = f; /* safe whatever filters are after us in the chain. */
> if (ctx == NULL) {
> ap_log_rerror(APLOG_MARK, APLOG_ERR|APLOG_NOERRNO, 0, f->r,
> "php failed to get server context");
>
>
>
> --
> PHP CVS Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
-----------------------------------------------------------------------
Did I help you? Consider a gift:
http://www.amazon.co.uk/exec/obidos/registry/SLCB276UZU8B
-----------------------------------------------------------------------
PHP: Scripting the Web - derick@php.net
All your branches are belong to me!
SRM: Script Running Machine - www.vl-srm.net
-----------------------------------------------------------------------