From: Joe Watkins Date: Thu, 9 Mar 2017 07:44:18 +0000 (+0000) Subject: Merge branch 'PHP-7.1' X-Git-Tag: php-7.2.0alpha1~287 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=89e403982c7ed2b306389b983e00effc0e9e528b;p=php Merge branch 'PHP-7.1' * PHP-7.1: Fix bug #74149 static embed SAPI linkage error --- 89e403982c7ed2b306389b983e00effc0e9e528b diff --cc NEWS index ea88623979,909eaee906..7aa4ccfe93 --- a/NEWS +++ b/NEWS @@@ -1,40 -1,410 +1,41 @@@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| -?? ??? 2017, PHP 7.1.4 +?? ??? ????, PHP 7.2 - Core: - . Fixed bug #74149 (static embed SAPI linkage error). (krakjoe) - -- DOM: - . Fixed bug #74004 (LIBXML_NOWARNING flag ingnored on loadHTML*). - (somedaysummer) - -- SPL: - . Fixed bug #74058 (ArrayObject can not notice changes). (Andrew Nester) - -16 Mar 2017, PHP 7.1.3 - -- Core: - . Fixed bug #74157 (Segfault with nested generators). (Laruence) - . Fixed bug #74164 (PHP hangs when an invalid value is dynamically passed to - typehinted by-ref arg). (Laruence) - . Fixed bug #74093 (Maximum execution time of n+2 seconds exceed not written - in error_log). (Laruence) - . Fixed bug #73989 (PHP 7.1 Segfaults within Symfony test suite). - (Dmitry, Laruence) - . Fixed bug #74084 (Out of bound read - zend_mm_alloc_small). (Laruence) - . Fixed bug #73807 (Performance problem with processing large post request). - (Nikita) - . Fixed bug #73998 (array_key_exists fails on arrays created by - get_object_vars). (mhagstrand) - . Fixed bug #73954 (NAN check fails on Alpine Linux with musl). (Andrea) - . Fixed bug #73677 (Generating phar.phar core dump with gcc ASAN enabled - build). (ondrej) - -- Apache: - . Fixed bug #61471 (Incomplete POST does not timeout but is passed to PHP). - (Zheng Shao) - -- Date: - . Fixed bug #73837 ("new DateTime()" sometimes returns 1 second ago value). - (Derick) - -- FPM: - . Fixed bug #69860 (php-fpm process accounting is broken with keepalive). - (Denis Yeldandi) - -- Hash: - . Fixed bug #73127 (gost-crypto hash incorrect if input data contains long - 0xFF sequence). (Grundik) - -- GD: - . Fixed bug #74031 (ReflectionFunction for imagepng is missing last two - parameters). (finwe) - -- Mysqlnd: - . Fixed bug #74021 (fetch_array broken data. Data more then MEDIUMBLOB). - (Andrew Nester, Nikita) - -- Opcache: - . Fixed bug #74019 (Segfault with list). (Laruence) - -- OpenSSL: - . Fixed bug #74022 (PHP Fast CGI crashes when reading from a pfx file). - (Anatol) - . Fixed bug #74099 (Memory leak with openssl_encrypt()). (Andrew Nester) - . Fixed bug #74159 (Writing a large buffer to a non-blocking encrypted stream - fails with "bad write retry"). (trowski) - -- PDO_OCI: - . Fixed bug #54379 (PDO_OCI: UTF-8 output gets truncated). (gureedo / Oracle) - -- Standard: - . Fixed bug #74005 (mail.add_x_header causes RFC-breaking lone line feed). - (Anatol) - . Fixed bug #74041 (substr_count with length=0 broken). (Nikita) - . Fixed bug #73118 (is_callable callable name reports misleading value for - anonymous classes). (Adam Saponara) - . Fixed bug #74105 (PHP on Linux should use /dev/urandom when getrandom is - not available). (Benjamin Robin) - -- Streams: - . Fixed bug #73496 (Invalid memory access in zend_inline_hash_func). - (Laruence) - . Fixed bug #74090 (stream_get_contents maxlength>-1 returns empty string). + . Removed IS_TYPE_IMMUTABLE (it's the same as COPYABLE & !REFCOUNTED). (Dmitry) + . Removed the sql.safe_mode directive. (Kalle) + . Removed support for Netware. (Kalle) + . Fixed bug #54535 (WSA cleanup executes before MSHUTDOWN). (Kalle) + . Implemented FR #69791 (Disallow mail header injections by extra headers) + (Yasuo) + . Implemented FR #49806 (proc_nice() for Windows). (Kalle) + . Fix pthreads detection when cross-compiling (ffontaine) + . Fixed memory leaks caused by exceptions thrown from destructors. (Bob, + Dmitry). + . Fixed bug #73215 (uniqid() should use better random source). (Yasuo) + . Fixed bug #73337 (try/catch not working with two exceptions inside a same + operation). (Dmitry) + . Implemented FR #72768 (Add ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for + php.exe). (Michele Locati) + . Implemented "Convert numeric keys in object/array casts" RFC, fixes + bugs #53838, #61655, #66173, #70925, #72254, etc. (Andrea) + . Raised minimum supported Windows versions to Windows 7/Server 2008 R2. (Anatol) - -16 Feb 2017, PHP 7.1.2 - -- Core: - . Improved GENERATOR_CREATE opcode handler. (Bob, Dmitry) - . Fixed bug #73877 (readlink() returns garbage for UTF-8 paths). (Anatol) - . Fixed bug #73876 (Crash when exporting **= in expansion of assign op). - (Sara) - . Fixed bug #73962 (bug with symlink related to cyrillic directory). (Anatol) . Fixed bug #73969 (segfault in debug_print_backtrace). (andrewnester) + . Added PHP_OS_FAMILY constant to determine on which OS we are. (Jan Altensen) . Fixed bug #73994 (arginfo incorrect for unpack). (krakjoe) . Fixed bug #73973 (assertion error in debug_zval_dump). (andrewnester) + . Fixed bug #73987 (Method compatibility check looks to original + definition and not parent). (pmmaga) + . Fixed bug #74053 (Corrupted class entries on shutdown when a destructor + spawns another object). (jim at commercebyte dot com) + . Fixed bug #73971 (Filename got limited to MAX_PATH on Win32 when scan + directory). (Anatol) ++ . Fixed bug #74149 (static embed SAPI linkage error). (krakjoe) -- DOM: - . Fixed bug #54382 (getAttributeNodeNS doesn't get xmlns* attributes). - (aboks) - -- DTrace: - . Fixed bug #73965 (DTrace reported as enabled when disabled). (Remi) - -- FCGI: - . Fixed bug #73904 (php-cgi fails to load -c specified php.ini file). (Anatol) - . Fixed bug #72898 (PHP_FCGI_CHILDREN is not included in phpinfo()). (Anatol) - -- FPM: - . Fixed bug #69865 (php-fpm does not close stderr when using syslog). - (m6w6) - -- GD: - . Fixed bug #73968 (Premature failing of XBM reading). (cmb) - -- GMP: - . Fixed bug #69993 (test for gmp.h needs to test machine includes). - (Jordan Gigov) - -- Hash: - . Added hash_hkdf() function. (Andrey Andreev) - . Fixed bug #73961 (environmental build dependency in hash sha3 source). - (krakjoe) - -- Intl: - . Fix bug #73956 (Link use CC instead of CXX). (Remi) - -- LDAP: - . Fixed bug #73933 (error/segfault with ldap_mod_replace and opcache). - (Laruence) - -- MySQLi: - . Fixed bug #73949 (leak in mysqli_fetch_object). (krakjoe) - -- Mysqlnd: - . Fixed bug #69899 (segfault on close() after free_result() with mysqlnd). - (Richard Fussenegger) - -- Opcache: - . Fixed bug #73983 (crash on finish work with phar in cli + opcache). - (Anatol) - -- OpenSSL: - . Fixed bug #71519 (add serial hex to return value array). (xrobau) - . Fixed bug #73692 (Compile ext/openssl with openssl 1.1.0 on Win). (Anatol) - . Fixed bug #73978 (openssl_decrypt triggers bug in PDO). (Jakub Zelenka) - -- PDO_Firebird: - . Implemented FR #72583 (All data are fetched as strings). (Dorin Marcoci) - -- PDO_PgSQL: - . Fixed bug #73959 (lastInsertId fails to throw an exception for wrong - sequence name). (andrewnester) - -- Phar: - . Fixed bug #70417 (PharData::compress() doesn't close temp file). (cmb) - -- posix: - . Fixed bug #71219 (configure script incorrectly checks for ttyname_r). (atoh) - -- Session: - . Fixed bug #69582 (session not readable by root in CLI). (EvgeniySpinov) - -- SPL: - . Fixed bug #73896 (spl_autoload() crashes when calls magic _call()). (Dmitry) - -- Standard: - . Fixed bug #69442 (closing of fd incorrect when PTS enabled). (jaytaph) - . Fixed bug #47021 (SoapClient stumbles over WSDL delivered with - "Transfer-Encoding: chunked"). (Rowan Collins) - . Fixed bug #72974 (imap is undefined service on AIX). (matthieu.sarter) - . Fixed bug #72979 (money_format stores wrong length AIX). (matthieu.sarter) - . Fixed bug #73374 (intval() with base 0 should detect binary). (Leigh) - . Fixed bug #69061 (mail.log = syslog contains double information). - (Tom Sommer) - -- ZIP: - . Fixed bug #70103 (ZipArchive::addGlob ignores remove_all_path option). (cmb, - Mitch Hagstrand) - -19 Jan 2017, PHP 7.1.1 - -- Core: - . Fixed bug #73792 (invalid foreach loop hangs script). (Dmitry) - . Fixed bug #73686 (Adding settype()ed values to ArrayObject results in - references). (Nikita, Laruence) - . Fixed bug #73663 ("Invalid opcode 65/16/8" occurs with a variable created - with list()). (Laruence) - . Fixed bug #73727 (ZEND_MM_BITSET_LEN is "undefined symbol" in - zend_bitset.h). (Nikita) - . Fixed bug #73753 (unserialized array pointer not advancing). (David Walker) - . Fixed bug #73783 (SIG_IGN doesn't work when Zend Signals is enabled). - (David Walker) - -- CLI: - . Fixed bug #72555 (CLI output(japanese) on Windows). (Anatol) - -- COM: - . Fixed bug #73679 (DOTNET read access violation using invalid codepage). - (Anatol) - -- DOM: - . Fixed bug #67474 (getElementsByTagNameNS filter on default ns). (aboks) - -- Mbstring: - . Fixed bug #73646 (mb_ereg_search_init null pointer dereference). - (Laruence) - -- Mysqli: - . Fixed bug #73462 (Persistent connections don't set $connect_errno). - (darkain) - -- Mysqlnd: - . Optimized handling of BIT fields - less memory copies and lower memory - usage. (Andrey) - . Fixed bug #73800 (sporadic segfault with MYSQLI_OPT_INT_AND_FLOAT_NATIVE). - (vanviegen) - -- Opcache: - . Fixed bug #73789 (Strange behavior of class constants in switch/case block). - (Laruence) - . Fixed bug #73746 (Method that returns string returns UNKNOWN:0 instead). - (Laruence) - . Fixed bug #73654 (Segmentation fault in zend_call_function). (Nikita) - . Fixed bug #73668 ("SIGFPE Arithmetic exception" in opcache when divide by - minus 1). (Nikita) - . Fixed bug #73847 (Recursion when a variable is redefined as array). (Nikita) - -- PDO_Firebird: - . Fixed bug #72931 (PDO_FIREBIRD with Firebird 3.0 not work on returning - statement). (Dorin Marcoci) - -- phpdbg: - . Fixed bug #73794 (Crash (out of memory) when using run and # command - separator). (Bob) - . Fixed bug #73704 (phpdbg shows the wrong line in files with shebang). (Bob) - -- SQLite3: - . Reverted fix for bug #73530 (Unsetting result set may reset other result - set). (cmb) - -- Standard: - . Fixed bug #73594 (dns_get_record does not populate $additional out - parameter). (Bruce Weirdan) - . Fixed bug #70213 (Unserialize context shared on double class lookup). - (Taoguang Chen) - . Fixed bug #73154 (serialize object with __sleep function crash). (Nikita) - . Fixed bug #70490 (get_browser function is very slow). (Nikita) - . Fixed bug #73265 (Loading browscap.ini at startup causes high memory usage). - (Nikita) - . Add subject to mail log. (tomsommer) - . Fixed bug #31875 (get_defined_functions additional param to exclude - disabled functions). (willianveiga) - -- Zlib - . Fixed bug #73373 (deflate_add does not verify that output was not truncated). - (Matt Bonneau) - -01 Dec 2016, PHP 7.1.0 - -- Core: - . Added nullable types. (Levi, Dmitry) - . Added DFA optimization framework based on e-SSA form. (Dmitry, Nikita) - . Added specialized opcode handlers (e.g. ZEND_ADD_LONG_NO_OVERFLOW). - (Dmitry) - . Added [] = as alternative construct to list() =. (Bob) - . Added void return type. (Andrea) - . Added support for negative string offsets in string offset syntax and - various string functions. (Francois) - . Added a form of the list() construct where keys can be specified. (Andrea) - . Implemented safe execution timeout handling, that prevents random crashes - after "Maximum execution time exceeded" error. (Dmitry) - . Implemented the RFC `Support Class Constant Visibility`. (Sean DuBois, - Reeze Xia, Dmitry) - . Implemented the RFC `Catching multiple exception types`. (Bronislaw Bialek, - Pierrick) - . Implemented logging to syslog with dynamic error levels. (Jani Ollikainen) - . Implemented FR #72614 (Support "nmake test" on building extensions by - phpize). (Yuji Uchiyama) - . Implemented RFC: Iterable. (Aaron Piotrowski) - . Implemented RFC: Closure::fromCallable (Danack) - . Implemented RFC: Replace "Missing argument" warning with "\ArgumentCountError" - exception. (Dmitry, Davey) - . Implemented RFC: Fix inconsistent behavior of $this variable. (Dmitry) - . Fixed bug #73585 (Logging of "Internal Zend error - Missing class - information" missing class name). (Laruence) - . Fixed memory leak(null coalescing operator with Spl hash). (Tyson Andre) - . Fixed bug #72736 (Slow performance when fetching large dataset with mysqli - / PDO). (Dmitry) - . Fixed bug #72482 (Ilegal write/read access caused by gdImageAALine - overflow). (cmb) - . Fixed bug #72696 (imagefilltoborder stackoverflow on truecolor images). - (cmb) - . Fixed bug #73350 (Exception::__toString() cause circular references). - (Laruence) - . Fixed bug #73329 ((Float)"Nano" == NAN). (Anatol) - . Fixed bug #73288 (Segfault in __clone > Exception.toString > __get). - (Laruence) - . Fixed for #73240 (Write out of bounds at number_format). (Stas) - . Fix pthreads detection when cross-compiling (ffontaine) - . Fixed bug #73337 (try/catch not working with two exceptions inside a same - operation). (Dmitry) - . Fixed bug #73156 (segfault on undefined function). (Dmitry) - . Fixed bug #73163 (PHP hangs if error handler throws while accessing undef - const in default value). (Nikita) - . Fixed bug #73172 (parse error: Invalid numeric literal). (Nikita, Anatol) - . Fixed bug #73181 (parse_str() without a second argument leads to crash). - (Nikita) - . Fixed bug #73025 (Heap Buffer Overflow in virtual_popen of - zend_virtual_cwd.c). (cmb) - . Fixed bug #73058 (crypt broken when salt is 'too' long). (Anatol) - . Fixed bug #72944 (Null pointer deref in zval_delref_p). (Dmitry) - . Fixed bug #72943 (assign_dim on string doesn't reset hval). (Laruence) - . Fixed bug #72598 (Reference is lost after array_slice()) (Nikita) - . Fixed bug #72703 (Out of bounds global memory read in BF_crypt triggered by - password_verify). (Anatol) - . Fixed bug #72813 (Segfault with __get returned by ref). (Laruence) - . Fixed bug #72767 (PHP Segfaults when trying to expand an infinite operator). - (Nikita) - . TypeError messages for arg_info type checks will now say "must be ... - or null" where the parameter or return type accepts null. (Andrea) - . Fixed bug #72857 (stream_socket_recvfrom read access violation). (Anatol) - . Fixed bug #72663 (Create an Unexpected Object and Don't Invoke - __wakeup() in Deserialization). (Stas) - . Fixed bug #72681 (PHP Session Data Injection Vulnerability). (Stas) - . Fixed bug #72742 (memory allocator fails to realloc small block to large - one). (Stas) - . Fixed URL rewriter. It would not rewrite '//example.com/' URL - unconditionally. URL rewrite target hosts whitelist is implemented. (Yasuo) - . Fixed bug #72641 (phpize (on Windows) ignores PHP_PREFIX). - (Yuji Uchiyama) - . Fixed bug #72683 (getmxrr broken). (Anatol) - . Fixed bug #72629 (Caught exception assignment to variables ignores - references). (Laruence) - . Fixed bug #72594 (Calling an earlier instance of an included anonymous - class fatals). (Laruence) - . Fixed bug #72581 (previous property undefined in Exception after - deserialization). (Laruence) - . Fixed bug #72543 (Different references behavior comparing to PHP 5) - (Laruence, Dmitry, Nikita) - . Fixed bug #72347 (VERIFY_RETURN type casts visible in finally). (Dmitry) - . Fixed bug #72216 (Return by reference with finally is not memory safe). - (Dmitry) - . Fixed bug #72215 (Wrong return value if var modified in finally). (Dmitry) - . Fixed bug #71818 (Memory leak when array altered in destructor). (Dmitry) - . Fixed bug #71539 (Memory error on $arr[$a] =& $arr[$b] if RHS rehashes) - (Dmitry, Nikita) - . Added new constant PHP_FD_SETSIZE. (cmb) - . Added optind parameter to getopt(). (as) - . Added PHP to SAPI error severity mapping for logs. (Martin Vobruba) - . Fixed bug #71911 (Unable to set --enable-debug on building extensions by - phpize on Windows). (Yuji Uchiyama) - . Fixed bug #29368 (The destructor is called when an exception is thrown from - the constructor). (Dmitry) - . Implemented RFC: RNG Fixes. (Leigh) - . Implemented email validation as per RFC 6531. (Leo Feyer, Anatol) - . Fixed bug #72513 (Stack-based buffer overflow vulnerability in - virtual_file_ex). (Stas) - . Fixed bug #72573 (HTTP_PROXY is improperly trusted by some PHP libraries - and applications). (Stas) - . Fixed bug #72523 (dtrace issue with reflection (failed test)). (Laruence) - . Fixed bug #72508 (strange references after recursive function call and - "switch" statement). (Laruence) - . Fixed bug #72441 (Segmentation fault: RFC list_keys). (Laruence) - . Fixed bug #72395 (list() regression). (Laruence) - . Fixed bug #72373 (TypeError after Generator function w/declared return type - finishes). (Nikita) - . Fixed bug #69489 (tempnam() should raise notice if falling back to temp dir). - (Laruence, Anatol) - . Fixed UTF-8 and long path support on Windows. (Anatol) - . Fixed bug #53432 (Assignment via string index access on an empty string - converts to array). (Nikita) - . Fixed bug #62210 (Exceptions can leak temporary variables). (Dmitry, Bob) - . Fixed bug #62814 (It is possible to stiffen child class members visibility). - (Nikita) - . Fixed bug #69989 (Generators don't participate in cycle GC). (Nikita) - . Fixed bug #70228 (Memleak if return in finally block). (Dmitry) - . Fixed bug #71266 (Missing separation of properties HT in foreach etc). - (Dmitry) - . Fixed bug #71604 (Aborted Generators continue after nested finally). - (Nikita) - . Fixed bug #71572 (String offset assignment from an empty string inserts - null byte). (Francois) - . Fixed bug #71897 (ASCII 0x7F Delete control character permitted in - identifiers). (Andrea) - . Fixed bug #72188 (Nested try/finally blocks losing return value). (Dmitry) - . Fixed bug #72213 (Finally leaks on nested exceptions). (Dmitry, Nikita) - . Fixed bug #47517 (php-cgi.exe missing UAC manifest). - (maxdax15801 at users noreply github com) - . Change statement and fcall extension handlers to accept frame. (Joe) - . Number operators taking numeric strings now emit E_NOTICEs or E_WARNINGs - when given malformed numeric strings. (Andrea) - . (int), intval() where $base is 10 or unspecified, settype(), decbin(), - decoct(), dechex(), integer operators and other conversions now always - respect scientific notation in numeric strings. (Andrea) - . Raise a compile-time warning on octal escape sequence overflow. (Sara) - -- Apache2handler: - . Enable per-module logging in Apache 2.4+. (Martin Vobruba) - -- BCmath: - . Fix bug #73190 (memcpy negative parameter _bc_new_num_ex). (Stas) - -- Bz2: - . Fixed bug #72837 (integer overflow in bzdecompress caused heap - corruption). (Stas) - . Fixed bug #72613 (Inadequate error handling in bzread()). (Stas) +- BCMath: + . Fixed bug #46564 (bcmod truncates fractionals). (liborm85) - Calendar: . Fix integer overflows (Joshua Rogers)