Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
3587 | major | always | 06-29-09 09:34 | 08-27-09 11:40 | |
|
|||||
Reporter: | tomi_m | 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.2 | ||
|
|||||
Summary: | 0003587: NumberFormatException when calling $result = file_get_contents($url); | ||||
Description: |
When trying to call file_get_contents($data); in PHP script where $data is url I get NumberFormatException. I have found bug in class method com.caucho.vfs.HttpStream.parseHeaders() when calling parseInt in line 814 trying to get http response content-length value. Parameter passed to parseInt should be trimmed. Original source if (key.matchesIgnoreCase("content-length")) { _contentLength = Integer.parseInt(value); } After modifying if (key.matchesIgnoreCase("content-length")) { _contentLength = Integer.parseInt(value.trim()); } |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|