RE: [PHP] Re: php 4.1.1 vs 4.0.6
So - to confirm... If upgrading from a 4.0.x up to a 4.1.x version, putting register_globals = on in the /etc/php.ini will ensure that old code continues to run. But in the long term (ie, in some future php version), the $HTTP_* vars will no longer be supported. Is this correct? -Original Message- From: Andrey Hristov [mailto:[EMAIL PROTECTED]] Sent: February 23, 2002 12:53 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: php 4.1.1 vs 4.0.6 In 4.1.x series there are new vars (global scope) $_GET,$_POST,$_COOKIE,$_FILES,$_SESSION not available in 4.0.x versions. For old scripts could be problem that register_globals is off in the 4.1.x tree(for new installations, not upgrades). But this is for good. Regards, Andrey Hristov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: php 4.1.1 vs 4.0.6
You will always be able to turn register_globals on. Completely removing that feature would make it impossible to ever run a lot of code written for PHP. Some will argue that this is a good thing, but ultimately it is not for us to say. When you turn register_globals on, $HTTP_* do not disappear. What changes is that the various Environment, Get, Post, Cookie, Server variables are not automatically injected into the global symbol table. You will have to access them through either $HTTP_*_VARS['var_name'] or $_*['var_name']. In the second case that would be $_ENV['var_name'], for example. -Rasmus On Sat, 2 Mar 2002, Scott Brown wrote: So - to confirm... If upgrading from a 4.0.x up to a 4.1.x version, putting register_globals = on in the /etc/php.ini will ensure that old code continues to run. But in the long term (ie, in some future php version), the $HTTP_* vars will no longer be supported. Is this correct? -Original Message- From: Andrey Hristov [mailto:[EMAIL PROTECTED]] Sent: February 23, 2002 12:53 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: php 4.1.1 vs 4.0.6 In 4.1.x series there are new vars (global scope) $_GET,$_POST,$_COOKIE,$_FILES,$_SESSION not available in 4.0.x versions. For old scripts could be problem that register_globals is off in the 4.1.x tree(for new installations, not upgrades). But this is for good. Regards, Andrey Hristov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: php 4.1.1 vs 4.0.6
Thanks Rasmus, But I'm not really sure I'm understanding. Maybe if I make the question simpler: currently, I'm running 4.0.4pl1... and have: variables_order = EGPCS ; This directive describes the order in which PHP registers register_globals= On ; Whether or not to register the EGPCS variables as global ; not require register_globals to be on; Using form variables register_argc_argv = On ; This directive tells PHP whether to declare the argvargc in the /etc/php.ini I have a site that uses a $HTTP_POST_VARS['var_name'], $HTTP_GET_VARS['var_name'] and $HTTP_SERVER_VARS['var_name'] all over the place (there is more PHP in there than flat HTML :) and more than a handful of references to $HTTP_USER_AGENT, $PHP_AUTH_*, $PHP_SELF, etc Is there anything I _have_ to do before installing the newly build server with php 4.1.2 in order to retain a functional site??? Or is the site going to continue to work, but I should think hard about moving to the new $_* variables before upgrading any more? -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: March 2, 2002 6:51 PM To: Scott Brown Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Re: php 4.1.1 vs 4.0.6 You will always be able to turn register_globals on. Completely removing that feature would make it impossible to ever run a lot of code written for PHP. Some will argue that this is a good thing, but ultimately it is not for us to say. When you turn register_globals on, $HTTP_* do not disappear. What changes is that the various Environment, Get, Post, Cookie, Server variables are not automatically injected into the global symbol table. You will have to access them through either $HTTP_*_VARS['var_name'] or $_*['var_name']. In the second case that would be $_ENV['var_name'], for example. -Rasmus On Sat, 2 Mar 2002, Scott Brown wrote: So - to confirm... If upgrading from a 4.0.x up to a 4.1.x version, putting register_globals = on in the /etc/php.ini will ensure that old code continues to run. But in the long term (ie, in some future php version), the $HTTP_* vars will no longer be supported. Is this correct? -Original Message- From: Andrey Hristov [mailto:[EMAIL PROTECTED]] Sent: February 23, 2002 12:53 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: php 4.1.1 vs 4.0.6 In 4.1.x series there are new vars (global scope) $_GET,$_POST,$_COOKIE,$_FILES,$_SESSION not available in 4.0.x versions. For old scripts could be problem that register_globals is off in the 4.1.x tree(for new installations, not upgrades). But this is for good. Regards, Andrey Hristov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: php 4.1.1 vs 4.0.6
I have a site that uses a $HTTP_POST_VARS['var_name'], $HTTP_GET_VARS['var_name'] and $HTTP_SERVER_VARS['var_name'] all over the place (there is more PHP in there than flat HTML :) and more than a handful of references to $HTTP_USER_AGENT, $PHP_AUTH_*, $PHP_SELF, etc Is there anything I _have_ to do before installing the newly build server with php 412 in order to retain a functional site??? Nope, these variables will be populated regardless of your register_globals setting -Rasmus -- PHP General Mailing List (http://wwwphpnet/) To unsubscribe, visit: http://wwwphpnet/unsubphp
[PHP] Re: php 4.1.1 vs 4.0.6
Cc Zona [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Ezra Nugroho) wrote: I am deciding between 4.0.6 and 4.1.1 (or maybe 4.1.2 if it's comming soon). I heard that there is some significant difference between 4.0.x and 4.1.x What is the main difference between 4.0.6 and 4.1.1 ? Are the 4.1.x completely backward compatible with 4.0.x? Should be 99% compatible. http://www.php.net/release_4_1_0.php -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: php 4.1.1 vs 4.0.6
On Sunday 24 February 2002 01:14, John Lim wrote: Cc Zona [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Ezra Nugroho) wrote: I am deciding between 4.0.6 and 4.1.1 (or maybe 4.1.2 if it's comming soon). I heard that there is some significant difference between 4.0.x and 4.1.x What is the main difference between 4.0.6 and 4.1.1 ? Are the 4.1.x completely backward compatible with 4.0.x? Should be 99% compatible. But the 1% which isn't compatible can be a major pain. If you're mainly writing your own stuff then you should be OK. The recommended php.ini settings for 4.1.X will break a lot of stuff written by other people. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* Mr. Cole's Axiom: The sum of the intelligence on the planet is a constant; the population is growing. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: php 4.1.1 vs 4.0.6
In 4.1.x series there are new vars (global scope) $_GET,$_POST,$_COOKIE,$_FILES,$_SESSION not available in 4.0.x versions. For old scripts could be problem that register_globals is off in the 4.1.x tree(for new installations, not upgrades). But this is for good. Regards, Andrey Hristov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: php 4.1.1 vs 4.0.6
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Ezra Nugroho) wrote: I am deciding between 4.0.6 and 4.1.1 (or maybe 4.1.2 if it's comming soon). I heard that there is some significant difference between 4.0.x and 4.1.x What is the main difference between 4.0.6 and 4.1.1 ? Are the 4.1.x completely backward compatible with 4.0.x? http://www.php.net/release_4_1_0.php -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php