Hi,
I am running wamp on windows server 2003 for a while now, and I haven't had any major issues until now.
I was revamping some code, and I came across a mind boggling issue relating to executing system commands.
What is happening, is I have a file uploader, that takes a user's file and processes it, then starts a fork (using popen("start /b php.exe file.php uploaded.fiile", "r") )
which takes it's time processing the file.
It was all working fine until today, I updated major portions of code and things went downhill from there.
Every time I would upload a file, the page would hang and I would not be able to navigate to any page on the site until the PHPSESSID cookie was cleared.
I narrowed it down to popen, and tested it with exec and system as well.. all causing this behavior.
I then came accross the following bug report which best describes the behavior I am experiencing:
http://bugs.php.net/bug.php?id=22526
However, that is very old and I am running the latest version of wamp including php 5.2.6 and apache 2.2.8
Unfortunately, The suggested 'hack' of using session_write_close didn't work, although it did prevent me from having to clear my session, I just caused the page calling popen to hang, rather than my whole session.
Now I don't know if this has any significance, but I noticed that if I restart apache i can run simple system commands until I upload a file, then it all reverts to the phenomenon as I described above.
I use apc to monitor the upload progress, so I that might be contributing to the issue. What really gets me though, is how I was running the script fine earlier with no issues.
If anyone has an idea of what might be causing this behavior please let me know, and meanwhile, if there is a method of forking off a php thread on windows that does not require executing a system command it would be greatly appreciated.
Thanks