php-src/NEWS

212 lines
9.3 KiB
Plaintext
Raw Normal View History

2014-12-14 21:13:07 +00:00
PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? 20??, PHP 7.0.0
2013-11-27 08:34:40 +00:00
- CLI server:
. Refactor MIME type handling to use a hash table instead of linear search.
(Adam)
. Update the MIME type list from the one shipped by Apache HTTPD. (Adam)
2014-08-01 15:28:20 +00:00
- Core:
Squashed commit of the following: commit 2399fc84c541da9c2176c5b7f6dd039a3c84dc64 Author: Dmitry Stogov <dmitry@zend.com> Date: Fri Apr 10 12:38:08 2015 +0300 Removed useless assignment commit 796b6338174348eee0d74a67706d77b7ce1a60c3 Author: Dmitry Stogov <dmitry@zend.com> Date: Fri Apr 10 12:35:31 2015 +0300 Fixed execution with overriden zend_execute_ex() commit 4a9fb125aa999059f8bc42ebb6ee573c7866b35b Author: Dmitry Stogov <dmitry@zend.com> Date: Fri Apr 10 02:02:58 2015 +0300 Fixed executor without global registers commit d456c30e00589ccda35a4b57ae903ef2d3c07d95 Author: Dmitry Stogov <dmitry@zend.com> Date: Fri Apr 10 01:30:35 2015 +0300 Restored original behavior for tests/classes/__call_004.phpt commit 479646d37fef050536f1afb12b082618f1f1a3d0 Author: Dmitry Stogov <dmitry@zend.com> Date: Fri Apr 10 00:32:17 2015 +0300 Fixed test. We don't keep stack frame for fake function anymore. commit 9ae61e33e24b2c811d4ab1ca4ab22847c64a780e Author: Dmitry Stogov <dmitry@zend.com> Date: Fri Apr 10 00:30:09 2015 +0300 Use ZEND_ACC_CALL_VIA_TRAMPOLINE instead of ZEND_ACC_CALL_VIA_HANDLER. Keep ZEND_ACC_CALL_VIA_HANDLER for compatibility. commit 0a8403a2a0c27aa3db271774f8559739a6b8400e Author: Dmitry Stogov <dmitry@zend.com> Date: Fri Apr 10 00:05:43 2015 +0300 Rename PROXY_CALL into CALL_TRAMPLINE. Generalize API to allow reuse EG(trampline) for other purposes. commit 4ea0525c10554e36185a0b8b6303106813b6a1c2 Author: Dmitry Stogov <dmitry@zend.com> Date: Thu Apr 9 23:22:25 2015 +0300 Reuse EG(proxy_call_op) for all proxy. Move proxy related functions from zend_objects_API to zend_object_handlers. commit 529bf737ca388ad56fb4ae20ccb81e6276f25ec0 Author: Dmitry Stogov <dmitry@zend.com> Date: Thu Apr 9 21:42:23 2015 +0300 Accurate use of proxy_call commit 5d62837d5ba3855743fe1981786ebd65d9da0b63 Merge: 83e749f 690843f Author: Dmitry Stogov <dmitry@zend.com> Date: Thu Apr 9 19:40:00 2015 +0300 Merge branch 'master' into opcodefy-call * master: Fixed GOTO executor Fixed typo Changed ArrayIterator implementation using zend_hash_iterator_... API. Allowed modification of itterated ArrayObject using the same behavior as proposed in `Fix "foreach" behavior`. Removed "Array was modified outside object and internal position is no longer valid" hack. commit 83e749ff3b6623e39b236a72e9b907d5b788ae5e Author: Dmitry Stogov <dmitry@zend.com> Date: Thu Apr 9 19:39:10 2015 +0300 Improved ZEND_PROXY_CALL commit 0c829afc534e6d5ff27a0dea3a4815da303bd1ef Author: Dmitry Stogov <dmitry@zend.com> Date: Thu Apr 9 15:14:49 2015 +0300 Reverted white-space changes commit df65144488afa3e9020d75e1ada5529b138afc5a Merge: 5fd2f97 97756d9 Author: Dmitry Stogov <dmitry@zend.com> Date: Thu Apr 9 14:37:07 2015 +0300 Merge branch 'opcodefy-call' of github.com:laruence/php-src into opcodefy-call * 'opcodefy-call' of github.com:laruence/php-src: Ready for PR Fixed static call Improve performance by using prealloated op_arrray Respect called_scope Support internal magical __call/__callStatic opcode-fy magical __callStatic Opcode-fy magical __call commit 97756d9190e07a072a7b48135304dc25a964845f Author: Xinchen Hui <laruence@gmail.com> Date: Thu Apr 9 19:07:59 2015 +0800 Ready for PR commit 74f993084627061e783645a866390b68e2981698 Author: Xinchen Hui <laruence@gmail.com> Date: Thu Apr 9 19:03:00 2015 +0800 Fixed static call commit ec1d9eb592db0c3b7b0e3d21e7f445ed8bccfd4d Author: Xinchen Hui <laruence@gmail.com> Date: Thu Apr 9 18:23:17 2015 +0800 Improve performance by using prealloated op_arrray commit df7fbbf949c99f2c5ae3da2a1199235651c7cc82 Author: Xinchen Hui <laruence@gmail.com> Date: Thu Apr 9 15:10:02 2015 +0800 Respect called_scope commit 769d1d59fb48b6f7f93d7412eefbf26135fa3e59 Author: Xinchen Hui <laruence@gmail.com> Date: Thu Apr 9 12:19:23 2015 +0800 Support internal magical __call/__callStatic commit a980fedd5b0e0683713dd4f6eaad62adf4b4732f Author: Xinchen Hui <laruence@gmail.com> Date: Wed Apr 8 18:35:41 2015 +0800 opcode-fy magical __callStatic commit 73855f7d53baa2efc2b8a88314f51c784c81b59d Author: Xinchen Hui <laruence@gmail.com> Date: Wed Apr 8 14:21:55 2015 +0800 Opcode-fy magical __call
2015-04-10 20:01:00 +00:00
. Improved __call() and __callStatic() magic method handling. Now they are
called in a stackless way using ZEND_CALL_TRAMPOLINE opcode, without
additional stack frame. (Laruence, Dmitry)
. Fixed weird operators behavior. Division by zero now emits warning and
returns +/-INF, modulo by zero and intdid() throws an exception, shifts
by negative offset throw exceptions. Compile-time evaluation of division
by zero is disabled. (Dmitry, Andrea, Nikita)
. Fixed bug #69371 (Hash table collision leads to inaccessible array keys).
(Laruence)
. Fixed bug #68933 (Invalid read of size 8 in zend_std_read_property).
2015-01-31 11:12:30 +00:00
(Laruence, arjen at react dot com)
. Fixed bug #68868 (Segfault in clean_non_persistent_constants() in SugarCRM
6.5.20). (Laruence)
2014-10-31 09:38:18 +00:00
. Fixed bug #68104 (Segfault while pre-evaluating a disabled function).
(Laruence)
. Fixed bug #68252 (segfault in Zend/zend_hash.c in function
_zend_hash_del_el). (Laruence)
2014-08-01 15:28:20 +00:00
. Added PHP_INT_MIN constant. (Andrea)
2014-10-25 16:05:52 +00:00
. Added Closure::call() method. (Andrea)
2014-09-01 14:28:45 +00:00
. Implemented FR #38409 (parse_ini_file() looses the type of booleans). (Tjerk)
. Fixed bug #67959 (Segfault when calling phpversion('spl')). (Florian)
. Implemented the RFC `Catchable "Call to a member function bar() on a
2014-11-23 06:23:55 +00:00
non-object"`. (Timm)
. Added options parameter for unserialize allowing to specify acceptable
classes (https://wiki.php.net/rfc/secure_unserialize). (Stas)
. Fixed bug #68185 ("Inconsistent insteadof definition."- incorrectly
triggered). (Julien)
2014-11-28 12:36:16 +00:00
. Fixed bug #65419 (Inside trait, self::class != __CLASS__). (Julien)
2014-12-12 15:14:52 +00:00
. Fixed bug #65576 (Constructor from trait conflicts with inherited
constructor). (dunglas at gmail dot com)
. Fixed bug #63734 (Garbage collector can free zvals that are still
referenced). (Dmitry)
2014-12-05 04:15:23 +00:00
. Removed ZEND_ACC_FINAL_CLASS, promoting ZEND_ACC_FINAL as final class
modifier. (Guilherme Blanco)
2014-12-14 21:32:42 +00:00
. is_long() & is_integer() is now an alias of is_int(). (Kalle)
2014-12-14 21:49:00 +00:00
. Implemented FR #55467 (phpinfo: PHP Variables with $ and single quotes). (Kalle)
. Fixed bug #55415 (php_info produces invalid anchor names). (Kalle, Johannes)
2014-12-19 01:06:46 +00:00
. Added ?? operator. (Andrea)
2015-02-19 22:02:04 +00:00
. Added <=> operator. (Andrea)
2014-12-19 01:06:46 +00:00
. Added \u{xxxxx} Unicode Codepoint Escape Syntax. (Andrea)
. Fixed oversight where define() did not support arrays yet const syntax did.
(Andrea, Dmitry)
. Use "integer" and "float" instead of "long" and "double" in ZPP, type hint
and conversion error messages. (Andrea)
. Implemented FR #55428 (E_RECOVERABLE_ERROR when output buffering in output
buffering handler). (Kalle)
. Removed scoped calls of non-static methods from an incompatible $this
context. (Nikita)
. Removed support for #-style comments in ini files. (Nikita)
2014-09-10 13:55:26 +00:00
. Removed support for assigning the result of new by reference. (Nikita)
. Invalid octal literals in source code now produce compile errors, fixes
PHPSadness #31. (Andrea)
2014-09-11 11:03:58 +00:00
. Removed dl() function on fpm-fcgi. (Nikita)
. Removed support for hexadecimal numeric strings. (Nikita)
2015-02-10 07:59:10 +00:00
. Removed obsolete extensions and SAPIs. See the full list in UPGRADING. (Anatol)
. Added NULL byte protection to exec, system and passthru. (Yasuo)
. Added error_clear_last() function. (Reeze Xia)
2015-03-17 18:48:55 +00:00
. Fixed bug #68797 (Number 2.2250738585072012e-308 converted incorrectly).
(Anatol)
. Implemented the RFC `Scalar Type Decalarations v0.5`. (Anthony)
. Implemented the RFC `Group Use Declarations`. (Marcio)
2015-03-25 14:22:37 +00:00
. Implemented the RFC `Continue Output Buffering`. (Mike)
. Implemented the RFC `Constructor behaviour of internal classes`. (Dan, Dmitry)
. Implemented the RFC `Fix "foreach" behavior`. (Dmitry)
2015-01-30 05:14:44 +00:00
- Curl:
. Fixed bug #68937 (Segfault in curl_multi_exec). (Laruence)
. Removed support for unsafe file uploads. (Nikita)
2014-12-10 10:24:43 +00:00
- Date:
. Fixed day_of_week function as it could sometimes return negative values
internally. (Derick)
. Removed $is_dst parameter from mktime() and gmmktime(). (Nikita)
. Removed date.timezone warning
(https://wiki.php.net/rfc/date.timezone_warning_removal). (Bob)
. Added "v" DateTime format modifier to get the 3-digit version of fraction
of seconds. (Mariano Iglesias)
. Implemented FR #69089: Added DateTime::RFC3339_EXTENDED to output in
RFC3339 Extended format which includes fraction of seconds (Mariano
Iglesias)
2013-12-05 10:30:52 +00:00
- DBA:
. Fixed bug #62490 (dba_delete returns true on missing item (inifile)). (Mike)
2015-01-20 14:11:19 +00:00
. Fixed bug #68711 (useless comparisons). (bugreports at internot dot info)
2013-12-23 23:23:03 +00:00
2014-11-11 08:33:36 +00:00
- DOM:
. Made DOMNode::textContent writeable. (Tjerk)
2014-02-27 00:19:08 +00:00
- GD:
. Made fontFetch's path parser thread-safe. (Sara)
2013-11-04 12:32:45 +00:00
2014-11-11 08:33:36 +00:00
- Fileinfo:
. Fixed bug #66242 (libmagic: don't assume char is signed). (ArdB)
2014-11-27 10:40:48 +00:00
- Filter:
. New FILTER_VALIDATE_DOMAIN and better RFC conformance for FILTER_VALIDATE_URL. (Kevin Dunglas)
2014-11-11 08:33:36 +00:00
- FPM:
2015-03-01 09:44:30 +00:00
. Fixed bug #68945 (Unknown admin values segfault pools). (Laruence)
2014-11-11 08:33:36 +00:00
. Fixed bug #65933 (Cannot specify config lines longer than 1024 bytes). (Chris Wright)
2014-12-14 13:23:43 +00:00
. Implement request #67106 (Split main fpm config). (Elan Ruusamäe, Remi)
2014-11-11 08:33:36 +00:00
- Intl:
. Removed deprecated aliases datefmt_set_timezone_id() and
IntlDateFormatter::setTimeZoneID(). (Nikita)
- JSON
2015-02-02 19:48:19 +00:00
. Replace non-free JSON parser with a parser from Jsond extension, fixes #63520
(JSON extension includes a problematic license statement). (Jakub Zelenka)
. Fixed bug #68938 (json_decode() decodes empty string without error).
(jeremy at bat-country dot us)
2015-02-02 19:48:19 +00:00
- LiteSpeed:
. Updated LiteSpeed SAPI code from V5.5 to V6.6. (George Wang)
2014-12-10 10:24:43 +00:00
- Mcrypt:
. Fixed possible read after end of buffer and use after free. (Dmitry)
. Removed mcrypt_generic_end() alias. (Nikita)
2015-03-09 10:14:35 +00:00
. Removed mcrypt_ecb(), mcrypt_cbc(), mcrypt_cfb(), mcrypt_ofb(). (Nikita)
2014-12-10 10:24:43 +00:00
2014-12-24 10:30:36 +00:00
- Opcache:
2015-01-13 15:39:33 +00:00
. Fixed bug with try blocks being removed when extended_info opcode
generation is turned on. (Laruence)
2014-12-24 10:30:36 +00:00
. Fixed bug #68644 (strlen incorrect : mbstring + func_overload=2 +UTF-8
+ Opcache). (Laruence)
2015-01-23 06:05:28 +00:00
- OpenSSL:
2015-03-10 05:15:04 +00:00
. Added "alpn_protocols" SSL context option allowing encrypted client/server
streams to negotiate alternative protocols using the ALPN TLS extension when
built against OpenSSL 1.0.2 or newer. Negotiated protocol information is
accessible through stream_get_meta_data() output.
2015-01-23 06:05:28 +00:00
2014-11-29 13:51:18 +00:00
- pcntl:
. Fixed bug #60509 (pcntl_signal doesn't decrease ref-count of old handler
when setting SIG_DFL). (Julien)
2015-03-17 10:07:15 +00:00
. Added wifcontinued and wcontinued. (xilon-jul)
2014-11-29 13:51:18 +00:00
2014-09-10 15:19:02 +00:00
- PCRE:
. Removed support for the /e (PREG_REPLACE_EVAL) modifier. (Nikita)
2015-02-06 14:47:16 +00:00
- PDO:
. Fixed bug #59450 (./configure fails with "Cannot find php_pdo_driver.h").
(maxime dot besson at smile dot fr)
2014-12-05 16:07:13 +00:00
- PDO_mysql:
. Fixed bug #68424 (Add new PDO mysql connection attr to control multi
statements option). (peter dot wolanin at acquia dot com)
2014-11-11 08:33:36 +00:00
- Reflection
2014-12-21 03:08:29 +00:00
. Fixed inheritance chain of Reflector interface. (Tjerk)
2014-11-11 08:33:36 +00:00
- Session:
. Fixed bug #67694 (Regression in session_regenerate_id()). (Tjerk)
2015-03-01 09:44:30 +00:00
. Fixed bug #68941 (mod_files.sh is a bash-script). (bugzilla at ii.nl, Yasuo)
2013-11-04 12:32:45 +00:00
2014-11-11 08:33:36 +00:00
- SOAP:
2015-03-01 09:44:30 +00:00
. Fixed bug #68361 (Segmentation fault on SoapClient::__getTypes). (Laruence)
2014-11-11 08:33:36 +00:00
2014-08-25 16:32:40 +00:00
- SPL:
. Changed ArrayIterator implementation using zend_hash_iterator_... API.
2015-04-09 12:47:34 +00:00
Allowed modification of iterated ArrayObject using the same behavior
as proposed in `Fix "foreach" behavior`. Removed "Array was modified
outside object and internal position is no longer valid" hack. (Dmitry)
2014-08-25 16:32:40 +00:00
. Implemented #67886 (SplPriorityQueue/SplHeap doesn't expose extractFlags
nor curruption state). (Julien)
2014-11-29 11:15:17 +00:00
. Fixed bug #66405 (RecursiveDirectoryIterator::CURRENT_AS_PATHNAME
breaks the RecursiveIterator). (Paul Garvin)
2014-12-05 09:18:41 +00:00
. Fixed bug #68479 (Added escape parameter to SplFileObject::fputcsv). (Salathe)
2014-08-25 16:32:40 +00:00
2015-01-09 15:26:10 +00:00
- Sqlite3:
. Fixed bug #68260 (SQLite3Result::fetchArray declares wrong
2015-01-09 15:26:10 +00:00
required_num_args). (Julien)
2014-11-11 08:33:36 +00:00
- Standard:
. Fixed bug #69325 (php_copy_file_ex does not pass the argument).
(imbolk at gmail dot com)
. Fixed bug #69299 (Regression in array_filter's $flag argument in PHP 7).
(Laruence)
2014-11-11 08:33:36 +00:00
. Removed call_user_method() and call_user_method_array() functions. (Kalle)
. Fixed user session handlers (See rfc:session.user.return-value). (Sara)
2014-11-11 08:33:36 +00:00
. Added intdiv() function. (Andrea)
. Improved precision of log() function for base 2 and 10. (Marc Bennewitz)
. Remove string category support in setlocale(). (Nikita)
. Remove set_magic_quotes_runtime() and its alias magic_quotes_runtime().
(Nikita)
. Fixed bug #65272 (flock() out parameter not set correctly in windows).
2014-08-27 08:47:44 +00:00
(Daniel Lowrey)
. Added preg_replace_callback_array function. (Wei Dai)
. Deprecated salt option to password_hash. (Anthony)
2014-11-11 08:33:36 +00:00
2014-12-12 16:02:20 +00:00
- Streams:
. Fixed bug #68532 (convert.base64-encode omits padding bytes).
(blaesius at krumedia dot de)
2014-09-10 15:31:37 +00:00
. Removed set_socket_blocking() in favor of its alias stream_set_blocking().
(Nikita)
2014-12-12 16:02:20 +00:00
2014-11-11 08:33:36 +00:00
- XSL:
. Fixed bug #64776 (The XSLT extension is not thread safe). (Mike)
. Removed xsl.security_prefs ini option. (Nikita)
2014-09-01 22:47:49 +00:00
<<< NOTE: Insert NEWS from last stable release here prior to actual release! >>>