[nycphp-talk] PHP Versions and GLOBALS

Hans Zaunere zaunere at
Fri Jun 21 09:19:21 EDT 2002

--- Jeremy Hise <jhise at> wrote:
> Hi All:
> I have an app that runs fine on php4.0.4 but acts all funky on
> php4.0.6.
> Places in .4 that use $GLOBALS[varname] suddenly require that I do

This is certainly a register_globals and/or track_vars issue.

Also, never use, for example, $_POST[varname]   but rather 

Take a look at
under the heading "Array do's and don'ts"


> I think I remember something about this but I'm not sure and I can't
> really find anything on the php site.
> Do any of you know what the story is with regards to how GLOBALS work
> between these versions?
> Thank you!
> Jeremy 

Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup

More information about the talk mailing list