Re: Windows development

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: Windows development
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-3508@lists.php.net to get a copy of this message
> For the record, I'm not alone in that feeling. See Kristian's > comments about another function that had the same behavior: > > http://www.progressive-comp.com/Lists/?l=php- > dev&m=90592936718966&w=2 > > In short, it is unnecessary for functions to create or modify arbitrary > global variables, and that behavior can cause unexpected side- > effects. The only other place I can think of where PHP imports > stuff into its symbol table is the GPC stuff. Since that happens > before execution rather than in the middle of a script, it's much less > likely to cause problems. > > Are there any other functions in PHP that create new global > variables when the function is called? I don't remember seeing > any, but I've barely scratched the surface of what PHP can do. The GPC stuff, file uploads, parse_str(). And, it is likely that most uses of the WDDX stuff would end up doing something like: eval(wddx_unserialize($str)); This effectively launches a new parser just to deal with the data. That is not an efficient way to do this if wddx_unserialize() could be written to import directly into the symbol table. Like I said, if the behaviour is configurable I don't see where the argument is. -Rasmus -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#3508) next »