[ phpweather-Bugs-780295 ] Undefined variables using Apache2 and PHP 5
Brought to you by:
iridium
From: SourceForge.net <no...@so...> - 2006-09-10 09:38:21
|
Bugs item #780295, was opened at 2003-07-30 15:27 Message generated for change (Comment added) made by iridium You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=377952&aid=780295&group_id=23245 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: PHP code Group: phpweather-2.x >Status: Pending Priority: 5 Submitted By: Bret Solberg (cryptogen) Assigned to: Nobody/Anonymous (nobody) Summary: Undefined variables using Apache2 and PHP 5 Initial Comment: Running: Apache/2.0.47 (Unix) PHP/5.0.0b1, the following error is thrown. Before I upgraded PHP, this was working fine. Notice: Undefined variable: time in /var/www/html/intranet/weather/output/pw_text.php on line 1042 This is a report for Madison, Dane County Regional-Truax Field, United States. The report was made 294327 hours and 22 minutes ago, at 00:00 UTC. Notice: Undefined offset: 0 in /var/www/html/intranet/weather/output/pw_images.php on line 353 ---------------------------------------------------------------------- >Comment By: Max Hammond (iridium) Date: 2006-09-10 09:38 Message: Logged In: YES user_id=81516 Is this still a problem? ---------------------------------------------------------------------- Comment By: Martin Geisler (gimpster) Date: 2003-08-03 22:29 Message: Logged In: YES user_id=104098 Hmm, strange. The huge time corrosponds nicely to the time from 1/1 1970 to now, so this means that the time part in the report were missing or broken in some way. The time part is supposed to always be there, so I think you've seen a broken METAR. We could of course add tests against this in PhpWeather, but then we would have to provide translations for a case that should not happen --- I'm not sure that's worth it. Perhaps we could simply clamp the time to something like time() - 60 which would make these invalid METAR repots seem 1 minute old, but that's also not entirely satisfying. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=377952&aid=780295&group_id=23245 |