It's a bug.  spoke to Rasmus at some length about just before i posted it in
the bug report.

The online help page is inaccurate in describing the full functionality of
the function:
http://www.php.net/manual/en/function.register-shutdown-function.php

REGISTER_SHUTDOWN_FUNCTION() is suppose to kick-off when any one of the
following things happen -- Exit, Error, TIMEOUT or User Abort.

According to Rasmus, the TIMEOUT functionality of this function works fine
under Linux -- however, it's not working under Win32 !

There apparently is another bug with this function -- you are suppose to be
able to call more than one REGISTER_SHUTDOWN_FUNCTION(), and they are
suppose to executed in-order... some people are reporting that only the
first encountered REGISTER_SHUTDOWN_FUNCTION() is executed, then the script
exits.

Someone needs to go through this function, pretty thoroughly, and get it
working correctly.  Being able to run code on a timeout, user-abort or error
is critical.

Jason



"John Holmes" <[EMAIL PROTECTED]> wrote in message
000401c25e43$7237e240$b402a8c0@mango">news:000401c25e43$7237e240$b402a8c0@mango...
> I'm not sure if that's a "bug", it's more of a feature request.
>
> ---John Holmes...
>
> > -----Original Message-----
> > From: Jason Caldwell [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, September 17, 2002 3:24 AM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] REGISTER_SHUTDOWN_FUNCTION() BUG -- Please Fix.
> >
> > I'm posting this here to give this BUG attention.  It's a pretty
> serious
> > one
> > for Win32 users, and it would be great if it could be fixed *very
> > quickly* -- I posted this in the Bug Reports on PHP.net on May 27th,
> 2002.
> >
> > Here's the link: http://bugs.php.net/bug.php?id=17461
> >
> > I need to use this function to perform certain *required* tasks on a
> > Timeout -- however (and please read the Bug Report, before replying)
> the
> > Timeout functionality of this function DOES NOT work on Win32 builds.
> >
> > If your a C/C++ / PHP contributor and have a moment to look into this
> --
> > it
> > would be great -- I would love to see this fixed in release 4.2.4 !!!
> >
> > Thanks
> > Jason
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to