diff --git a/appendices/migration53.xml b/appendices/migration53.xml index 5eb5c03fc8..d8522f057d 100644 --- a/appendices/migration53.xml +++ b/appendices/migration53.xml @@ -1,27 +1,27 @@ - + Migrating from PHP 5.2.x to PHP 5.3.x - + &manual.migration.seealso; 5.0.x, 5.1.x and 5.2.x. - +
What has changed in PHP 5.3.x - + Most improvements in PHP 5.3.x have no impact on existing code. There are a few incompatibilities and new features that should be considered, and code should be tested before switching PHP versions in production environments. - - - If the system is being upgraded from an older version of PHP, then the - relevant documentation is available below: - + + + For systems being upgraded from an older version of PHP, the relevant + documentation is available at: + @@ -43,73 +43,73 @@
Backward Incompatible Changes - - Although most existing PHP 5 code should work without changes, you should - pay attention to the following backward incompatible changes: - + + Although most existing PHP 5 code should work without changes, please take + note of some backward incompatible changes: + - The internal parameter parsing API have been applied across all - the extensions that PHP 5.3.x comes with. This parameter parsing API - will make the function return &null; if incompatible parameters are - passed to the function. There are some exceptions to this, like the - get_class will still return &false; in case of an - error. + The newer internal parameter parsing API has been applied across all the + extensions bundled with PHP 5.3.x. This parameter parsing API causes + functions to return &null; when passed incompatible parameters. There are + some exceptions to this rule, such as the get_class + function, which will continue to return &false; on error. - clearstatcache no longer clears the realpath - cache by default. + clearstatcache no longer clears the realpath cache by + default. - realpath is no longer system dependent and works the - same on all platforms. + realpath is now fully platform-independent. - call_user_func and family now propagates $this - even if the callee is the parent class. + The call_user_func family of functions now propagate + $this even if the callee is a parent class. - The array functions: natsort, natcasesort, - usort, uasort, uksort, - array_flip and array_unique, no longer accept - objects passed as arguments. If you need to access their properties using an object, - you will need to cast the objects to arrays first. + The array functions natsort, + natcasesort, usort, + uasort, uksort, + array_flip, and array_unique no + longer accept objects passed as arguments. To apply these functions to an + object, cast the object to an array first. The behaviour of functions with by-reference parameters called by value has - changed. Where previously the function would accept the by-value argument, a - warning is now emitted and all by-ref parameters are set to &null;. + changed. Where previously the function would accept the by-value argument, + a warning is now emitted and all by-ref parameters are set to &null;. - The new mysqlnd library necessitates using MySQL's newer 41 bytes password format. - Continued use of the old 16 bytes passwords will cause mysql_connect - to produce the following error message: "mysqlnd cannot connect to MySQL 4.1+ - using old authentication". + The new mysqlnd library necessitates the use of MySQL 4.1's newer 41-byte + password format. Continued use of the old 16-byte passwords will cause + mysql_connect and similar functions to emit the error, + "mysqlnd cannot connect to MySQL 4.1+ using old + authentication." - The trailing / has been removed from SplFileInfo and other related - directory classes. + The trailing / has been removed from the SplFileInfo + class and other related directory classes. - The __toString magic method can - no longer accept arguments. + The __toString magic + method can no longer accept arguments. @@ -118,22 +118,22 @@ __get, __set, __isset, - __unset, - __call, - should always be public and can no longer be static. Method signatures are enforced. + __unset, and + __call must always + be public and can no longer be static. Method signatures are now enforced. The __call - magic method now gets invoked on private/protected method access. + magic method is now invoked on access to private and protected methods. - - The following keywords are now reserved and may not be used - in function, class etc. names. - + + The following keywords are now reserved and may not be used in function, + class, etc. names. + @@ -150,10 +150,9 @@
New features - - PHP 5.3.0 contains a wide set of new features, below lists new features - available to the language and syntax. - + + PHP 5.3.0 offers a wide range of new features: + @@ -163,14 +162,14 @@ - Support for Late Static Bindings - has been added. + Support for Late Static + Bindings has been added. - Support for a jump label (limited goto) - has been added. + Support for jump labels + (limited goto) has been added. @@ -181,40 +180,43 @@ - There are two new magic methods: + There are two new magic methods, __callStatic and - __invoke has been added. + __invoke. - Nowdoc syntax is now - supported, and works like Heredoc + Nowdoc syntax is + now supported, similar to + Heredoc syntax, but with single quotes. - It's now possible to use Heredoc - to initialize static variables and class members/constants. + It is now possible to use + Heredocs to + initialize static variables and class members/constants. - Heredoc syntax may now be declared - using double quotes. + Heredocs may + now be declared using double quotes, complementing the + Nowdoc syntax. - Constants can now be declared outside a class - declaring using the const keyword. + Constants can now be + declared outside a class using the const keyword. - The ternary operator - now have a shorthand operator ?:. + The ternary + operator now has a shorthand form: ?:. @@ -235,7 +237,7 @@ - Gargbage collector has been added and enabled by default. + A garbage collector has been added, and is enabled by default. @@ -243,19 +245,20 @@
Changes made to Windows support - + Changes to the Windows releases: - + - The minimum Windows version is now Windows 2000; Windows 98, ME and NT4 are - no longer supported. + The minimum Windows version is now Windows 2000; Windows 98, ME, and NT4 + are no longer supported. - Windows binaries now target i586 and later. i386 and i486 are not supported. + Windows binaries now target i586 and later. i386 and i486 are not + supported. @@ -265,32 +268,34 @@ - There is now compiler support for Visual C++ 9 (VC9), using Visual Studio 2008. Snapshots - and releases will now also be available for VC9. Old binaries using VC6 are still supported - and released in the line with VC9. + There is now compiler support for Visual C++ 9 (VC9), using Visual Studio + 2008. Snapshots and releases will now also be available for VC9. Old + binaries using VC6 are still supported and released in the line with VC9. - The PDO_OCI php_pdo_oci8.dll library - (for use with Oracle version 8 client libraries) is no longer being built. Instead, - use php_pdo_oci.dll (note no '8') with Oracle 10 or 11 client - libraries. Connection to other database versions is supported. + The PDO_OCI + php_pdo_oci8.dll library (for use with Oracle version 8 + client libraries) is no longer being built. Instead, use + php_pdo_oci.dll (note no '8') with Oracle 10 or 11 + client libraries. Connection to other database versions is still supported. For the OCI8 extension, a new library - php_oci8_11g.dll is available in addition to php_oci8.dll. - Only one can be enabled at any time. Use php_oci8.dll with Oracle 10.2 - client libraries. Use php_oci8_11g.dll with Oracle 11 client libraries. Connection - to other database versions is supported. + php_oci8_11g.dll is available in addition to + php_oci8.dll. Only one can be enabled at any time. Use + php_oci8.dll with Oracle 10.2 client libraries. Use + php_oci8_11g.dll with Oracle 11 client libraries. + Connection to other database versions is still supported. - + Windows support has been added for the following functions: - + @@ -355,8 +360,8 @@ socket_create_pair - - This function was previously available on Windows, but - was due to a bug disabled as of PHP 4.3.0. + - This function was previously available on Windows, but was disabled as of + PHP 4.3.0 due to a bug. @@ -380,43 +385,46 @@ - + Other changes: - + - Improved portability of stat, touch, - filemtime, filesize and related - functions (100% portable for the available data). + Improved portability of the stat, + touch, filemtime, + filesize functions, and other related functions (100% + portable for the available data). - It's now possible to use hardlinks on Windows using the link - function, and symbolic links via the symlink function. Hardlinks - are available as of Windows 2000 and symbolic links as of Windows Vista. + It is now possible to create hard links on Windows using the + link function, and symbolic links using the + symlink function. Hard links are available as of + Windows 2000, and symbolic links as of Windows Vista. - The Windows version of PHP will expose a set of constants prefixed - PHP_WINDOWS_*, a list of them and their usage can be found - here. + The Windows version of PHP now exposes a set of constants prefixed + PHP_WINDOWS_*. A list of these constants and their usage + can be found at . - Support for the ISAPI module have been dropped, use the improved - and much better FastCGI sapi module instead. + Support for the ISAPI module has been dropped. Use the improved FastCGI SAPI + module instead. - A new dedicated site for PHP on Windows, including downloads, release candidates - and snapshots in various flavors (Thread-safe/not-thread-safe, VC6/VC9, x86/x64). - The URL for this site is &url.php.windows;. + A new dedicated site for PHP on Windows is now available, including + downloads, release candidates, and snapshots in various flavors + (thread-safe/not-thread-safe, VC6/VC9, x86/x64). The URL of this site is + &url.php.windows;.
@@ -426,30 +434,31 @@ - A new SAPI is now available called litespeed. + A new SAPI module named litespeed is now available. - FastCGI is now always enabled and can not be disabled. See sapi/cgi/CHANGES - for more details. + FastCGI is now always enabled and can not be disabled. See + sapi/cgi/CHANGES for more details. - A new CGI SAPI option, -T, can be used to measure execution time of a script - repeated several times. + A new CGI SAPI option, -T, can be used to measure + repeated execution time of a script. - CGI/FastCGI now has support for .htaccess style user-defined &php.ini; files. + CGI/FastCGI now has support for .htaccess-style user-defined &php.ini; + files. - The dl function is now disabled by default, - and only available under the cli, cgi and the embed SAPIs. + The dl function is now disabled by default, and is now + available only under the CLI, CGI, and embed SAPIs. @@ -457,18 +466,21 @@
Deprecated features in PHP 5.3.x - - PHP 5.3.0 introduces two new error levels; E_DEPRECATED - and E_USER_DEPRECATED. The E_DEPRECATED - error level is used to indicated that a feature have been deprecated, the - E_USER_DEPRECATED level should be used to indicate deprecated - features in userland defined code, just like the E_USER_WARNING - level for example. - - - The following is a list of deprecated INI directives, if one or more of these - are activated, they will issue an deprecation notice upon startup. - + + PHP 5.3.0 introduces two new error levels: E_DEPRECATED + and E_USER_DEPRECATED. The + E_DEPRECATED error level is used to indicate that a + function or feature has been deprecated. The + E_USER_DEPRECATED level is intended for indicating + deprecated features in user code, similarly to the + E_USER_ERROR and E_USER_WARNING + levels. + + + The following is a list of deprecated INI directives. Use of any of these INI + directives will cause an E_DEPRECATED error to be thrown + at startup. + @@ -507,22 +519,24 @@ - And comments starting with '#' are deprecated in .INI files. + Comments starting with '#' are now deprecated in .INI files. - + Deprecated functions: - + - call_user_method + call_user_method (use + call_user_func instead) - call_user_method_array + call_user_method_array (use + call_user_func_array instead) @@ -537,58 +551,66 @@ - ereg + ereg (use preg_match instead) - ereg_replace + ereg_replace (use preg_replace + instead) - eregi + eregi (use preg_match with the + 'i' modifier instead) - eregi_replace + eregi_replace (use preg_replace + with the 'i' modifier instead) - set_magic_quotes_runtime and its alias + set_magic_quotes_runtime and its alias, magic_quotes_runtime - session_register + session_register (use the $_SESSION + superglobal instead) - session_unregister + session_unregister (use the + $_SESSION superglobal instead) - session_is_registered + session_is_registered (use the + $_SESSION superglobal instead) - set_socket_blocking + set_socket_blocking (use + stream_set_blocking instead) - split + split (use preg_split instead) - spliti + spliti (use preg_split with the + 'i' modifier instead) @@ -598,42 +620,50 @@ - mysql_db_query + mysql_db_query (use + mysql_select_db and mysql_query + instead) - mysql_escape_string + mysql_escape_string (use + mysql_real_escape_string instead) - Passing locale category name as string is deprecated. + Passing locale category names as strings is now deprecated. Use the LC_* + family of constants instead. - The is_dst to mktime + The is_dst parameter to mktime. + Use the new timezone handling functions instead. - + Deprecated features: - + - Assigning the return value of "new" by reference is deprecated + Assigning the return value of + new by reference is now + deprecated. - Call-time pass-by-reference has been deprecated + Call-time pass-by-reference is now deprecated. - Usage of {} to access string offsets is deprecated + The use of {} to access string offsets is deprecated. + Use [] instead. @@ -641,31 +671,30 @@
Undeprecated features in PHP 5.3.x - - The is_a have been undeprecated by - popular request, meaning it will no longer issue an - E_STRICT error. - + + The is_a function has been undeprecated by popular + request; it will no longer issue an E_STRICT error. +
New Parameters - - Some functions were given new, optional, parameters in PHP 5.3.x: - - PHP Core: + + Several functions were given new, optional parameters in PHP 5.3: + + PHP Core: clearstatcache - - Added clear_realpath_cache - and filename. + - Added clear_realpath_cache and + filename. copy - - Added context. + - Added a stream context parameter, context. @@ -682,7 +711,8 @@ - mail now supports logging of mail sent. + The mail function now supports logging of sent email. + (Note: This only applies to email sent through this function.) @@ -717,7 +747,7 @@ - json: + json: @@ -733,20 +763,20 @@ - Stream: + Streams: stream_select, stream_set_blocking, - stream_set_timeout and + stream_set_timeout, and stream_set_write_buffer now work with user-space stream wrappers. - sybase_ct: + sybase_ct: @@ -756,10 +786,10 @@ - - New parameters to methods in PHP 5.3.0. - - PHP Core: + + New method parameters in PHP 5.3.0: + + PHP Core: @@ -772,24 +802,22 @@
New Functions - - PHP 5.3.x introduced some new functions: - + + PHP 5.3 introduced some new functions: + - PHP Core: + PHP Core: array_replace - - Replaces elements from passed arrays into one - array. + - Replaces elements from passed arrays into one array. array_replace_recursive - - Recursively replaces elements from passed arrays - into one array. + - Recursively replaces elements from passed arrays into one array. @@ -801,14 +829,14 @@ forward_static_call - - Call a user function which is the first parameter. + - Call a user function from a method context. forward_static_call_array - - Call a user function which is the first parameter - with the arguments contained in an array. + - Call a user function from a method context, with the arguments contained + in an array. @@ -826,27 +854,25 @@ gc_enable - - Activated the circular reference collector. + - Activates the circular reference collector. gc_enabled - - Returns the status of the circular reference - collector. + - Returns the status of the circular reference collector. get_called_class - - Gets the name of the class the static method is - called in. + - Return the name of the class a static method is called in. gethostname - - Gets the current host name for the local machine. + - Return the current host name for the local machine. @@ -871,8 +897,7 @@ quoted_printable_encode - - Convert an 8 bit string to a quoted-printable - string. + - Convert an 8 bit string to a quoted-printable string. @@ -890,19 +915,19 @@ stream_supports_lock - - Tells whether the stream supports locking. + - Return &true; if the stream supports locking. stream_context_get_params - - Retrieve parameters from context. + - Retrieve parameters from a stream context. streamWrapper::stream_cast - - Retrieve the underlaying resource. + - Retrieve the underlying stream resource. @@ -913,67 +938,67 @@ - Date/Time: + Date/Time: date_add - - Adds an amount of days, months, years, hours, minutes and - seconds to a DateTime object. + - Adds an amount of days, months, years, hours, minutes and seconds to a + DateTime object. date_create_from_format - - Returns new DateTime object formatted according to the - specified format. + - Returns a new DateTime object formatted according + to the given format. date_diff - - Returns the difference between two DateTime objects. + - Returns the difference between two DateTime + objects. date_get_last_errors - - Returns the warnings and errors from the last - date/time operation. + - Returns the warnings and errors from the last date/time operation. date_parse_from_format - - Get info about given date. + - Get infoformation about a given date. date_sub - - Subtracts an amount of days, months, years, hours, minutes - and seconds from a DateTime object. + - Subtracts an amount of days, months, years, hours, minutes and seconds + from a DateTime object. timezone_version_get - - Gets the version of the timezonedb. + - Returns the version of the timezonedb. - GMP: + GMP: gmp_testbit - - Tests if a bit is set. + - Tests whether a bit is set. - Hash: + Hash: @@ -983,7 +1008,7 @@ - IMAP: + IMAP: @@ -1005,7 +1030,7 @@ - JSON: + JSON: @@ -1015,7 +1040,7 @@ - MySQL Improved: + MySQL Improved: @@ -1044,18 +1069,18 @@ - OpenSSL: + OpenSSL: openssl_random_pseudo_bytes - - Returns a string of the length specified filled with - random pseudo bytes. + - Returns a string of the given length specified, filled with pseudo-random + bytes. - PCNTL: + PCNTL: @@ -1072,28 +1097,29 @@ pcntl_sigtimedwait - - Waits for signals, with a timeout. + - Wait for signals with a timeout. pcntl_sigwaitinfo - - Waits for signals. + - Wait for signals. - PCRE: + PCRE: preg_filter - - Perform a regular expression search and replace. + - Perform a regular expression search and replace, reutrning only results + which matched the pattern. - Semaphore: + Semaphore: @@ -1104,15 +1130,15 @@ shm_has_var - - Checks whether a specific exists. + - Checks whether a specific key exists inside a shared memory segment. - - The following functions are now natively implemented, meaning they - are always available no matter the operating system: - + + The following functions are now natively implemented, making them available + on all operating systems which can run PHP: + @@ -1144,9 +1170,9 @@
New stream wrappers - + The following stream wrappers were introduced in 5.3.0: - + @@ -1163,18 +1189,18 @@
New stream filters - + The following stream filters were introduced in 5.3.0: - + - dechunk + dechunk (reverses HTTP chunked encoding) - The bz2.decompress filter now supports concatenation + The bz2.decompress filter now supports concatenation. @@ -1182,11 +1208,11 @@
New Class Constants - - New class constants that were introduced in 5.3.0: - + + Several new class constants were introduced in 5.3.0: + - PDO_FIREBIRD: + PDO_FIREBIRD: @@ -1211,49 +1237,49 @@
New Methods - - New methods that were introduced in 5.3.0: - + + Several new methods were introduced in 5.3.0: + - Date/Time: + Date/Time: DateTime::add - - Adds an amount of days, months, years, hours, minutes and - seconds to a DateTime object. + - Adds an amount of days, months, years, hours, minutes and seconds to a + DateTime object. DateTime::createFromFormat - - Returns new DateTime object formatted according to the - specified format. + - Returns a new DateTime object formatted according + to the given format. DateTime::diff - - Returns the difference between two DateTime objects. + - Returns the difference between two DateTime + objects. DateTime::getLastErrors - - Returns the warnings and errors from the last - date/time operation. + - Returns the warnings and errors from the last date/time operation. DateTime::sub - - Subtracts an amount of days, months, years, hours, minutes - and seconds from a DateTime object. + - Subtracts an amount of days, months, years, hours, minutes and seconds + from a DateTime object. - Exception: + Exception: @@ -1263,17 +1289,17 @@ - DOM: + DOM: DOMNode::getLineNo - - Get line number of parsed node. + - Get the line number of a parsed node. - PDO_FIREBIRD: + PDO_FIREBIRD: @@ -1283,7 +1309,7 @@ - Reflection: + Reflection: @@ -1294,7 +1320,7 @@ ReflectionClass::getShortName() - - Returns the short name of the class (without namespace part). + - Returns the short name of this class (without namespace part). @@ -1329,7 +1355,7 @@ - SPL: + SPL: @@ -1345,7 +1371,7 @@ - XSL: + XSL: @@ -1358,20 +1384,20 @@
New Extensions - - The following are new extensions added (by default) as of PHP 5.3.0: - + + The following new extensions are added (by default) as of PHP 5.3.0: + Enchant - - Abstraction layer ontop of spell libraries + - An abstraction layer above various spelling libraries Fileinfo - - Improved and more solid replacement (full BC) for the + - An improved and more solid replacement, featuring full BC, for the Mimetype extension, which has been removed. @@ -1396,22 +1422,25 @@ - + mysqlnd is a new core library shipped with PHP. It is a PHP-specific replacement for libmysql. mysqlnd will be used to build the - mysql, mysqli - and PDO_MYSQL if libmysql isnt found - on the system, but it may also be used instead of libmysql. - + mysql, + mysqli + and PDO_MySQL extensions if libmysql + isnt found on the system. It may also be used instead of libmysql even when + libmysql is present. mysqlnd is recommended for all PHP installations for + performance reasons. +
Removed Extensions - - These extensions have been moved to PECL and are no longer - part of the PHP distribution. The PECL package version of - these extensions will be created according to user demand. - + + These extensions have been moved to PECL and are no longer part of the PHP + distribution. The PECL package versions of these extensions will be created + according to user demand. + @@ -1452,29 +1481,28 @@ sybase - - Discontinued, use sybase_ct - instead, which still is in the PHP Core. + - Discontinued; use the sybase_ct + extension instead mhash - - Discontinued, use hash + - Discontinued; use the hash extension instead. hash has full mhash - compatibility so all existing applications using the old functions still - work. + compatibility; all existing applications using the old functions will + continue to work.
-
Other changes to extensions - - The following extensions can no longer be disabled - during compilation configure: - + + The following extensions can no longer be disabled during build + configuration: + @@ -1492,9 +1520,9 @@ - - Changes in behaviour/new features to extensions: - + + Changes in extension behaviour, and new features: + @@ -1511,7 +1539,8 @@ Network - - now contains an extra "entries" indice, containing the TXT elements + - dns_check_record now returns an extra "entries" + index, containing the TXT elements. @@ -1529,24 +1558,29 @@ OCI8 - - Calling oci_close on a persistent - connection, or on a variable that references a persistent - connection going out of scope, will now roll back any uncommitted - transaction. You should explicitly commit or rollback as needed. Setting - oci8.old_oci_close_semantics=On - in &php.ini; gives the old behaviour. + - A call to oci_close on a persistent connection, or a + variable referencing a persistent connection going out of scope, will now + roll back any uncommitted transaction. To avoid unexpected behavior, + explicitly issue a commit or roll back as needed. The old behavior can be + enabled with the INI directive + oci8.old_oci_close_semantics. - Supports Database Resident Connection Pooling (DRCP), Fast - Application Notification (FAN) support, Oracle External - Authentication (not supported on Windows). - oci_bind_by_name now supports SQLT_AFC (aka CHAR datatype). + Database Resident Connection Pooling (DRCP) and Fast Application + Notification (FAN) are now supported. + + + Oracle External Authentication is now supported (except on Windows). + + + The oci_bind_by_name function now supports SQLT_AFC + (aka the CHAR datatype). OpenSSL - - There is now support for OpenSSL digest and cipher functions. It is also + - OpenSSL digest and cipher functions are now supported. It is also now possible to access the internal values of DSA, RSA and DH keys. @@ -1554,8 +1588,9 @@ Session - Sessions will no longer store session-files in "/tmp" - where open_basedir restrictions apply, - unless "/tmp" is explicitly added to the list of allowed paths. + when open_basedir restrictions + apply, unless "/tmp" is explicitly added to the list of + allowed paths. @@ -1576,11 +1611,11 @@
New Classes - + The following classes were introduced in PHP 5.3.0: - + - Date/Time: + Date/Time: @@ -1594,7 +1629,7 @@ - Phar: + Phar: @@ -1618,7 +1653,7 @@ - SPL: + SPL: @@ -1686,7 +1721,7 @@
New Global Constants - PHP Core: + PHP Core: @@ -1780,7 +1815,7 @@ - cURL: + cURL: @@ -1789,7 +1824,7 @@ - GD: + GD: @@ -1798,7 +1833,7 @@ - JSON: + JSON: @@ -1852,7 +1887,7 @@ - LDAP: + LDAP: @@ -1861,7 +1896,7 @@ - libxml: + libxml: @@ -1870,7 +1905,7 @@ - PCRE: + PCRE: @@ -1879,7 +1914,7 @@ - PCNTL: + PCNTL: @@ -2121,22 +2156,22 @@
Changes to INI file handling - - PHP 5.3.0 have significantly improved performance, parsing and - new features syntax features. - + + PHP 5.3.0 has significantly improved performance and parsing of INI files, + and adds several new syntax features. + - The standard &php.ini; files have been re-organized, and renamed. - php.ini-development have settings thats recommded - for use in a development environments. php.ini-production - is configured to production environments. + The standard &php.ini; files have been re-organized and renamed. + php.ini-development contains settings recommded + for use in development environments. php.ini-production + contains settings recommended for use in production environments. - There is now support for special sections: + There is now support for two special sections: [PATH=/opt/httpd/www.example.com/] and [HOST=www.example.com]. Directives set in these sections cannot be overridden by user-defined INI files or at @@ -2146,32 +2181,35 @@ - zend_extension_debug and zend_extension_ts - have been removed. Instead use the zend_extension - directive to load all Zend Extensions. + zend_extension_debug and + zend_extension_ts have been removed. Use the + zend_extension directive to load all Zend Extensions. zend.ze1_compatibility_mode has been removed. If this - INI directive is set to on, then an E_ERROR is + INI directive is set to On, an E_ERROR error is emitted at startup. It is now possible to use the full path to load modules using the - "extension" directive. + "extension" + directive. - "ini-variables" can now be used almost anywhere in a &php.ini; file. + "ini-variables" can now be used almost anywhere in a + &php.ini; file. - Runtime tightening of open_basedir restrictions is now possible. + Runtime tightening of open_basedir restrictions is now + possible. @@ -2211,14 +2249,15 @@ - + The following new ini directives have been added: - + - user_ini.filename and user_ini.cache_ttl - for the new user initialization mechanism. + user_ini.filename and + user_ini.cache_ttl for the new .htaccess-style user INI + file mechanism. @@ -2231,14 +2270,14 @@ Added request_order. - Allows controlling which exactly request options should be available in + Allows controlling which external variables will be available in $_REQUEST. - - The following ini directives have changed default value: - + + The following ini directives have new default values: + @@ -2266,8 +2305,9 @@ - SplObjectStorage now has ArrayAccess - support. It is also now possible to store associative information with objects in + SplObjectStorage now has + ArrayAccess support. It is now also possible to + store associative information with objects in SplObjectStorage. @@ -2279,18 +2319,19 @@ - var_dump outputs now includes private object members. + var_dump output now includes private object members. - session_start now returns &false; when the session startup fails. + session_start now returns &false; when session startup + fails. - property_exists now checks the existence of a property independent of - accessibility (like method_exists). + property_exists now checks the existence of a property + independent of accessibility (like method_exists). @@ -2307,9 +2348,10 @@ - The directory functions opendir, - scandir and dir now use the default - context if no context is passed as an argument to them. + The directory functions + opendir, scandir, and + dir now use the default stream context if no explicit + context is passed. @@ -2322,23 +2364,16 @@ - getopt accepts "long options" now on all platforms. - Optional values and = as seperator for shortopts are now supported. + getopt now accepts "long options" on all platforms. + Optional values and = as a separator for short options + are now supported. - fopen got a new mode option - (n), which passes will pass - O_NONBLOCK to the underlaying - syscall() call. - - - - - opendir, dir and - scandir functions will not use the default context - if no context argument is passed. + fopen has a new mode option (n), + which passes O_NONBLOCK to the underlying + open() system call.