Bug #15999: fread() hangs apache when file pointer obtained from a url parameter PHPSESSID

From: Date: Mon, 11 Mar 2002 15:48:53 +0000
Subject: Bug #15999: fread() hangs apache when file pointer obtained from a url parameter PHPSESSID
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-2229@lists.php.net to get a copy of this message
From:             didier.alain@laposte.net
Operating system: Linux
PHP version:      4.1.0
PHP Bug Type:     Session related
Bug description:  fread() hangs apache when file pointer obtained from a url parameter PHPSESSID

<?php
$url = "http://test/block.html?PHPSESSID=".session_id();
$fp = fopen($url, 'r');  // the file pointer semms to be valid
$file = fread($fp,1048576); //hangs here !
echo $file;
?>

hangs apache (1.3.x). Same with 4.0.2, 4.0.6 Linux (RH 6.2 and Debian
2.2), never on Win98. Other parameters don't have the same effect.

-- 
Edit bug report at http://bugs.php.net/?id=15999&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=15999&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=15999&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=15999&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=15999&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=15999&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=15999&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=15999&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=15999&r=submittedtwice



Thread (12 messages)

« previous php.bugs (#2229) next »