James Butler wrote:

-----Original Message-----
From: Andrey Hristov [mailto:p...@hristov.com]
James Butler wrote:
+1 million because GLOBAL scope is horrid (generally) and is thoroughly abused
-1 million because it will be the most horrific BC break since time began and I 
imagine it will break so much code that is currently in the wild...

how hard it will be to grep for "global" and $GLOBALS?

Not hard for you or I but what about the beginners out there, will they know 
how to find them or work around the use of globals?

Yes, as the documentation will mention how to do it, for old applications. For new apps it is easy - pass all the information you need as parameter to the function. It works in other languages, why shouldn't it work for PHP?

In short I like it but I'm not sure how it would ever get implemented without 
breaking stuff... (this is where the clever core developers can propose some 
easy method I can't think of right now)

INI variable, like register_globals

Sorry, I wasn't being very clear there, what I really meant to say was will 
there be the will to remove it considering the effects.
I suppose INI is enough to allow it to be easily changed, but would it ever 
become a default setting of off, rather than something that can be optionally 
off?


mild migration path




--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to