bug in 2.2.0 ?
Brought to you by:
iridium
From: Phil P. <phi...@sw...> - 2004-01-02 23:07:22
|
I've just downloaded 2.2.0 Unpacked it on my web server Configured it through the configuration webpage HTTP to index.php Select country Select Airport/ICAO Click SUBMIT returns back to the default form - no METAR data displayed. Turned on Warnings as well as errors. No warnings/errors displayed. Ran the test program, no problem. Ran the 'speed test' program, no problem (though, obviously slow, as I'm not using a database). I added the following lines into the output, for debugging. (after echo output) echo "<br>Here's the RAW output data<br><pre>\n"; print_r($data); echo "</pre>\n"; NO data displayed. I added many and various 'debug comment' lines in odd places, appended to $output. It *always* and *for every country/ICAO* says "ICAO was invalid". if ($icao != '') { $output .= "<br>we got an ICAO<br>\n"; $weather->set_icao($icao); /* icao was passed, we resolve country code */ $cc_temp = $weather->get_country_code(); if ($cc_temp === false) { /* turn icao off, it is not valid */ $icao = ''; $output .= "<br>ICAO was invalid<br>\n"; } else { /* use resolved country code */ $cc = $cc_temp; } } Thanks, Phil P |