From:             hehe at aol dot cc
Operating system: win32
PHP version:      4.2.3
PHP Bug Type:     Scripting Engine problem
Bug description:  register_shutdown_function seems dosen't run in ApacheModule but CGI 
mode do

I did a simple test on my WinXP/Apache1.3.27/PHP4.2.3,
<?php
function aaaaa(){
$fp=fopen("aaa.log","a+b");
fclose($fp);
}

register_shutdown_function("aaaaa");
?>

First time, I configue PHP as CGI mode; after run I found new file aaa.log
shows up, then I deleted it.

Second time, I configue PHP as ApacheModule mode; after run I found
NOTHING.
-- 
Edit bug report at http://bugs.php.net/?id=22470&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=22470&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=22470&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=22470&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=22470&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=22470&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=22470&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=22470&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=22470&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=22470&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=22470&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22470&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=22470&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=22470&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=22470&r=gnused

Reply via email to