From:             [EMAIL PROTECTED]
Operating system: WinXP
PHP version:      4.3.0
PHP Bug Type:     Scripting Engine problem
Bug description:  shutdown functions not executed if timed out

This problem is absolutely critical if you do DB cleanups, transactions
processing or other similar things in shutdown functions. Can be
especially bad if you need to commit/rollback transactions with persistent
DB connections.

----------
<?php
function boo()
{
        ...do_anything...; // never ever gets called
}

register_shutdown_function("boo");
set_time_limit(3); // not necessary, just to show the error sooner

for (;;) { // infinite loop to simulate long processing
}
?>
----------

Error message:

Fatal error: Maximum execution time of 3 seconds exceeded in c:\exp.php on
line 10

Fatal error: Maximum execution time of 3 seconds exceeded in c:\exp.php on
line 4

Does not depend on whether we run script as CGI/SAPI or CLI.

Report #14542 looks similar but is different IMHO.
-- 
Edit bug report at http://bugs.php.net/?id=21513&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=21513&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=21513&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=21513&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=21513&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=21513&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=21513&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=21513&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=21513&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=21513&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=21513&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21513&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=21513&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=21513&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=21513&r=gnused

Reply via email to