From c6504e711d57ba352089da89bc7d399c82ef885e Mon Sep 17 00:00:00 2001 From: Damien Seguy Date: Tue, 23 Jan 2001 10:29:05 +0000 Subject: [PATCH] Correcting some typos. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@40028 c90b9560-bf6c-de11-be94-00142212c4b1 --- appendices/migration4.xml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/appendices/migration4.xml b/appendices/migration4.xml index 72a4a4669f..47a354f9fb 100644 --- a/appendices/migration4.xml +++ b/appendices/migration4.xml @@ -73,21 +73,21 @@ Error reporting level should now be configured by explicitly taking away the warning levels you do not want to generate error - messages by x-oring them from the symbolic constant E_ALL. Sounds - complicated? Well, lets say you want the error reporting system - to report all but the simple style warnings that are categorized - by the symbolic constant E_NOTICE. Then you'll put the following - into your php.ini: - error_reporting = E_ALL & ~ ( E_NOTICE ). - If you wan't to suppress warnings too you add up the appropriate + messages by x-oring them from the symbolic constant + E_ALL. Sounds complicated? Well, lets say you want + the error reporting system to report all but the simple style warnings + that are categorized by the symbolic constant E_NOTICE. + Then you'll put the following into your php.ini: + error_reporting = E_ALL & ~ ( E_NOTICE ). + If you want to suppress warnings too you add up the appropriate constant within the braces using the binary or operator '|': - error_reporting= E_ALL & ~ ( E_NOTICE | E_WARNING ). + error_reporting= E_ALL & ~ ( E_NOTICE | E_WARNING ). Using the old values 7 and 15 for setting up error reporting is a very bad idea as this suppresses some of the newly added error - classes including parese errors. This may leed to very strange + classes including parese errors. This may lead to very strange behavior as scripts might no longer work without error messages showing up anywhere. @@ -197,7 +197,7 @@ As PHP 4.0 now seperates parsing from execution it is no longer possible to change the behavior of the parser (now embedded in - the Zend engine) at runtime as parsing al already happend by + the Zend engine) at runtime as parsing already happend by then. So the function short_tags has ceased to exist. You can still change the parsers behavior by setting appropriate values in the php.ini file. @@ -236,7 +236,7 @@ Another more practical change is that it is no longer possible to call unset indirectly, that is - $func="unset"; $func($somevar) won't work anymore. + $func="unset"; $func($somevar) won't work anymore. @@ -247,7 +247,7 @@ Extensions written for PHP 3.0 will not work with PHP 4.0 anymore, neither as binaries nor at the source level. It is not to difficult to port your extensions to PHP 4.0 if you have access to - the origibal sources. A detailed description of the actual + the original sources. A detailed description of the actual porting process is not part of this text (yet). @@ -262,17 +262,17 @@ To do so you have to enclose your variables with curly braces with the dollar sign immediately following the opening brace: - {$...} + {$...} To embed the value of an object member variable into a string you - simply write "text {$obj->member} text" while + simply write "text {$obj->member} text" while in PHP 3.0 you had to use something like "text ".$obj->member." text". This should lead to more readable code, while it may break existing - scripts written for PHP 3.0. But ou can easily check for this kind of + scripts written for PHP 3.0. But you can easily check for this kind of problem by checking for the character combination {$ in your code and by replacing it with \{$ with your favourite search-and-replace tool. @@ -283,7 +283,7 @@
Cookies - PHP 3.0 hat the bad habbit of setting cookies in the reverse order + PHP 3.0 hat the bad habit of setting cookies in the reverse order of the setcookie calls in your code. PHP 4.0 breaks with this habbit and creates the cookie header lines in exactly the same order as you set the cookies in the code.