ID:               22526
 Updated by:       [EMAIL PROTECTED]
 Reported By:      iberry at raxnet dot net
-Status:           Open
+Status:           Feedback
 Bug Type:         Session related
 Operating System: Windows 2000
 PHP Version:      4.3.0
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

If the problem persists, see if the bug can be replicated using the CLI
or CGI sapi.


Previous Comments:
------------------------------------------------------------------------

[2003-03-03 17:55:33] iberry at raxnet dot net

I think I have found some sort of race-like condition using
session_start() and popen() functions, causing the web server to hang.
The bug only seems to manifest when repeatedly initiating a page that
requires session_start() and uses popen(). This is relevant for me
because this page renders graphs and needs both of these functions to
perform its job. Here is some example code to re-produce the problem:

----test.php----
<img src="img.php?rra_id=1">
<img src="img.php?rra_id=2">
<img src="img.php?rra_id=3">
<img src="img.php?rra_id=4">
----end----

----img.php----
<?php
session_start();

$fp = popen('test', "r");
print fpassthru($fp);
pclose($fp);
?>
----end----

Notice how I am passing different GET variables to each image page
session, this seems to be necessary for the bug to manifest. This code
has been tested on both IIS 5 and Apache 2.0.44 with the same results

The path I give popen() does not appear to make a difference. I have
also have tried the popen 'r' and 'rb' file modes, which made no
difference. The two triggers of this bug appear to be the combined use
of session_start()/popen() and the varying GET variable values.

Thanks for taking time to look into this.

-Ian

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=22526&edit=1

Reply via email to