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-27 00:50 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-27 00: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 08:18 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2005-07-27 11:29 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!