diff --git a/appendices/migration54.xml b/appendices/migration54.xml index 3f80d5d93d..046dd3bbb4 100644 --- a/appendices/migration54.xml +++ b/appendices/migration54.xml @@ -72,18 +72,18 @@ Safe mode is no longer supported. Any applications that rely on safe mode may need - adjustements in terms of security. + adjustmentubg, in terms of security. Magic quotes has been removed. Applications relying - on this feature need to be updated to avoid security issues. + on this feature may need to be updated, to avoid security issues. get_magic_quotes_gpc and get_magic_quotes_runtime now always return &false;. set_magic_quotes_runtime raises an - E_CORE_ERROR. + E_CORE_ERROR level error. @@ -102,17 +102,16 @@ 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;. + statements no longer accept variable arguments (e.g., break 1 + foo() * $bar;). + Static arguments still work, such as break 2;. - In the date and time extension the timezone can no longer be + 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 + date.timezone ini option or date_default_timezone_set + function. PHP will no longer attempt to guess the timezone, and will instead fall back to "UTC" and issue a warning. @@ -123,24 +122,24 @@ if you try to use them. Offsets of types double, bool and null produce a notice. Numeric strings (e.g. $a['2']) still work as before. Note that offsets like '12.3' and '5 foobar' are considered non-numeric and produce a warning, but are converted - to 12 and 5 respectively for BC reasons. + to 12 and 5 respectively, for backward compatibility reasons. - 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 generate an E_NOTICE level + error, and the result of the cast will still be the string "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. + Turning &null;, &false;, or an empty string into an object by adding a property + will now emit a E_WARNING level instead of E_STRICT. - Parameter names that shadow superglobals now cause a fatal error. This prohibits code like + Parameter names that shadow super globals now cause a fatal error. This prohibits code like function foo($_GET, $_POST) {}. @@ -157,15 +156,16 @@ - htmlentities now emits an E_STRICT warning when used with - asian character sets, as in that case htmlentities has (and already had before - this version) the same functionality as htmlspecialchars. + If you use htmlentities with asian character sets, it + works like htmlspecialchars - this has always been the + case in previous versions of PHP, but now an E_STRICT + level error is emitted - The following keyword(s) are now reserved and may not be used in function, - class, etc. names. + The following keywords are now reserved, and may not be used + as names by functions, classes, etc. @@ -317,7 +317,8 @@ - PHP-FPM: Added process.max setting to control the number of process FPM can fork + PHP-FPM: Added the process.max setting, to control the number + of processes that FPM can fork. @@ -388,14 +389,8 @@ - Added optional argument to debug_backtrace and - debug_print_backtrace to limit the amount of stack frames returned - - - - - is_a and is_subclass_of now have third - boolean parameter, which specifies if the first argument can be a string class name. + Added the optional limit parameter to debug_backtrace + and debug_print_backtrace, to limit the amount of stack frames returned. @@ -403,7 +398,8 @@ - Added no padding option to openssl_encrypt and openssl_decrypt + Added a no padding option to the openssl_encrypt and openssl_decrypt + functions. @@ -683,7 +679,7 @@ - Changes in extension behaviour, and new features: + Changes in extension behavior, and new features: @@ -1332,13 +1328,15 @@ Added support for storing upload progress feedback in session data. - Changed session.entropy_file to default to /dev/urandom or /dev/arandom if - either is present at compile time. + Changed session.entropy_file, which + now defaults to /dev/urandom or /dev/arandom if + either are present at compile time. - E_ALL now includes E_STRICT. + E_ALL now includes E_STRICT level + errors, as per the error_reporting. @@ -1346,8 +1344,8 @@ SNMP now has an OOP API. - Functions now return FALSE on every error condition including SNMP-related - (no such instance, end of MIB, etc). Thus, in patricular, breaks previous behaviour + Functions now return &false; on every error condition including SNMP-related + (no such instance, end of MIB, etc). Thus, in particular, breaks previous behavior of get/walk functions returning an empty string on SNMP-related errors.