cvs: pear /Services_Weather/Weather Metar.php Weatherdotcom.php

From: Date: Thu, 17 Nov 2005 08:19:44 +0000
Subject: cvs: pear /Services_Weather/Weather Metar.php Weatherdotcom.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-36341@lists.php.net to get a copy of this message
eru Thu Nov 17 03:19:44 2005 EDT Modified files: /pear/Services_Weather/Weather Metar.php Weatherdotcom.php Log: Bjori told me to change this ;-) http://cvs.php.net/diff.php/pear/Services_Weather/Weather/Metar.php?r1=1.84&r2=1.85&ty=u Index: pear/Services_Weather/Weather/Metar.php diff -u pear/Services_Weather/Weather/Metar.php:1.84 pear/Services_Weather/Weather/Metar.php:1.85 --- pear/Services_Weather/Weather/Metar.php:1.84 Wed Nov 16 15:13:14 2005 +++ pear/Services_Weather/Weather/Metar.php Thu Nov 17 03:19:41 2005 @@ -40,7 +40,7 @@ * @author Alexander Wirtz <alex@pc4p.net> * @copyright 2005 Alexander Wirtz * @license http://www.opensource.org/licenses/bsd-license.php BSD License - * @version CVS: $Id: Metar.php,v 1.84 2005/11/16 20:13:14 eru Exp $ + * @version CVS: $Id: Metar.php,v 1.85 2005/11/17 08:19:41 eru Exp $ * @link http://pear.php.net/package/Services_Weather * @link http://weather.noaa.gov/weather/metar.shtml * @link http://weather.noaa.gov/weather/taf.shtml @@ -355,7 +355,7 @@ $request = &new HTTP_Request($this->{"_sourcePath".ucfirst($dataType)}."/".$id.".TXT", $this->_httpOptions); $status = $request->sendRequest(); - if (Services_Weather::isError($status) || (int) $request->getResponseCode() >= 400) { + if (Services_Weather::isError($status) || (int) $request->getResponseCode() <> 200) { return Services_Weather::raiseError(SERVICES_WEATHER_ERROR_WRONG_SERVER_DATA, __FILE__, __LINE__); } http://cvs.php.net/diff.php/pear/Services_Weather/Weather/Weatherdotcom.php?r1=1.57&r2=1.58&ty=u Index: pear/Services_Weather/Weather/Weatherdotcom.php diff -u pear/Services_Weather/Weather/Weatherdotcom.php:1.57 pear/Services_Weather/Weather/Weatherdotcom.php:1.58 --- pear/Services_Weather/Weather/Weatherdotcom.php:1.57 Wed Nov 16 15:12:03 2005 +++ pear/Services_Weather/Weather/Weatherdotcom.php Thu Nov 17 03:19:42 2005 @@ -40,7 +40,7 @@ * @author Alexander Wirtz <alex@pc4p.net> * @copyright 2005 Alexander Wirtz * @license http://www.opensource.org/licenses/bsd-license.php BSD License - * @version CVS: $Id: Weatherdotcom.php,v 1.57 2005/11/16 20:12:03 eru Exp $ + * @version CVS: $Id: Weatherdotcom.php,v 1.58 2005/11/17 08:19:42 eru Exp $ * @link http://pear.php.net/package/Services_Weather * @link http://www.weather.com/services/xmloap.html * @example examples/weather.com-basic.php weather.com-basic.php @@ -265,7 +265,7 @@ // Get data from URL... $request = &new HTTP_Request($url, $this->_httpOptions); $status = $request->sendRequest(); - if (Services_Weather::isError($status) || (int) $request->getResponseCode() >= 400) { + if (Services_Weather::isError($status) || (int) $request->getResponseCode() <> 200) { return Services_Weather::raiseError(SERVICES_WEATHER_ERROR_WRONG_SERVER_DATA, __FILE__, __LINE__); } $data = $request->getResponseBody(); @@ -345,7 +345,7 @@ // Get search data from server and unserialize $request = &new HTTP_Request("http://xoap.weather.com/search/search?where=".urlencode($location), $this->_httpOptions); $status = $request->sendRequest(); - if (Services_Weather::isError($status) || (int) $request->getResponseCode() >= 400) { + if (Services_Weather::isError($status) || (int) $request->getResponseCode() <> 200) { return Services_Weather::raiseError(SERVICES_WEATHER_ERROR_WRONG_SERVER_DATA, __FILE__, __LINE__); } $data = $request->getResponseBody();

« previous php.pear.cvs (#36341) next »