RE: [PHP-DEV] Register Shutdown Function for Apache

From: Date: Tue, 11 Feb 2003 15:04:01 +0000
Subject: RE: [PHP-DEV] Register Shutdown Function for Apache
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-94158@lists.php.net to get a copy of this message
I think it's reached that stage. Something like HAVE_APXS that's defined when configure is called --with-apxs. That'd be great. Joseph > -----Original Message----- > From: jani@cs78146114.pp.htv.fi [mailto:jani@cs78146114.pp.htv.fi]On > Behalf Of Jani Taskinen > Sent: Monday, February 10, 2003 7:16 PM > To: Joseph Tate > Cc: Php-Dev List > Subject: RE: [PHP-DEV] Register Shutdown Function for Apache > > > > If you need a define for it, we can add one..? > > --Jani > > > On Mon, 10 Feb 2003, Joseph Tate wrote: > > >Well, to me, calling the code that flushes the headers and the output > >buffers twice doesn't kill us. Unless someone can come up with > a better way > >to not call these two functions in main/main.c::php_request_shutdown, the > >patch suffices for me. MOD_PHP4_H is undefined in main.c, so it's not > >acceptable. > > > >Joseph > > > >> -----Original Message----- > >> From: Brian Moon [mailto:brianm@dealnews.com] > >> Sent: Monday, February 03, 2003 5:30 PM > >> To: Joseph Tate; zeev@zend.com; george@omniti.com; sts@mail.xubion.hu > >> Cc: Php-Dev List > >> Subject: Re: [PHP-DEV] Register Shutdown Function for Apache > >> > >> > >> Hmm, there is #define MOD_PHP4_H in sapi/apache/mod_php4.h. Not real > >> descriptive, but seems to be unique to the Apache sapi. > >> > >> Brian Moon > >> dealnews.com > >> > >> > >> ----- Original Message ----- > >> From: "Joseph Tate" <jtate@mi-corporation.com> > >> To: "Brian Moon" <brianm@dealnews.com>; <zeev@zend.com>; > >> <george@omniti.com>; <sts@mail.xubion.hu> > >> Cc: "Php-Dev List" <php-dev@lists.php.net> > >> Sent: Monday, February 03, 2003 3:45 PM > >> Subject: Re: [PHP-DEV] Register Shutdown Function for Apache > >> > >> > >> | Here is an updated patch which copies a few of the methods from > >> | main/main.c::php_request_shutdown to > >> | sapi/apache/sapi_apache.c::apache_php_module_main. This has > >> flushed both > >> | the headers and output buffers in my two test scripts. Now I need to > >> figure > >> | out a way to make sure these don't get called in > >> | main/main.c::php_request_shutdown on Apache systems. Any pointers on > >> this? > >> | Is there a handy #define that I can use if configure is > >> called --with-apxs? > >> | > >> | Joseph > >> | > >> | P.S. The two test scripts are: > >> | > >> | <?PHP > >> | header('Location: > >> http://www.mi-corporation.com'); > >> | exit(); > >> | ?> > >> | > >> | and > >> | > >> | <?PHP > >> | ob_begin(); > >> | phpinfo(); > >> | ?> > >> | > >> | > -----Original Message----- > >> | > From: Brian Moon [mailto:brianm@dealnews.com] > >> | > Sent: Tuesday, January 28, 2003 5:50 PM > >> | > To: zeev@zend.com; Joseph Tate > >> | > Cc: Php-Dev List; PHP Group > >> | > Subject: Re: [PHP-DEV] Re: Register Shutdown Function for Apache > >> | > > >> | > > >> | > Give me a patch and I will tell you. ;) > >> | > > >> | > Brian Moon > >> | > dealnews.com > >> | > > >> | > > >> | > ----- Original Message ----- > >> | > From: "Zeev Suraski" <zeev@zend.com> > >> | > To: "Joseph Tate" <jtate@mi-corporation.com> > >> | > Cc: "Brian Moon" <brianm@dealnews.com>; "Php-Dev > >> List" > >> | > <php-dev@lists.php.net>; "PHP Group" <group@php.net> > >> | > Sent: Tuesday, January 28, 2003 4:03 PM > >> | > Subject: RE: [PHP-DEV] Re: Register Shutdown Function for Apache > >> | > > >> | > > >> | > | At 19:54 28/01/2003, Joseph Tate wrote: > >> | > | >Then, could we add a sapi_flush()/ob_flush() call at the end of > >> | > | >apache_php_module_main after calling the normal > >> | > register_shutdown_functions? > >> | > | > >> | > | Yeah, something along these lines. > >> | > | > >> | > | >What else might have problems? > >> | > | > >> | > | Might is a powerful word :) > >> | > | > >> | > | Zeev > >> | > | > >> | > | > >> | > | > >> | > > >> | > > >> | > -- > >> | > PHP Development Mailing List > >> <http://www.php.net/> > >> | > To unsubscribe, visit: > >> http://www.php.net/unsub.php > >> | > > >> | > > >> | > > >> | > >> > >> > >> > > > > > > > > -- > <- For Sale! -> > > >

« previous php.dev (#94158) next »