ID: 48475 Updated by: j...@php.net Reported By: cagret at gmail dot com -Status: Open +Status: Bogus Bug Type: *General Issues Operating System: Win XP SP3 PHP Version: 5.2.9 New Comment:
Expected behaviour. exit() is supposed to exit immediately. Nothing is supposed to be run after you call exit. Previous Comments: ------------------------------------------------------------------------ [2009-06-05 02:41:52] cagret at gmail dot com Description: ------------ Function registered with register_shutdown_function() is not executed after call to exit() on windows with latest php (php5 - failed, php4 - ok). On linux it works as expected (both php4 & php5 - ok). I have tested many configurations, here is the summary: * Win XP Sp3, Apache/2.2.11 php_mod, php versions: 5.2.9-2, 5.2.6, 5.2.8, 5.2.10RC1, 5.3.0RC2 (all versions FAILED) * Win XP Sp3, Apache/1.3.34, php_mod, php 4.4.3-dev (OK) * Linux, Lighttpd, cgi-fcgi, php 5.2.6 (OK) * Linux, Apache/2.0.52 (CentOS), php_mod, php 4.3.9 (OK) Reproduce code: --------------- <?php function shutdown() { file_put_contents(dirname(__FILE__).'/shutdown.txt', time()); } register_shutdown_function('shutdown'); exit(); ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=48475&edit=1