| Anonymous | Login | Signup for a new account | 10-24-2025 16:27 PDT |
| Main | My View | View Issues | Change Log | Docs |
| Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ 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 | Platform | |||||
| Status | closed | OS | |||||||
| Projection | none | OS Version | |||||||
| ETA | none | Fixed in Version | 4.0.0 | Product Version | 4.0.0 | ||||
| Product Build | |||||||||
| 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). |
||||||||
| Steps To Reproduce | |||||||||
| Additional Information | |||||||||
| Attached Files | |||||||||
|
|
|||||||||
| Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed. 27 unique queries executed. |