|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-11-15 09:40 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 10 02:00:01 2025 UTC |
Description: ------------ If you have two seperate scripts with session_start() and you read one via fopen wrappers Apache webserver freezes. Tested on Apache/2.0.54 (Debian GNU/Linux) Server API Apache 2.0 Handler --enable-trans-sid session.auto_start Off session.bug_compat_42 On session.name PHPSESSID session.use_cookies On session.use_only_cookies Off session.use_trans_sid Off Reproduce code: --------------- script a.php --- <?php session_start(); $_SESSION["foo"] = "bar"; echo session_name() ."<br />"; echo session_id() ."<br />"; echo $_SESSION["foo"] ."<br />"; echo implode("", file("http://" . $_SERVER["HTTP_HOST"] . "/b.php?" . session_name() . "=" . session_id())); ?> --- script b.php --- <?php session_start(); echo session_name() ."<br />"; echo session_id() ."<br />"; echo $_SESSION["foo"] ."<br />"; ?> --- Expected result: ---------------- PHPSESSID some_session_id_here bar PHPSESSID same_session_id_here bar Actual result: -------------- Apache freezes, no heavy load, no error message, no logfile entry.