Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.4.7

Bug #621 Call to undefined function
Submitted: 2004-01-24 17:18 UTC
From: rick at emery dot homelinux dot net Assigned: eru
Status: Closed Package: Services_Weather
PHP Version: 4.3.2 OS: Linux (Red Hat 7.3)
Roadmaps: (Not assigned)    
Comments Add Comment Add patch

Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem : 50 + 23 = ?

 [2004-01-24 17:18 UTC] rick at emery dot homelinux dot net
Description: ------------ If I try to retrieve weather information from using a location ID of 99999, then check for a returned pear error, I get this at the top of the page: Fatal error: Call to undefined function: _errormessage() in /usr/share/pear/Services/Weather/Weatherdotcom.php on line 187 Using version 1.2.0 of Services_Weather. Reproduce code: --------------- require_once "Services/Weather.php"; $weatherDotCom = &Services_Weather::service("WeatherDotCom"); $search = '99999'; $location = $weatherDotCom->getLocation($search); if (is_a($location, 'PEAR_Error')) { return $location; } else { return 'Worked'; } Expected result: ---------------- I expected to have a pear error returned (to the effect that the location was invalid). Actual result: -------------- Fatal error: Call to undefined function: _errormessage() in /usr/share/pear/Services/Weather/Weatherdotcom.php on line 187


 [2004-01-24 17:56 UTC] eru at php dot net
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on In case this was a website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better. The function was a leftover I forgot to remove. Now the call goes to raiseError($errno), which needs a keyAttribute => type for proper error-code retrieval in the weather.conm reply.