ID: 22526 Comment by: pubnelle at megaphone dot ch Reported By: iberry at raxnet dot net Status: Closed Bug Type: Session related Operating System: Windows 2000 PHP Version: 4CVS, 5CVS New Comment:
Hi, I have written already about apache hanging, in bug number 28856. I think that the problem is not only session related, and that it appeared after PHP 4.3.2. You may not agree with the fact that including, requiring or "virtual"ing pages that are on the same server need to be included using the full http domain name. But there, we do it a lot, and it's working very well on our old servers, with php 4.3.2. Here is a very simple example where the server is hanging. file1.php : <? include("http://thisdomain.com/file2.php"); ?> file2.php : <? //anything, for example phpinfo(); ?> On a Debian Box, PHP Version 5.0.1-dotdeb, Apache/1.3.26, the server is hanging . No session started, session.auto_start set to Off. I agree that this is a stupid example and that here I would use simply include("file2.php"); believe me the situations where we use the include("http ...) are a lot more complex and we cannot avoid to do this. Please, don't answer that nobody uses the include, or require, or anthing, with the http to be able to use some Apache Vhost related features : we do a lot, and I am in a despair, here ... Thanks for your attention, Estelle Previous Comments: ------------------------------------------------------------------------ [2004-07-06 21:41:22] kalvinb602 at hotmail dot com Just posting to suggest that it would be nice to have this workaround posted in the manual for popen and other system command issuing functions. I resorted to blanking out the page to keep users from clicking a second link before the first finished loading to avoid a server hang. This workaround eliminates the need for that very clunky "fix" but it took me quite awhile to find it because I was digging through the manual. It might be a good idea to link the manual entries to the related bug reports. I'm using Apache 2.0.49 PHP 4.3.6 (upgrading soon) and Windows 2000 Pro. ------------------------------------------------------------------------ [2004-03-05 02:34:26] iberry at raxnet dot net The workaround has shown to be effective in eliminating this issue. Closing the bug. ------------------------------------------------------------------------ [2004-02-23 10:46:45] cpuidle at gmx dot de I had experienced the same issue, php4&5, winXP, apache2. Workaround is fixing the problem. Thanks, Andi ------------------------------------------------------------------------ [2004-02-02 16:36:43] iberry at raxnet dot net My initial tests show that the workaround is doing the trick! I will send out a message to have more users test this and report back. Thanks for pointing this out. ------------------------------------------------------------------------ [2004-02-02 10:59:17] php_bug at cklowe dot com Workaround: use session_write_close() before the exec. You can use session_start() after the call if you still need to write session values. Reading doesn't require an open session. I've tested this somewhat, so please post how you get on. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/22526 -- Edit this bug report at http://bugs.php.net/?id=22526&edit=1