Ah, I know now what's happening.
Your old PHP configuration had "register globals" enabled, and your new PHP 5 configuration has it disabled. It's much more secure this way. So you should get used to it.
PHP: Description of core php.ini directives - Manual