#23340 [NEW]: fopen on multiple urls from same server crashes

From: Date: Fri, 25 Apr 2003 09:05:21 +0000
Subject: #23340 [NEW]: fopen on multiple urls from same server crashes
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-38354@lists.php.net to get a copy of this message
From: lucifer at vengeance dot et dot tudelft dot nl Operating system: Windows XP Pro PHP version: 4CVS-2003-04-25 (stable) PHP Bug Type: Reproducible crash Bug description: fopen on multiple urls from same server crashes this code causes a crash for me: $urls[]="http://www.stichtingoikos.nl/"; $urls[]="http://www.wereldburgers.nl/"; $urls[]="http://www.stichtingoikos.nl/"; $urls[]="http://www.wereldburgers.nl/"; $urls[]="http://www.wereldburgers.nl/"; foreach($urls as $url) { $fp = fopen($url,"r"); if($fp) fclose($fp); } notes: 1) it does not crash if i omit "if($fp) fclose($fp);" 2) the size of the url list needed for a crash could vary. for example, while above hosts resolve to the same IP, it also crashes for a list using different IPs; such a list for me had to be a couple of entries larger to crash. 3) i get a winxp "PHP Script Interpreter" crash dialog on the above code, though when working with bigger lists i occiasionally only got an Apache Internal Server error and no crash dialog i tested this on 4.3.1 and 4.3.2-RC (2003-04-25) -- Edit bug report at http://bugs.php.net/?id=23340&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23340&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23340&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23340&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23340&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23340&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23340&r=support Expected behavior: http://bugs.php.net/fix.php?id=23340&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23340&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23340&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23340&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23340&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23340&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23340&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23340&r=gnused

« previous php.bugs (#38354) next »