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

From: Date: Fri, 25 Apr 2003 09:10:58 +0000
Subject: #23340 [Opn]: fopen on multiple urls from same server crashes
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-38355@lists.php.net to get a copy of this message
ID: 23340 User updated by: lucifer at vengeance dot et dot tudelft dot nl Reported By: lucifer at vengeance dot et dot tudelft dot nl Status: Open Bug Type: Reproducible crash Operating System: Windows XP Pro PHP Version: 4CVS-2003-04-25 (stable) New Comment: if its of any use, the winxp error signature: szAppName : php.exe szAppVer : 4.3.2.2 szModName : php4ts.dll szModVer : 4.3.2.2 offset : 000ae419 Previous Comments: ------------------------------------------------------------------------ [2003-04-25 04:05:21] lucifer at vengeance dot et dot tudelft dot nl 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 this bug report at http://bugs.php.net/?id=23340&edit=1

« previous php.bugs (#38355) next »