ID:               27423
 Updated by:       [EMAIL PROTECTED]
 Reported By:      ypout at mail dot ru
-Status:           Open
+Status:           Bogus
 Bug Type:         Session related
 Operating System: Linux 2.4.25
 PHP Version:      4.3.4
 New Comment:

The problem is that the session files are locked to prevent concurrent
writes so other requests for the same session while the provided code
is still executing will not allow access.  session_write_close() will
write the session data and release the lock on the file, allowing
subsequent requests access to it.  There's a little more info on the
session_write_close manual page (http://php.net/session_write_close).



Status -> Bogus


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

[2004-02-27 23:46:54] [EMAIL PROTECTED]

Try a call to session_write_close() before the system()/popen() call.

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

[2004-02-27 10:35:54] ypout at mail dot ru

Description:
------------
PHP sessions will hang if an external command is executed either
through system() or the popen() calls. The session restores as soon as
the external command terminates. The problem is when I try to follow
another link in a multiframed view.





Reproduce code:
---------------
session_start();

.....

.....



set_time_limit(0);

ignore_user_abort(TRUE);

system($cmd, $sys_res); // Takes very long



.....



note (I tried popen aswell)

Expected result:
----------------
does not matter

Actual result:
--------------
does not matter


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


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

Reply via email to