From ca8560e61dab55e156a26ccc42cf6b19c1553aa3 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Wed, 29 Feb 2012 17:03:22 +0000 Subject: [PATCH] Reorder some stuff in the migration guide, so the more important things like magic quotes and call time pass by ref are at the top. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@323670 c90b9560-bf6c-de11-be94-00142212c4b1 --- appendices/migration54.xml | 58 ++++++++++++++++++++------------------ 1 file changed, 30 insertions(+), 28 deletions(-) diff --git a/appendices/migration54.xml b/appendices/migration54.xml index fdabd65186..f8b698464e 100644 --- a/appendices/migration54.xml +++ b/appendices/migration54.xml @@ -68,15 +68,6 @@ note of some backward incompatible changes: - - - The break - and continue - statements don't accept variable arguments anymore, i.e. writing - break 1 + foo() * $bar; is not possible. You can obviously still use - static arguments, like break 2;. - - Safe mode is no @@ -84,18 +75,6 @@ adjustements in terms of security. - - - The Salsa10 and Salsa20 hash algorithms have been removed. - - - - - In Date extension, setting the timezone with the TZ environment variable is no longer supported. - The extension will no longer guess the default timezone if none is set, instead it will always - fall back to "UTC". - - Magic quotes has been removed. Applications relying @@ -107,6 +86,29 @@ E_CORE_ERROR. + + + Call-time pass by reference has been removed. + + + + + The break + and continue + statements don't accept variable arguments anymore, i.e. writing + break 1 + foo() * $bar; is not possible. You can obviously still use + static arguments, like break 2;. + + + + + In the date and time extension the timezone can no longer be + set using the TZ environment variable. Instead you have to specify a timezone using the + date.timezone ini option or the date_default_timezone_set + function. PHP will no longer try to guess the used timezone and instead fall back to "UTC" and issue + a warning. + + Non-numeric string offsets - e.g. $a['foo'] where $a is a string - now return @@ -119,14 +121,14 @@ - Turning &null;, &false; or an empty string into an object by adding a property - will now emit a warning instead of an E_STRICT error. + Converting an array to string will now cause an E_NOTICE. The result of + the cast will still be "Array". - Converting an array to string will now cause an E_NOTICE. The result of - the cast will still be "Array". + Turning &null;, &false; or an empty string into an object by adding a property + will now emit a warning instead of an E_STRICT error. @@ -137,13 +139,13 @@ - array_combine now returns array() instead of &false; - when two empty arrays are provided as parameters. + The Salsa10 and Salsa20 hash algorithms have been removed. - Call-time pass by reference has been removed. + array_combine now returns array() instead of &false; + when two empty arrays are provided as parameters.