Weird issue with PHP5
| From: | jeff dot mills at winsto dot net | Date: | Thu, 24 Jul 2008 04:45:57 +0000 |
| Subject: | Weird issue with PHP5 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-277217@lists.php.net to get a copy of this message | ||
I have a module originally written for PHP-Nuke that I have ported to
CPG-Nuke/DragonFlyCMS.
In PHP4, the page I'm displaying works fine.
In PHP5, it doesn't.
The following link is a screenshot of the page using PHP4:
http://nukeleaguedf.winsto.net/working-php4.jpg
And a screenshot from PHP5:
http://nukeleaguedf.winsto.net/broken-php5.jpg
You can see that the stat lines for the first group (Batters) displays
properly. However, the stat lines for the following groups do not.
I have copied the three offending files into text files:
http://nukeleaguedf.winsto.net/modules/League/index.txt
http://nukeleaguedf.winsto.net/modules/League/util.txt
http://nukeleaguedf.winsto.net/modules/League/classes.txt
Line 1119 of index.txt is where is all begins.
I have tested that the while loop is actually looping 3 times as it should
(once for each group).
Doing a var_dump of $players shows all of the required information.
Line 1126 is the actual line that displays the fields.
I have scoured the code with my limited PHP knowledge, but I can't for the
life of me see why its not working in PHP5.
Perhaps part of the code is incompatible with PHP5, or perhaps its a bug
in PHP5.
Is anyone able to help?