Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
3311 | block | always | 01-30-09 18:11 | 02-03-09 07:09 | |
|
|||||
Reporter: | koreth | Platform: | |||
Assigned To: | nam | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 4.0.0 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in 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). |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|