00766: Notify script failed under Windows Server 2003 (IIS 5.0) because of behavior of register_shutdown_function()...

Summary: Notify script failed under Windows Server 2003 (IIS 5.0)
Created: 2006-06-30 12:03
Status: Open
Category: Bug
From:
Assigned:
Priority: 4
Version: 2.1.11
OS: WindowsServer2003(SP1)/IIS5.0/5.

Description:

Summary: Notify script failed under Windows Server 2003 (IIS 5.0) because of behavior of register_shutdown_function()...

I installed PmWiki twice. One on my private web site and notification runs perfectly (don't know what is the server). Other one on my company internal windows server (2003, IIS5). We installed a new PHP5 specially for the wiki too. And then notification failed completely. After resolving mail issue - I replaced mail() function inside notify.php by imap_mail() - I started to debug the notify.php script to see what was wrong. I managed to understand that NotifyUpdate was not launched correctly by the register_shutdown_function() inside the PostNotify() but only in the NotifyCheck() just few milliseconds after...

Workaround: I switched the order between "flush" and "NotifyUpdate". And it works fine for me now...

Could you do a correction for other windows server users ?