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

Bug #4929 Fractional visibility not parsed correctly
Submitted: 2005-07-26 19:50 UTC Modified: 2005-07-27 06:29 UTC
From: davephp at davepar dot com Assigned: Eru
Status: Closed Package: Services_Weather
PHP Version: 4.3.10 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2005-07-26 19:50 UTC] davephp at davepar dot com
Description: ------------ It seems that when a METAR contains a fractional visibility (e.g. "2 1/2SM") the script is only parsing the "1/2SM" and putting the "2" in "noparse". This is an example string that it has trouble with: KGYY 262350Z 02010G20KT 2 1/2SM -TSRA BR BKN006 OVC010 21/20 A2983 Output: ... [noparse] => 2 [visQualifier] => AT [visibility] => 0.5 ... Test script: --------------- I don't have a good test script for this. Expected result: ---------------- [visibility] => 2.5

Comments

 [2005-07-27 03:18 UTC] eru
I'll look into it. Something with the regexp seems to be wrong, because usually it should parse this kind of string...
 [2005-07-27 06:29 UTC] eru
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 pear.php.net. In case this was a pear.php.net 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.