RE: [PHP-DEV] changed behavior of shutdown-registered function in 4.0.x->4.1.x (conn. handling)
| From: | Joseph Tate | Date: | Mon, 03 Jun 2002 16:05:32 +0000 |
| Subject: | RE: [PHP-DEV] changed behavior of shutdown-registered function in 4.0.x->4.1.x (conn. handling) | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-84800@lists.php.net to get a copy of this message | ||
Please do not cross post.
The register_shutdown_function bug has been open for quite some time: See
bug #15209 at http://bugs.php.net/bug.php?id=15209. I work with
the
original poster, and have access to his patch that seems to fix the problem.
I'm working on it today, and hopefully will have a fix soon.
Joseph
> -----Original Message-----
> From: Tamas Arpad [mailto:sts@mail.xubion.hu]
> Sent: Monday, June 03, 2002 11:58 AM
> To: php-general@lists.php.net; php-dev@lists.php.net
> Subject: [PHP-DEV] changed behavior of shutdown-registered function in
> 4.0.x->4.1.x (conn. handling)
>
>
> Hi,
> I use register_shutdown_function to regenerate my content-cache's
> data after the old page were sent. In 4.0.6 there was no problem with
> it, the connection was closed after the normal script is finished,
> and before the shutdown_registered function is started (which does
> the real work). So I could use it for gaining a "fake" speed in
> delivering pages, and it really made our system faster because only
> one process can regenerate the page in a time, the others simply
> return the old content.
>
> But unfortunatelly this doesn't work since 4.1.x, because after the
> normal script finishes it still holds the "line". It doesn't close
> the connection, so the browser is still waiting for data (and the
> http process is being held too).
> Is there any php.ini setting or switch for configure that I can use
> for turning off this behavior? Or is there any other reason why it
> works this way for me? If I copy the old (4.0.6) php module over the
> new one (4.1.1) it works fine.
> For the dev list: Is there any real reason for this way of connection
> handling, or it's just a side-effect of some other featuer?
>
> Thanks for your help,
> Arpi
>
> p.s.:sorry for mailing this to the dev list too, but I don't know
> where can I find somebody who can help
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php