Re: php 3 to 5 upgrade: foreach loop no longer working

From: Date: Wed, 19 Apr 2006 10:03:11 +0000
Subject: Re: php 3 to 5 upgrade: foreach loop no longer working
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-234260@lists.php.net to get a copy of this message
On 18/04/06, Vernon Webb <vernon@comp-wiz.com> wrote: > I've recently upgraded a server from Fedora Core 3 to Core 5 in the process php had > been upgraded from either 3 or 4 to php 5. In doing so I had to do a major overhaul of > a web site as many things stopped working (.i.e $HTTP_POST_VAR, etc). There is actually an option in php.ini to switch on the $HTTP_*_VAR variables, although it's off by default in PHP 5. It's still better in my opinion to use the $_* superglobals ($_POST, $_GET etc), but if you've got hundreds of scripts and no time to convert them (or you're running phpBB, which relies on the deprecated behaviour), then enabled register_long_arrays in php.ini. Paul -- Data Circle http://datacircle.org

« previous php.general (#234260) next »