From 77fc478d8500ab3f0bb87ee2d65ab5ced9da464e Mon Sep 17 00:00:00 2001 From: Gabor Hojtsy Date: Mon, 25 Feb 2002 09:06:40 +0000 Subject: [PATCH] - needs a title in it befor to work => build braking error corrected - PHP3 and PHP4 are PHP 3 and PHP 4 - linking in global references - adding comment to example git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@70901 c90b9560-bf6c-de11-be94-00142212c4b1 --- appendices/migration4.xml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/appendices/migration4.xml b/appendices/migration4.xml index d38c79c5cd..ccfa6f654d 100644 --- a/appendices/migration4.xml +++ b/appendices/migration4.xml @@ -1,5 +1,5 @@ - + Migrating from PHP 3 to PHP 4 @@ -427,24 +427,27 @@ php_admin_flag [PHP directive name] [On|Off] Handling of global variables While handling of global variables had the focus on to be easy in - PHP3 and early versions of PHP4, the focus has changed to be more - secure. While in PHP3 following example worked fine, in PHP4 it + PHP 3 and early versions of PHP 4, the focus has changed to be more + secure. While in PHP 3 the following example worked fine, in PHP 4 it has to be unset($GLOBALS["id"]);. This is only one issue of global variable handling. You should always have used $GLOBALS, with - newer versions of PHP4 you are forced to do so in most cases. + newer versions of PHP 4 you are forced to do so in most cases. + Read more on this subject in the + global references section. + Migration of global variables