com php-src: Merge branch 'PHP-7.2': UPGRADING
| From: | Christoph Michael Becker | Date: | Wed, 13 Sep 2017 22:36:43 +0000 |
| Subject: | com php-src: Merge branch 'PHP-7.2': UPGRADING | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-99428@lists.php.net to get a copy of this message | ||
Commit: 9848e417c353ba4333ba2cde162e1f0a59d8b2e5
Author: Christoph M. Becker <cmbecker69@gmx.de> Thu, 14 Sep 2017 00:35:49 +0200
Parents: 0a86f159f435b7f9c34105516a80a30db534d23a b5052f0110763ef591798ba34f4b95c5bf818960
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9848e417c353ba4333ba2cde162e1f0a59d8b2e5
Log:
Merge branch 'PHP-7.2'
* PHP-7.2:
[ci skip] Fix typos in UPGRADING
Changed paths:
MM UPGRADING
Diff:
diff --cc UPGRADING
index 04c76a9,4854ab7..15160d8
--- a/UPGRADING
+++ b/UPGRADING
@@@ -19,20 -19,85 +19,20 @@@ PHP 7.3 UPGRADE NOTE
1. Backward Incompatible Changes
========================================
-- Core:
- . gettype() will now return "resource (closed)" instead of "unknown type"
for
- closed resources.
- . is_object() will now return true for objects of class
- __PHP_Incomplete_Class.
- .. Support for Netware operating systems has been removed.
- . Casting arrays to objects (with (object) or settype()) will now convert
- integer keys to string property names. This fixes the behaviour of previous
- versions, where integer keys would become inaccessible properties with
- integer names.
- . Casting objects to arrays (with (array) or settype()), and retrieving
- object properties in an array with get_object_vars(), will now convert
- numeric string property names (that is, property names of the format
- /^(0|(-?[1-9][0-9]*))$/ where PHP_INT_MIN <= n <= PHP_INT_MAX) to integer
- keys. This fixes the behaviour of previous versions, where numeric string
- property names would become inaccessible string keys.
- . Unqualified references to undefined constants now generate a Warning instead
- of a notice. They will generate an Error in a future version of PHP.
- (https://wiki.php..net/rfc/deprecate-bareword-strings)
- . Minimum supported Windows versions are Windows 7/Server 2008 R2.
- . Initial trait property value compatibility check will no longer perform
- any casts. (Bug #74269)
- . "object" (in any case) can no longer be used as a class name.
+Core:
+ . The ext_skel utility has been completely redesigned with new options and
- some old options removed. This is now written in PHP and have no external
++ some old options removed. This is now written in PHP and has no external
+ dependencies.
+ . Support for BeOS has been dropped.
-- BCMath:
- . The bcmod() function no longer truncates fractional numbers to integers. As
- such, its behavior now follows fmod() rather than the
% operator. For
- example bcmod('4', '3.5') now returns '0.5' instead
of '1'.
+BCMath:
+ . All warnings thrown by BCMath functions are now using PHP's error handling.
+ Formerly some warnings have directly been written to stderr.
-- Hash:
- . The hash_hmac(), hash_hmac_file(), hash_pbkdf2() and hash_init() (with
- HASH_HMAC) functions no longer accept non-cryptographic hashes..
-
-- JSON
- . The json_decode() option JSON_OBJECT_AS_ARRAY is used if the second
- parameter (assoc) is null. Previously JSON_OBJECT_AS_ARRAY was always
- ignored.
-
-- Session:
- . Removed register_globals related code and "!" can be used as $_SESSION key name.
- . Session is made to manage session status correctly and prevents invalid operations.
- Only inappropriate codes are affected by this change.. If you have problems with this,
- it means you have problem in your code.
- . Functions are made to set or return correct session status..
- session_start(), session_status(), session_regenerate_id()
- . Functions are made to return bool from null. These functions have void parameter
- and void parameter is checked.
- session_unset(), session_write_close()/session_commit(), session_abort(),
- session_reset()
- . Functions prohibit invalid operations with regard to session status and
- HTTP header status, returns correct bool return value.
- session_start(), session_set_cookie_params(), session_name(), session_module_name(),
- session_set_save_handler(), session_regenerate_id(), session_cache_limiter(),
- session_cache_expire(), session_unset(), session_destroy(),
- session_write_close()/session_commit(), session_reset()
- . INI value change by ini_set() returns update status correctly. Invalid INI modifications
- are checked and made to fail.
- session.name, session.save_path, session.cookie_lifetime, session.cookie_path,
- session.cookie_domain, session.cookie_httponly, session.cookie_secure,
- session.use_cookies, session.use_only_cookies, session.use_strict_mode,
- session.referer_check, session.cache_limiter, session.cache_expire,
- session.lazy_write, session.save_handler, session.serialize_handler,
- session.gc_probability, session.gc_divior, session.gc_maxlifetime,
- . Some E_ERRORs are changed to E_WARNING since session status is managed correctly.
- session_start()
- . Session no longer initialize $_SESSION for invalid and useless session.
- session_start()
- . When headers are already sent and try to set new INI values, session_name(),
- session_module_name(), session_save_path(), session_cache_limiter() and
- session_cache_expire() are no longer works. Older PHPs accepts new values even
- if new values will not be effective.
- This new corrected behavior may affect command line mode CLI scripts that manage
- sessions. Use output buffer just like web applications to resolve problems on
- CLI scripts.
-
-- Standard:
- . Sequences generated by mt_rand() and rand() for a specific seed may differ
- from PHP 7.1 on 64-bit machines. This change was necessary to resolve a
- modulo bias bug in the implementation.
+Standard:
+ . getimagesize() and related functions now report the mime type of BMP images
+ as image/bmp instead of image/x-ms-bmp, since the former has been registered
+ with the IANA (see RFC 7903).
========================================
2. New Features
@@@ -73,16 -283,33 +73,16 @@@ Date
9. Other Changes to Extensions
========================================
-- EXIF:
- . Added extended exif tag support for the following formats:
- Samsung, DJI, Panasonic, Sony, Pentax, Minolta, Sigma/Foveon,
- AGFA, Kyocera, Ricoh & Epson.
- . exif_read_data() and exif_thumbnail() now supports a passed streams as their
- first parameter.
-
-- GD:
- . Removed --enable-gd-native-ttf configuration option which was unused as
- of PHP 5.5.0 anyway.
- . imagegd() stores truecolor images as real truecolor images. Formerly, they
- have been converted to palette.
- . imageantialias() is now also available if compiled with a system libgd.
+ FTP:
+ . Set default transfer mode to binary
-- Mbstring
- . mb_check_encoding() accepts array parameter. Both key and value
- encodings are checked recursively.
- . mb_convert_encoding() accepts array parameter. Only value encodings
- are converted recursively.
+ ODBC:
+ . Support for ODBCRouter has been removed.
+ . Support for Birdstep has been removed.
-- PDO_OCI:
- . The '--with-pdo-oci' configure syntax no longer needs the vesion number of the
- Oracle Instant Client.
-
-- pdo_sqlite
- . Use sqlite3_prepare_v2() and sqlite3_close_v2() functions instead of their
- legacy counterparts.
+ ZIP:
- . Bunled libzip have been dropped,
++ . Bunled libzip has been dropped,
+ system library is now required.
========================================
10. New Global Constants
@@@ -102,9 -344,12 +102,9 @@@ PGSQL
11. Changes to INI File Handling
========================================
-- sql.safe_mode
+- birdstep.max_links
- . This INI directive have been removed.
+ . This INI directive has been removed.
-- realpath_cache_size
- . Set to 4096k by default
-
========================================
12. Windows Support
========================================