2005-11-23 23:01:54 +08:00
|
|
|
$Id$
|
2005-11-23 07:49:13 +08:00
|
|
|
|
2012-03-06 04:14:04 +08:00
|
|
|
PHP X.Y UPGRADE NOTES
|
|
|
|
|
|
|
|
1. Backward Incompatible Changes
|
|
|
|
2. New Features
|
2014-05-01 18:27:38 +08:00
|
|
|
3. Changes in SAPI modules
|
|
|
|
4. Deprecated Functionality
|
|
|
|
5. Changed Functions
|
|
|
|
6. New Functions
|
|
|
|
7. New Classes and Interfaces
|
|
|
|
8. Removed Extensions
|
|
|
|
9. Other Changes to Extensions
|
|
|
|
10. New Global Constants
|
|
|
|
11. Changes to INI File Handling
|
2014-08-22 19:35:07 +08:00
|
|
|
12. Windows Support
|
|
|
|
13. Other Changes
|
2010-03-25 00:23:50 +08:00
|
|
|
|
2005-11-23 07:49:13 +08:00
|
|
|
|
2010-03-25 00:23:50 +08:00
|
|
|
========================================
|
2012-03-06 04:14:04 +08:00
|
|
|
1. Backward Incompatible Changes
|
2010-03-25 00:23:50 +08:00
|
|
|
========================================
|
2009-06-25 05:16:53 +08:00
|
|
|
|
2014-09-21 07:47:25 +08:00
|
|
|
- Core
|
2014-10-06 04:06:34 +08:00
|
|
|
. Added null coalesce operator (??).
|
|
|
|
(RFC: https://wiki.php.net/rfc/isset_ternary)
|
|
|
|
. list() now always supports ArrayAccess and never supports strings.
|
|
|
|
Previously both were accepted in some situations and not in others.
|
|
|
|
(RFC: https://wiki.php.net/rfc/fix_list_behavior_inconsistency)
|
2014-09-21 07:47:25 +08:00
|
|
|
. Bitwise shifts by negative numbers of bits are disallowed (throws E_WARNING
|
|
|
|
and gives FALSE, like a division by zero).
|
|
|
|
. Left bitwise shifts by a number of bits beyond the bit width of an integer
|
|
|
|
will always result in 0, even on CPUs which wrap around.
|
|
|
|
. Right bitwise shifts by a number of bits beyond the bit width of an integer
|
|
|
|
will always result in 0 or -1 (depending on sign), even on CPUs which wrap
|
|
|
|
around.
|
2014-10-06 04:06:34 +08:00
|
|
|
. Removed ASP (<%) and script (<script language=php>) tags.
|
|
|
|
(RFC: https://wiki.php.net/rfc/remove_alternative_php_tags)
|
2014-09-21 07:47:25 +08:00
|
|
|
|
2013-12-05 18:30:52 +08:00
|
|
|
- DBA
|
2014-09-25 05:55:13 +08:00
|
|
|
. dba_delete() now returns false if the key was not found for the inifile
|
2013-12-05 18:30:52 +08:00
|
|
|
handler, too.
|
2009-01-29 01:23:28 +08:00
|
|
|
|
2014-09-25 05:55:13 +08:00
|
|
|
- GMP
|
2014-09-29 02:39:19 +08:00
|
|
|
. Requires libgmp version 4.2 or newer now.
|
2014-09-25 05:55:13 +08:00
|
|
|
. gmp_setbit() and gmp_clrbit() now return FALSE for negative indices, making
|
|
|
|
them consistent with other GMP functions.
|
|
|
|
|
2012-03-06 04:14:04 +08:00
|
|
|
========================================
|
|
|
|
2. New Features
|
|
|
|
========================================
|
2009-01-29 01:23:28 +08:00
|
|
|
|
2014-08-22 19:35:07 +08:00
|
|
|
- Core
|
|
|
|
. Support for strings with length >= 2^31 bytes in 64 bit builds
|
2014-10-26 00:05:52 +08:00
|
|
|
. Closure::call() method added
|
2014-08-22 19:35:07 +08:00
|
|
|
|
2014-08-07 02:56:32 +08:00
|
|
|
- Standard
|
|
|
|
. intdiv() function for integer division added.
|
2013-10-08 22:20:07 +08:00
|
|
|
|
2012-03-06 04:14:04 +08:00
|
|
|
========================================
|
2014-05-01 18:27:38 +08:00
|
|
|
3. Changes in SAPI modules
|
2012-03-06 04:14:04 +08:00
|
|
|
========================================
|
2009-01-29 01:23:28 +08:00
|
|
|
|
2014-08-20 07:38:33 +08:00
|
|
|
- FPM
|
|
|
|
. Fixed bug #65933 (Cannot specify config lines longer than 1024 bytes).
|
2009-01-29 01:23:28 +08:00
|
|
|
|
2012-03-06 04:14:04 +08:00
|
|
|
========================================
|
2014-05-01 18:27:38 +08:00
|
|
|
4. Deprecated Functionality
|
2012-03-06 04:14:04 +08:00
|
|
|
========================================
|
2009-01-29 01:23:28 +08:00
|
|
|
|
|
|
|
|
2012-03-06 04:14:04 +08:00
|
|
|
========================================
|
2014-05-01 18:27:38 +08:00
|
|
|
5. Changed Functions
|
2012-03-06 04:14:04 +08:00
|
|
|
========================================
|
2009-06-24 03:40:31 +08:00
|
|
|
|
2014-09-01 22:30:09 +08:00
|
|
|
- parse_ini_file():
|
|
|
|
- parse_ini_string():
|
|
|
|
Added scanner mode INI_SCANNER_TYPED to yield typed .ini values.
|
|
|
|
|
2013-10-03 21:23:05 +08:00
|
|
|
|
2012-03-06 04:14:04 +08:00
|
|
|
========================================
|
2014-05-01 18:27:38 +08:00
|
|
|
6. New Functions
|
2012-03-06 04:14:04 +08:00
|
|
|
========================================
|
2009-01-29 01:23:28 +08:00
|
|
|
|
2013-11-04 20:32:45 +08:00
|
|
|
|
2012-03-06 04:14:04 +08:00
|
|
|
========================================
|
2014-05-01 18:27:38 +08:00
|
|
|
7. New Classes and Interfaces
|
2012-03-06 04:14:04 +08:00
|
|
|
========================================
|
2009-01-29 01:23:28 +08:00
|
|
|
|
|
|
|
|
2012-03-06 04:14:04 +08:00
|
|
|
========================================
|
2014-05-01 18:27:38 +08:00
|
|
|
8. Removed Extensions
|
2012-03-06 04:14:04 +08:00
|
|
|
========================================
|
2009-01-29 01:23:28 +08:00
|
|
|
|
|
|
|
|
2012-03-06 04:14:04 +08:00
|
|
|
========================================
|
2014-05-01 18:27:38 +08:00
|
|
|
9. Other Changes to Extensions
|
2012-03-06 04:14:04 +08:00
|
|
|
========================================
|
2012-02-21 18:34:42 +08:00
|
|
|
|
2013-07-26 01:54:03 +08:00
|
|
|
|
2012-03-06 04:14:04 +08:00
|
|
|
========================================
|
2014-05-01 18:27:38 +08:00
|
|
|
10. New Global Constants
|
2012-03-06 04:14:04 +08:00
|
|
|
========================================
|
2010-03-25 00:23:50 +08:00
|
|
|
|
2014-08-01 23:28:20 +08:00
|
|
|
- Core
|
2014-08-07 02:56:32 +08:00
|
|
|
. PHP_INT_MIN added.
|
2010-03-25 00:23:50 +08:00
|
|
|
|
2012-03-06 04:14:04 +08:00
|
|
|
========================================
|
2014-05-01 18:27:38 +08:00
|
|
|
11. Changes to INI File Handling
|
2012-03-06 04:14:04 +08:00
|
|
|
========================================
|
2010-08-30 17:38:47 +08:00
|
|
|
|
2014-10-06 04:06:34 +08:00
|
|
|
- Core
|
|
|
|
. Removed asp_tags ini directive. Trying to enable it will result in a fatal
|
|
|
|
error.
|
|
|
|
|
2014-08-22 19:35:07 +08:00
|
|
|
========================================
|
|
|
|
12. Windows Support
|
|
|
|
========================================
|
|
|
|
|
|
|
|
- Core
|
|
|
|
. Support for native 64 bit integers in 64 bit builds
|
|
|
|
. Support for large files in 64 bit builds
|
2011-07-27 08:18:35 +08:00
|
|
|
|
2012-03-06 04:14:04 +08:00
|
|
|
========================================
|
2014-08-22 19:35:07 +08:00
|
|
|
13. Other Changes
|
2012-03-06 04:14:04 +08:00
|
|
|
========================================
|
2012-07-15 04:44:21 +08:00
|
|
|
|
2014-09-21 07:47:25 +08:00
|
|
|
- Core
|
|
|
|
. Instead of being undefined and platform-dependant, NaN and Infinity will
|
|
|
|
always be zero when casted to integer.
|
2014-10-06 05:54:32 +08:00
|
|
|
. Calling a method on a non-object no longer raises a fatal error; see
|
|
|
|
also: https://wiki.php.net/rfc/catchable-call-to-member-of-non-object
|
2014-09-21 07:47:25 +08:00
|
|
|
|
2014-04-05 12:43:41 +08:00
|
|
|
- Standard
|
|
|
|
. call_user_method() and call_user_method_array() no longer exists.
|