Home » Web Services » Services_Weather » Bug #5287
Error handling failure
Details
| Submitted | 2005-09-03 11:07 UTC |
|---|---|
| From | ross at golder dot org |
| Status | Bogus |
| Package | Services_Weather |
| PHP Version | 4.3.11 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2005-09-03 11:07 UTC] ross at golder dot org
Description:
------------
Problem 1: In the Weatherdotcom.php file (from PEAR), around line 125, an '@include_once' is used to include 'XML_Serializer' (the '@' suppresses any warning messages about the file not existing).
The author then tries to instantiate the file (also using a '@') to test whether the inclusion worked, which actually suppresses the message coming from a fatal error. The following code, which checks for an error if the instantiation failed, is never reached so the error is never reported (i.e. the whole thing dies silently before the error handling code if XML_Serializer is not installed on the machine).