Anonymous | Login | Signup for a new account | 12-17-2024 08:41 PST |
Main | My View | View Issues | Change Log | Docs |
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-30-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 | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed. 27 unique queries executed. |