From:             sw4u at gmx dot net
Operating system: Debian GNU/Linux
PHP version:      4.4.4
PHP Bug Type:     Session related
Bug description:  Calling an script in a current session via fopen wrappers 
freezes Apache

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.

-- 
Edit bug report at http://bugs.php.net/?id=39519&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=39519&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=39519&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=39519&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=39519&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=39519&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=39519&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=39519&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=39519&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=39519&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=39519&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=39519&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=39519&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=39519&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=39519&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=39519&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=39519&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=39519&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=39519&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=39519&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=39519&r=mysqlcfg

Reply via email to