|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-06-10 12:59 UTC] jani@php.net
[2009-06-10 19:36 UTC] cagret at gmail dot com
[2009-06-15 08:38 UTC] jani@php.net
[2009-06-15 08:41 UTC] pajoye@php.net
[2009-06-16 04:46 UTC] cagret at gmail dot com
[2009-06-16 07:16 UTC] cagret at gmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 01:00:01 2025 UTC |
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(); ?>