Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003311 [Quercus] block always 01-02-09 18:11 02-03-09 07:09
Reporter koreth View Status public  
Assigned To nam
Priority normal Resolution fixed  
Status closed   Product Version 4.0.0
Summary 0003311: feof doesn't detect EOF on sockets sometimes
Description <?php
$context = stream_context_create(array('http' => array(
                'method' => 'GET', 'user_agent' => 'Test Client')));
$sock = fopen('http://api.facebook.com/restserver.php', [^] 'r', false, $context);
$result = '';
if ($sock) {
  while (!feof($sock)) {
    $result .= fgets($sock, 4096);
  }
  fclose($sock);
}
print $result;

Regular PHP prints the XML error message from api.facebook.com. Quercus spins in an infinite loop (apparently feof() is never returning true).
Additional Information
Attached Files

- Relationships

- Notes
(0003793)
nam
02-02-09 15:08

php/164q
 
(0003800)
nam
02-03-09 07:09

php/164q
 

- Issue History
Date Modified Username Field Change
01-02-09 18:11 koreth New Issue
02-02-09 13:37 nam Status new => assigned
02-02-09 13:37 nam Assigned To  => nam
02-02-09 15:08 nam Status assigned => closed
02-02-09 15:08 nam Note Added: 0003793
02-02-09 15:08 nam Resolution open => fixed
02-02-09 15:08 nam Fixed in Version  => 4.0.0
02-02-09 15:51 nam Status closed => assigned
02-03-09 07:09 nam Status assigned => closed
02-03-09 07:09 nam Note Added: 0003800


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed.
27 unique queries executed.
Powered by Mantis Bugtracker