From:             [EMAIL PROTECTED]
Operating system: windows ME with apache 
PHP version:      4.2.0
PHP Bug Type:     Reproducible crash
Bug description:  fopen sometimes hangs


I want to automaticly save some webpages.
To do this i use a loop which requests the data. 
About 9 out of 10 times it goes without problems, but
sometimes the script hangs at the line with 
fopen($link,"rb"); 
saying : Maximum execution time of 30 seconds exceeded in ........

for ($i=0;$i<25;$i++)
   {
      $link = someURL;
      $fp=fopen($link,"rb");
   }

 I also tried without any results:
  -sleep(1);
  -fclose($fp);
  -fopen($link,"r"); // this is "r" instead of "rb"
  -installing everything again on a new windows

If i then run the same program again i dont get any 
problems. I know for sure the URL i open are available,
but even when they are not available it should give a warning and not
hang.

If you want to reproduce the error just open 300 links with fopen under
windows.

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

Reply via email to