PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Web Services » Services_Weather » Bug #5287

Error handling failure

Details

Submitted2005-09-03 11:07 UTC
Fromross at golder dot org
StatusBogus
PackageServices_Weather
PHP Version4.3.11
OSLinux
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).