NEWS 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813
  1. PHP NEWS
  2. |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
  3. 01 Sep 2022, PHP 8.1.10
  4. - Core:
  5. . Fixed --CGI-- support of run-tests.php. (cmb)
  6. . Fixed incorrect double to long casting in latest clang. (zeriyoshi)
  7. . Fixed bug GH-9266 (GC root buffer keeps growing when dtors are present).
  8. (Michael Olšavský)
  9. - Date:
  10. . Fixed bug GH-8730 (DateTime::diff miscalculation is same time zone of
  11. different type). (Derick)
  12. . Fixed bug GH-8964 (DateTime object comparison after applying delta less
  13. than 1 second). (Derick)
  14. . Fixed bug GH-9106: (DateInterval 1.5s added to DateTimeInterface is rounded
  15. down since PHP 8.1.0). (Derick)
  16. . Fixed bug #81263 (Wrong result from DateTimeImmutable::diff). (Derick)
  17. - DBA:
  18. . Fixed LMDB driver memory leak on DB creation failure (Girgias)
  19. . Fixed bug GH-9155 (dba_open("non-existing", "c-", "flatfile") segfaults)
  20. (cmb)
  21. - IMAP:
  22. . Fixed bug GH-9309 (Segfault when connection is used after imap_close()).
  23. (cmb)
  24. - Intl:
  25. . Fixed IntlDateFormatter::formatObject() parameter type. (Gert de Pagter)
  26. - MBString:
  27. . Fixed bug GH-9008 (mb_detect_encoding(): wrong results with null $encodings).
  28. (cmb)
  29. - OPcache:
  30. . Fixed bug GH-9033 (Loading blacklist file can fail due to negative length).
  31. (cmb)
  32. . Fixed bug GH-9164 (Segfault in zend_accel_class_hash_copy).
  33. (Arnaud, Sergei Turchanov)
  34. - PDO_SQLite:
  35. . Fixed bug GH-9032 (SQLite3 authorizer crashes on NULL values). (cmb)
  36. - SQLite3:
  37. . Fixed bug GH-9032 (SQLite3 authorizer crashes on NULL values). (cmb)
  38. - Streams:
  39. . Fixed bug GH-8472 (The resource returned by stream_socket_accept may have
  40. incorrect metadata). (Jakub Zelenka)
  41. . Fixed bug GH-8409 (SSL handshake timeout leaves persistent connections
  42. hanging). (Jakub Zelenka, Twosee)
  43. 04 Aug 2022, PHP 8.1.9
  44. - CLI:
  45. . Fixed potential overflow for the builtin server via the PHP_CLI_SERVER_WORKERS
  46. environment variable. (yiyuaner)
  47. - Core:
  48. . Fixed bug GH-8923 (error_log on Windows can hold the file write lock). (cmb)
  49. . Fixed bug GH-8995 (WeakMap object reference offset causing TypeError).
  50. (Tobias Bachert)
  51. - CLI:
  52. . Fixed GH-8952 (Intentionally closing std handles no longer possible).
  53. (Arnaud, cmb)
  54. - Date:
  55. . Fixed bug #80047 (DatePeriod doesn't warn with custom DateTimeImmutable).
  56. (Derick)
  57. - FPM:
  58. . Fixed zlog message prepend, free on incorrect address. (Heiko Weber)
  59. . Fixed possible double free on configuration loading failure. (Heiko Weber).
  60. - GD:
  61. . Fixed bug GH-8848 (imagecopyresized() error refers to the wrong argument).
  62. (cmb)
  63. - Intl:
  64. . Fixed build for ICU 69.x and onwards. (David Carlier)
  65. - OPcache:
  66. . Fixed bug GH-8847 (PHP hanging infinitly at 100% cpu when check php
  67. syntaxe of a valid file). (Dmitry)
  68. . Fixed bug GH-8030 (Segfault with JIT and large match/switch statements).
  69. (Arnaud)
  70. - Reflection:
  71. . Fixed bug GH-8943 (Fixed Reflection::getModifiersNames() with readonly
  72. modifier). (Pierrick)
  73. . Fixed bug GH-8982 (Attribute with TARGET_METHOD is rejected on fake
  74. closure of method). (ilutov)
  75. - Standard:
  76. . Fixed the crypt_sha256/512 api build with clang > 12. (David Carlier)
  77. . Uses CCRandomGenerateBytes instead of arc4random_buf on macOs. (David Carlier).
  78. . Fixed bug GH-9017 (php_stream_sock_open_from_socket could return NULL).
  79. (Heiko Weber)
  80. 07 Jul 2022, PHP 8.1.8
  81. - Core:
  82. . Fixed bug GH-8338 (Intel CET is disabled unintentionally). (Chen, Hu)
  83. . Fixed leak in Enum::from/tryFrom for internal enums when using JIT (ilutov)
  84. . Fixed calling internal methods with a static return type from
  85. extension code. (Sara)
  86. . Fixed bug GH-8655 (Casting an object to array does not unwrap refcount=1
  87. references). (Nicolas Grekas)
  88. . Fixed potential use after free in php_binary_init(). (Heiko Weber)
  89. . Fixed bug GH-7942 (Indirect mutation of readonly properties through
  90. references). (ilutov)
  91. - CLI:
  92. . Fixed GH-8827 (Intentionally closing std handles no longer possible). (cmb)
  93. - COM:
  94. . Fixed bug GH-8778 (Integer arithmethic with large number variants fails).
  95. (cmb)
  96. - Curl:
  97. . Fixed CURLOPT_TLSAUTH_TYPE is not treated as a string option. (Pierrick)
  98. - Date:
  99. . Fixed bug #72963 (Null-byte injection in CreateFromFormat and related
  100. functions). (Derick)
  101. . Fixed bug #74671 (DST timezone abbreviation has incorrect offset). (Derick)
  102. . Fixed bug #77243 (Weekdays are calculated incorrectly for negative years).
  103. (Derick)
  104. . Fixed bug #78139 (timezone_open accepts invalid timezone string argument).
  105. (Derick)
  106. - Fileinfo:
  107. . Fixed bug #81723 (Heap buffer overflow in finfo_buffer). (CVE-2022-31627)
  108. (cmb)
  109. - FPM:
  110. . Fixed bug #67764 (fpm: syslog.ident don't work). (Jakub Zelenka)
  111. - GD:
  112. . Fixed imagecreatefromavif() memory leak. (cmb)
  113. - MBString:
  114. . mb_detect_encoding recognizes all letters in Czech alphabet (alexdowad)
  115. . mb_detect_encoding recognizes all letters in Hungarian alphabet (alexdowad)
  116. . Fixed bug GH-8685 (pcre not ready at mbstring startup). (Remi)
  117. . Backwards-compatible mappings for 0x5C/0x7E in Shift-JIS are restored,
  118. after they had been changed in 8.1.0. (Alex Dowad)
  119. - ODBC:
  120. . Fixed handling of single-key connection strings. (Calvin Buckley)
  121. - OPcache:
  122. . Fixed bug GH-8591 (tracing JIT crash after private instance method change).
  123. (Arnaud, Dmitry, Oleg Stepanischev)
  124. - OpenSSL:
  125. . Fixed bug #50293 (Several openssl functions ignore the VCWD).
  126. (Jakub Zelenka, cmb)
  127. . Fixed bug #81713 (NULL byte injection in several OpenSSL functions working
  128. with certificates). (Jakub Zelenka)
  129. - PDO_ODBC:
  130. . Fixed handling of single-key connection strings. (Calvin Buckley)
  131. - Zip:
  132. . Fixed bug GH-8781 (ZipArchive::close deletes zip file without updating stat
  133. cache). (Remi)
  134. 09 Jun 2022, PHP 8.1.7
  135. - CLI:
  136. . Fixed bug GH-8575 (CLI closes standard streams too early). (Levi Morrison)
  137. - Date:
  138. . Fixed bug #51934 (strtotime plurals / incorrect time). (Derick)
  139. . Fixed bug #51987 (Datetime fails to parse an ISO 8601 ordinal date
  140. (extended format)). (Derick)
  141. . Fixed bug #66019 (DateTime object does not support short ISO 8601 time
  142. format - YYYY-MM-DDTHH) (cmb, Derick)
  143. . Fixed bug #68549 (Timezones and offsets are not properly used when working
  144. with dates) (Derick, Roel Harbers)
  145. . Fixed bug #81565 (date parsing fails when provided with timezones including
  146. seconds). (Derick)
  147. . Fixed bug GH-7758 (Problems with negative timestamps and fractions).
  148. (Derick, Ilija)
  149. - FPM:
  150. . Fixed ACL build check on MacOS. (David Carlier)
  151. . Fixed bug #72185: php-fpm writes empty fcgi record causing nginx 502.
  152. (Jakub Zelenka, loveharmful)
  153. . Fixes use after free. (Heiko Weber).
  154. - mysqlnd:
  155. . Fixed bug #81719: mysqlnd/pdo password buffer overflow. (CVE-2022-31626)
  156. (c dot fol at ambionics dot io)
  157. - OPcache:
  158. . Fixed bug GH-8461 (tracing JIT crash after function/method change).
  159. (Arnaud, Dmitry)
  160. - OpenSSL:
  161. . Fixed bug #79589 (error:14095126:SSL routines:ssl3_read_n:unexpected eof
  162. while reading). (Jakub Zelenka)
  163. - Pcntl:
  164. . Fixed Haiku build. (David Carlier)
  165. - pgsql
  166. . Fixed bug #81720: Uninitialized array in pg_query_params().
  167. (CVE-2022-31625) (cmb)
  168. - Soap:
  169. . Fixed bug GH-8578 (Error on wrong parameter on SoapHeader constructor).
  170. (robertnisipeanu)
  171. . Fixed bug GH-8538 (SoapClient may strip parts of nmtokens). (cmb)
  172. - SPL:
  173. . Fixed bug GH-8235 (iterator_count() may run indefinitely). (cmb)
  174. - Standard:
  175. . Fixed bug GH-8185 (Crash during unloading of extension after dl() in ZTS).
  176. (Arnaud)
  177. - Zip:
  178. . Fixed type for index in ZipArchive::replaceFile. (Martin Rehberger)
  179. 12 May 2022, PHP 8.1.6
  180. - Core:
  181. . Fixed bug GH-8310 (Registry settings are no longer recognized). (cmb)
  182. . Fixed potential race condition during resource ID allocation. (ryancaicse)
  183. . Fixed bug GH-8133 (Preloading of constants containing arrays with enums
  184. segfaults). (ilutov)
  185. . Fixed Haiku ZTS builds. (David Carlier)
  186. - Date:
  187. . Fixed bug GH-7752 (DateTimeZone::getTransitions() returns insufficient
  188. data). (Derick)
  189. . Fixed bug GH-8108 (Timezone doesn't work as intended). (Derick)
  190. . Fixed bug #81660 (DateTimeZone::getTransitions() returns invalid data).
  191. (Derick)
  192. . Fixed bug GH-8289 (Exceptions thrown within a yielded from iterator are
  193. not rethrown into the generator). (Bob)
  194. - FFI:
  195. . Fixed bug GH-8433 (Assigning function pointers to structs in FFI leaks).
  196. (Bob)
  197. - FPM:
  198. . Fixed bug #76003 (FPM /status reports wrong number of active processe).
  199. (Jakub Zelenka)
  200. . Fixed bug #77023 (FPM cannot shutdown processes). (Jakub Zelenka)
  201. . Fixed comment in kqueue remove callback log message. (David Carlier)
  202. - Hash:
  203. . Fixed bug #81714 (segfault when serializing finalized HashContext). (cmb)
  204. - Iconv:
  205. . Fixed bug GH-8218 (ob_end_clean does not reset Content-Encoding header).
  206. (cmb)
  207. - Intl:
  208. . Fixed bug GH-8364 (msgfmt_format $values may not support references). (cmb)
  209. - MBString:
  210. . Number of error markers emitted for invalid UTF-8 text matches WHATWG specification.
  211. This is a return to the behavior of PHP 8.0 and earlier. (alexdowad)
  212. - MySQLi:
  213. . Fixed bug GH-8267 (MySQLi uses unsupported format specifier on Windows).
  214. (cmb)
  215. - OPcache:
  216. . Fixed bug GH-8063 (OPcache breaks autoloading after E_COMPILE_ERROR).
  217. (Arnaud)
  218. - SPL:
  219. . Fixed bug GH-8366 (ArrayIterator may leak when calling __construct()).
  220. (cmb)
  221. . Fixed bug GH-8273 (SplFileObject: key() returns wrong value). (Girgias)
  222. - Streams:
  223. . Fixed php://temp does not preserve file-position when switched to temporary
  224. file. (Bernd Holzmüller)
  225. - zlib:
  226. . Fixed bug GH-8218 (ob_end_clean does not reset Content-Encoding header).
  227. (cmb)
  228. 14 Apr 2022, PHP 8.1.5
  229. - Core:
  230. . Fixed bug GH-8176 (Enum values in property initializers leak). (Bob)
  231. . Fixed freeing of internal attribute arguments. (Bob)
  232. . Fixed bug GH-8070 (memory leak of internal function attribute hash).
  233. (Tim Düsterhus)
  234. . Fixed bug GH-8160 (ZTS support on Alpine is broken). (Michael Voříšek)
  235. - Filter:
  236. . Fixed signedness confusion in php_filter_validate_domain(). (cmb)
  237. - Intl:
  238. . Fixed bug GH-8115 (Can't catch arg type deprecation when instantiating Intl
  239. classes). (ilutov)
  240. . Fixed bug GH-8142 (Compilation error on cygwin). (David Carlier)
  241. . Fixed bug GH-7734 (Fix IntlPartsIterator key off-by-one error and first
  242. key). (ilutov)
  243. - MBString:
  244. . Fixed bug GH-8208 (mb_encode_mimeheader: $indent functionality broken).
  245. (cmb)
  246. - MySQLi:
  247. . Fixed bug GH-8068 (mysqli_fetch_object creates inaccessible properties).
  248. (cmb)
  249. - Pcntl:
  250. . Fixed bug GH-8142 (Compilation error on cygwin). (David Carlier)
  251. - PgSQL:
  252. . Fixed result_type related stack corruption on LLP64 architectures. (cmb)
  253. . Fixed bug GH-8253 (pg_insert() fails for references). (cmb)
  254. - Sockets:
  255. . Fixed Solaris builds. (David Carlier)
  256. . Fix undefined behavior in php_set_inet6_addr. (ilutov)
  257. - SPL:
  258. . Fixed bug GH-8121 (SplFileObject - seek and key with csv file inconsistent).
  259. (cmb)
  260. . Fixed bug GH-8192 (Cannot override DirectoryIterator::current() without
  261. return typehint in 8.1). (Nikita)
  262. - Standard:
  263. . Fixed bug GH-8048 (Force macOS to use statfs). (risner)
  264. 17 Mar 2022, PHP 8.1.4
  265. - Core:
  266. . Fixed Haiku ZTS build. (David Carlier)
  267. . Fixed bug GH-8059 arginfo not regenerated for extension. (Remi)
  268. . Fixed bug GH-8083 Segfault when dumping uncalled fake closure with static
  269. variables. (ilutov)
  270. . Fixed bug GH-7958 (Nested CallbackFilterIterator is leaking memory). (cmb)
  271. . Fixed bug GH-8074 (Wrong type inference of range() result). (cmb)
  272. . Fixed bug GH-8140 (Wrong first class callable by name optimization). (cmb)
  273. . Fixed bug GH-8082 (op_arrays with temporary run_time_cache leak memory
  274. when observed). (Bob)
  275. - GD:
  276. . Fixed libpng warning when loading interlaced images. (Brett)
  277. - FPM:
  278. . Fixed bug #76109 (Unsafe access to fpm scoreboard).
  279. (Till Backhaus, Jakub Zelenka)
  280. - Iconv:
  281. . Fixed bug GH-7953 (ob_clean() only does not set Content-Encoding). (cmb)
  282. . Fixed bug GH-7980 (Unexpected result for iconv_mime_decode). (cmb)
  283. - MBString:
  284. . Fixed bug GH-8128 (mb_check_encoding wrong result for 7bit). (alexdowad)
  285. - MySQLnd:
  286. . Fixed bug GH-8058 (NULL pointer dereference in mysqlnd package). (Kamil Tekiela)
  287. - Reflection:
  288. . Fixed bug GH-8080 (ReflectionClass::getConstants() depends on def. order).
  289. (cmb)
  290. . Fixed bug GH-8444 (Fix ReflectionProperty::__toString() of properties
  291. containing instantiated enums). (ilutov)
  292. - Zlib:
  293. . Fixed bug GH-7953 (ob_clean() only does not set Content-Encoding). (cmb)
  294. 03 Feb 2022, PHP 8.1.3
  295. - Core:
  296. . Fixed bug #81430 (Attribute instantiation leaves dangling pointer).
  297. (beberlei)
  298. . Fixed bug GH-7896 (Environment vars may be mangled on Windows). (cmb)
  299. . Fixed bug GH-7883 (Segfault when INI file is not readable). (Remi)
  300. - FFI:
  301. . Fixed bug GH-7867 (FFI::cast() from pointer to array is broken). (cmb,
  302. dmitry)
  303. - Filter:
  304. . Fix #81708: UAF due to php_filter_float() failing for ints.
  305. (CVE-2021-21708) (cmb)
  306. - FPM:
  307. . Fixed memory leak on invalid port. (David Carlier)
  308. . Fixed bug GH-7842 (Invalid OpenMetrics response format returned by FPM
  309. status page. (Stefano Arlandini)
  310. - MBString:
  311. . Fixed bug GH-7902 (mb_send_mail may delimit headers with LF only). (cmb)
  312. - MySQLnd:
  313. . Fixed bug GH-7972 (MariaDB version prefix 5.5.5- is not stripped). (Kamil Tekiela)
  314. - pcntl:
  315. . Fixed pcntl_rfork build for DragonFlyBSD. (David Carlier)
  316. - Sockets:
  317. . Fixed bug GH-7978 (sockets extension compilation errors). (David Carlier)
  318. - Standard:
  319. . Fixed bug GH-7899 (Regression in unpack for negative int value). (Remi)
  320. . Fixed bug GH-7875 (mails are sent even if failure to log throws exception).
  321. (cmb)
  322. 20 Jan 2022, PHP 8.1.2
  323. - Core:
  324. . Fixed bug #81216 (Nullsafe operator leaks dynamic property name). (Dmitry)
  325. . Fixed bug #81684 (Using null coalesce assignment with $GLOBALS["x"] produces
  326. opcode error). (ilutov)
  327. . Fixed bug #81656 (GCC-11 silently ignores -R). (Michael Wallner)
  328. . Fixed bug #81683 (Misleading "access type ... must be public" error message
  329. on final or abstract interface methods). (ilutov)
  330. . Fixed bug #81585 (cached_chunks are not counted to real_size on shutdown).
  331. (cmb)
  332. . Fixed bug GH-7757 (Multi-inherited final constant causes fatal error).
  333. (cmb)
  334. . Fixed zend_fibers.c build with ZEND_FIBER_UCONTEXT. (Petr Sumbera)
  335. . Added riscv64 support for fibers. (Jeremie Courreges-Anglas)
  336. - Filter:
  337. . Fixed FILTER_FLAG_NO_RES_RANGE flag. (Yifan Tong)
  338. - Hash:
  339. . Fixed bug GH-7759 (Incorrect return types for hash() and hash_hmac()).
  340. (cmb)
  341. . Fixed bug GH-7826 (Inconsistent argument name in hash_hmac_file and
  342. hash_file). (cmb)
  343. - MBString:
  344. . Fixed bug #81693 (mb_check_encoding(7bit) segfaults). (cmb)
  345. - MySQLi:
  346. . Fixed bug #81658 (MYSQL_OPT_LOAD_DATA_LOCAL_DIR not available in MariaDB).
  347. (devnexen)
  348. . Introduced MYSQLI_IS_MARIADB. (devnexen)
  349. . Fixed bug GH-7746 (mysqli_sql_exception->getSqlState()). (Kamil Tekiela)
  350. - MySQLnd:
  351. . Fixed bug where large bigints may be truncated. (Nathan Freeman, cmb)
  352. - OCI8:
  353. . Fixed bug GH-7765 (php_oci_cleanup_global_handles segfaults at second
  354. call). (cmb)
  355. - OPcache:
  356. . Fixed bug #81679 (Tracing JIT crashes on reattaching). (cmb)
  357. - Readline:
  358. . Fixed bug #81598 (Cannot input unicode characters in PHP 8 interactive
  359. shell). (Nikita)
  360. - Reflection:
  361. . Fixed bug #81681 (ReflectionEnum throwing exceptions). (cmb)
  362. - PDO_PGSQL:
  363. . Fixed error message allocation of PDO PgSQL. (SATO Kentaro)
  364. - Sockets:
  365. . Avoid void* arithmetic in sockets/multicast.c on NetBSD. (David Carlier)
  366. . Fixed ext/sockets build on Haiku. (David Carlier)
  367. - Spl:
  368. . Fixed bug #75917 (SplFileObject::seek broken with CSV flags). (Aliaksandr
  369. Bystry)
  370. . Fixed bug GH-7809 (Cloning a faked SplFileInfo object may segfault). (cmb)
  371. - Standard:
  372. . Fixed bug GH-7748 (gethostbyaddr outputs binary string). (cmb)
  373. . Fixed bug GH-7815 (php_uname doesn't recognise latest Windows versions).
  374. (David Warner)
  375. 02 Dec 2021, PHP 8.1.1
  376. - IMAP:
  377. . Fixed bug #81649 (imap_(un)delete accept sequences, not single numbers).
  378. (cmb)
  379. - PCRE:
  380. . Update bundled PCRE2 to 10.39. (cmb)
  381. . Fixed bug #74604 (Out of bounds in php_pcre_replace_impl). (cmb, Dmitry)
  382. - Standard:
  383. . Fixed bug #81659 (stream_get_contents() may unnecessarily overallocate).
  384. (cmb)
  385. 25 Nov 2021, PHP 8.1.0
  386. - Core:
  387. . Fixed inclusion order for phpize builds on Windows. (cmb)
  388. . Added missing hashtable insertion APIs for arr/obj/ref. (Sara)
  389. . Implemented FR #77372 (Relative file path is removed from uploaded file).
  390. (Björn Tantau)
  391. . Fixed bug #81607 (CE_CACHE allocation with concurrent access). (Nikita,
  392. Dmitry)
  393. . Fixed bug #81507 (Fiber does not compile on AIX). (Clément Chigot)
  394. . Fixed bug #78647 (SEGFAULT in zend_do_perform_implementation_check).
  395. (Nikita)
  396. . Fixed bug #81518 (Header injection via default_mimetype / default_charset).
  397. (cmb)
  398. . Fixed bug #75941 (Fix compile failure on Solaris with clang). (Jaromír
  399. Doleček)
  400. . Fixed bug #81380 (Observer may not be initialized properly). (krakjoe)
  401. . Fixed bug #81514 (Using Enum as key in WeakMap triggers GC + SegFault).
  402. (Nikita)
  403. . Fixed bug #81520 (TEST_PHP_CGI_EXECUTABLE badly set in run-tests.php).
  404. (Remi)
  405. . Fixed bug #81377 (unset() of $GLOBALS sub-key yields warning). (Nikita)
  406. . Fixed bug #81342 (New ampersand token parsing depends on new line after it).
  407. (Nikita)
  408. . Fixed bug #81280 (Unicode characters in cli.prompt causes segfault).
  409. (krakjoe)
  410. . Fixed bug #81192 ("Declaration should be compatible with" gives incorrect
  411. line number with traits). (Nikita)
  412. . Fixed bug #78919 (CLI server: insufficient cleanup if request startup
  413. fails). (cataphract, cmb)
  414. . Fixed bug #81303 (match error message improvements). (krakjoe)
  415. . Fixed bug #81238 (Fiber support missing for Solaris Sparc). (trowski)
  416. . Fixed bug #81237 (Comparison of fake closures doesn't work). (krakjoe)
  417. . Fixed bug #81202 (powerpc64 build fails on fibers). (krakjoe)
  418. . Fixed bug #80072 (Cyclic unserialize in TMPVAR operand may leak). (Nikita)
  419. . Fixed bug #81163 (__sleep allowed to return non-array). (krakjoe)
  420. . Fixed bug #75474 (function scope static variables are not bound to a unique
  421. function). (Nikita)
  422. . Fixed bug #53826 (__callStatic fired in base class through a parent call if
  423. the method is private). (Nikita)
  424. . Fixed bug #81076 (incorrect debug info on Closures with implicit binds).
  425. (krakjoe)
  426. - CLI:
  427. . Fixed bug #81496 (Server logs incorrect request method). (lauri)
  428. - COM:
  429. . Dispatch using LANG_NEUTRAL instead of LOCALE_SYSTEM_DEFAULT. (Dmitry
  430. Maksimov)
  431. - Curl:
  432. . Fixed bug #81085 (Support CURLOPT_SSLCERT_BLOB for cert strings).
  433. (camporter)
  434. - Date:
  435. . Fixed bug #81458 (Regression Incorrect difference after timezone change).
  436. (Derick)
  437. . Fixed bug #81500 (Interval serialization regression since 7.3.14 / 7.4.2).
  438. (cmb)
  439. . Fixed bug #81504 (Incorrect timezone transition details for POSIX data).
  440. (Derick)
  441. . Fixed bug #80998 (Missing second with inverted interval). (Derick)
  442. . Speed up finding timezone offset information. (Derick)
  443. . Fixed bug #79580 (date_create_from_format misses leap year). (Derick)
  444. . Fixed bug #80963 (DateTimeZone::getTransitions() truncated). (Derick)
  445. . Fixed bug #80974 (Wrong diff between 2 dates in different timezones).
  446. (Derick)
  447. . Fixed bug #80998 (Missing second with inverted interval). (Derick)
  448. . Fixed bug #81097 (DateTimeZone silently falls back to UTC when providing an
  449. offset with seconds). (Derick)
  450. . Fixed bug #81106 (Regression in 8.1: add() now truncate ->f). (Derick)
  451. . Fixed bug #81273 (Date interval calculation not correct). (Derick)
  452. . Fixed bug #52480 (Incorrect difference using DateInterval). (Derick)
  453. . Fixed bug #62326 (date_diff() function returns false result). (Derick)
  454. . Fixed bug #64992 (dst not handled past 2038). (Derick)
  455. . Fixed bug #65003 (Wrong date diff). (Derick)
  456. . Fixed bug #66545 (DateTime. diff returns negative values). (Derick)
  457. . Fixed bug #68503 (date_diff on two dates with timezone set localised
  458. returns wrong results). (Derick)
  459. . Fixed bug #69806 (Incorrect date from timestamp). (Derick)
  460. . Fixed bug #71700 (Extra day on diff between begin and end of march 2016).
  461. (Derick)
  462. . Fixed bug #71826 (DateTime::diff confuse on timezone 'Asia/Tokyo'). (Derick)
  463. . Fixed bug #73460 (Datetime add not realising it already applied DST
  464. change). (Derick)
  465. . Fixed bug #74173 (DateTimeImmutable::getTimestamp() triggers DST switch in
  466. incorrect time). (Derick)
  467. . Fixed bug #74274 (Handling DST transitions correctly). (Derick)
  468. . Fixed bug #74524 (Date diff is bad calculated, in same time zone). (Derick)
  469. . Fixed bug #75167 (DateTime::add does only care about backward DST
  470. transition, not forward). (Derick)
  471. . Fixed bug #76032 (DateTime->diff having issues with leap days for
  472. timezones ahead of UTC). (Derick)
  473. . Fixed bug #76374 (Date difference varies according day time). (Derick)
  474. . Fixed bug #77571 (DateTime's diff DateInterval incorrect in timezones from
  475. UTC+01:00 to UTC+12:00). (Derick)
  476. . Fixed bug #78452 (diff makes wrong in hour for Asia/Tehran). (Derick)
  477. . Fixed bug #79452 (DateTime::diff() generates months differently between
  478. time zones). (Derick)
  479. . Fixed bug #79698 (timelib mishandles future timestamps (triggered by 'zic
  480. -b slim')). (Derick)
  481. . Fixed bug #79716 (Invalid date time created (with day "00")). (Derick)
  482. . Fixed bug #80610 (DateTime calculate wrong with DateInterval). (Derick)
  483. . Fixed bug #80664 (DateTime objects behave incorrectly around DST
  484. transition). (Derick)
  485. . Fixed bug #80913 (DateTime(Immutable)::sub around DST yield incorrect
  486. time). (Derick)
  487. - DBA:
  488. . Fixed bug #81588 (TokyoCabinet driver leaks memory). (girgias)
  489. - DOM:
  490. . Fixed bug #81433 (DOMElement::setIdAttribute() called twice may remove ID).
  491. (Viktor Volkov)
  492. - FFI:
  493. . Fixed bug #79576 ("TYPE *" shows unhelpful message when type is not
  494. defined). (Dmitry)
  495. - Filter:
  496. . Fixed bug #61700 (FILTER_FLAG_IPV6/FILTER_FLAG_NO_PRIV|RES_RANGE failing).
  497. (cmb, Nikita)
  498. - FPM:
  499. . Fixed bug #81513 (Future possibility for heap overflow in FPM zlog).
  500. (Jakub Zelenka)
  501. . Fixed bug #81026 (PHP-FPM oob R/W in root process leading to privilege
  502. escalation) (CVE-2021-21703). (Jakub Zelenka)
  503. . Added openmetrics status format. (Cees-Jan Kiewiet)
  504. . Enable process renaming on macOS. (devnexen)
  505. . Added pm.max_spawn_rate option to configure max spawn child processes rate.
  506. (Paulius Sapragonas)
  507. . Fixed bug #65800 (Events port mechanism). (psumbera)
  508. - FTP:
  509. . Convert resource<ftp> to object \FTP\Connection. (Sara)
  510. - GD:
  511. . Fixed bug #71316 (libpng warning from imagecreatefromstring). (cmb)
  512. . Convert resource<gd font> to object \GdFont. (Sara)
  513. - hash:
  514. . Implemented FR #68109 (Add MurmurHash V3). (Anatol, Michael)
  515. . Implemented FR #73385 (Add xxHash support). (Anatol)
  516. - JSON:
  517. . Fixed bug #81532 (Change of $depth behaviour in json_encode() on PHP 8.1).
  518. (Nikita)
  519. . Fixed bug GH-8238 (Register JSON_ERROR_NON_BACKED_ENUM constant). (ilutov)
  520. - LDAP:
  521. . Convert resource<ldap link> to object \LDAP\Connection. (Máté)
  522. . Convert resource<ldap result> to object \LDAP\Result. (Máté)
  523. . Convert resource<ldap result entry> to object \LDAP\ResultEntry. (Máté)
  524. - MBString:
  525. . Fixed bug #76167 (mbstring may use pointer from some previous request).
  526. (cmb, cataphract)
  527. . Fixed bug #81390 (mb_detect_encoding() regression). (alexdowad)
  528. . Fixed bug #81349 (mb_detect_encoding misdetcts ASCII in some cases).
  529. (Nikita)
  530. . Fixed bug #81298 (mb_detect_encoding() segfaults when 7bit encoding is
  531. specified). (Nikita)
  532. - MySQLi:
  533. . Fixed bug #70372 (Emulate mysqli_fetch_all() for libmysqlclient). (Nikita)
  534. . Fixed bug #80330 (Replace language in APIs and source code/docs).
  535. (Darek Ślusarczyk)
  536. . Fixed bug #80329 (Add option to specify LOAD DATA LOCAL white list folder
  537. (including libmysql)). (Darek Ślusarczyk)
  538. - MySQLnd:
  539. . Fixed bug #63327 (Crash (Bus Error) in mysqlnd due to wrong alignment).
  540. (Nikita)
  541. . Fixed bug #80761 (PDO uses too much memory). (Nikita)
  542. - Opcache:
  543. . Fixed bug #81409 (Incorrect JIT code for ADD with a reference to array).
  544. (Dmitry)
  545. . Fixed bug #81255 (Memory leak in PHPUnit with functional JIT).
  546. . Fixed bug #80959 (infinite loop in building cfg during JIT compilation).
  547. (Nikita, Dmitry)
  548. . Fixed bug #81225 (Wrong result with pow operator with JIT enabled).
  549. (Dmitry)
  550. . Fixed bug #81249 (Intermittent property assignment failure with JIT
  551. enabled). (Dmitry)
  552. . Fixed bug #81256 (Assertion `zv != ((void *)0)' failed for "preload" with
  553. JIT). (Dmitry)
  554. . Fixed bug #81133 (building opcache with phpize fails). (krakjoe)
  555. . Fixed bug #81136 (opcache header not installed). (krakjoe)
  556. . Added inheritance cache. (Dmitry)
  557. - OpenSSL:
  558. . Fixed bug #81502 ($tag argument of openssl_decrypt() should accept
  559. null/empty string). (Nikita)
  560. . Bump minimal OpenSSL version to 1.0.2. (Jakub Zelenka)
  561. - PCRE:
  562. . Fixed bug #81424 (PCRE2 10.35 JIT performance regression). (cmb)
  563. . Bundled PCRE2 is 10.37.
  564. - PDO:
  565. . Fixed bug #40913 (PDO_MYSQL: PDO::PARAM_LOB does not bind to a stream for
  566. fetching a BLOB). (Nikita)
  567. - PDO MySQL:
  568. . Fixed bug #80908 (PDO::lastInsertId() return wrong). (matt)
  569. . Fixed bug #81037 (PDO discards error message text from prepared
  570. statement). (Kamil Tekiela)
  571. - PDO OCI:
  572. . Fixed bug #77120 (Support 'success with info' at connection).
  573. (Sergei Morozov)
  574. - PDO ODBC:
  575. . Implement PDO_ATTR_SERVER_VERSION and PDO_ATTR_SERVER_INFO for
  576. PDO::getAttribute(). (Calvin Buckley)
  577. - PDO PgSQL:
  578. . Fixed bug #81343 (pdo_pgsql: Inconsitent boolean conversion after calling
  579. closeCursor()). (Philip Hofstetter)
  580. - PDO SQLite:
  581. . Fixed bug #38334 (Proper data-type support for PDO_SQLITE). (Nikita)
  582. - PgSQL:
  583. . Fixed bug #81509 (pg_end_copy still expects a resource). (Matteo)
  584. . Convert resource<pgsql link> to object \PgSql\Connection. (Máté)
  585. . Convert resource<pgsql result> to object \PgSql\Result. (Máté)
  586. . Convert resource<pgsql large object> to object \PgSql\Lob. (Máté)
  587. - Phar:
  588. . Use SHA256 by default for signature. (remi)
  589. . Add support for OpenSSL_SHA256 and OpenSSL_SHA512 signature. (remi)
  590. - phpdbg:
  591. . Fixed bug #81135 (unknown help topic causes assertion failure). (krakjoe)
  592. - PSpell:
  593. . Convert resource<pspell> to object \PSpell\Dictionary. (Sara)
  594. . Convert resource<pspell config> to object \PSpell\Config. (Sara)
  595. - readline:
  596. . Fixed bug #72998 (invalid read in readline completion). (krakjoe)
  597. - Reflection:
  598. . Fixed bug #81611 (ArgumentCountError when getting default value from
  599. ReflectionParameter with new). (Cameron Porter)
  600. . Fixed bug #81630 (PHP 8.1: ReflectionClass->getTraitAliases() crashes with
  601. Internal error). (Nikita)
  602. . Fixed bug #81457 (Enum: ReflectionMethod->getDeclaringClass() return a
  603. ReflectionClass). (Nikita)
  604. . Fixed bug #81474 (Make ReflectionEnum and related class non-final). (Nikita)
  605. . Fixed bug #80821 (ReflectionProperty::getDefaultValue() returns current
  606. value for statics). (Nikita)
  607. . Fixed bug #80564 (ReflectionProperty::__toString() renders current value,
  608. not default value). (Nikita)
  609. . Fixed bug #80097 (ReflectionAttribute is not a Reflector). (beberlei)
  610. . Fixed bug #81200 (no way to determine if Closure is static). (krakjoe)
  611. . Implement ReflectionFunctionAbstract::getClosureUsedVariables. (krakjoe)
  612. - Shmop:
  613. . Fixed bug #81407 (shmop_open won't attach and causes php to crash). (cmb)
  614. - SimpleXML:
  615. . Fixed bug #81325 (Segfault in zif_simplexml_import_dom). (remi)
  616. - SNMP:
  617. . Implement SHA256 and SHA512 for security protocol. (remi)
  618. - Sodium:
  619. . Added the XChaCha20 stream cipher functions. (P.I.E. Security Team)
  620. . Added the Ristretto255 functions, which are available in libsodium 1.0.18.
  621. (P.I.E. Security Team)
  622. - SPL:
  623. . Fixed bug #66588 (SplFileObject::fgetcsv incorrectly returns a row on
  624. premature EOF). (Aliaksandr Bystry)
  625. . Fixed bug #80663 (Recursive SplFixedArray::setSize() may cause double-free).
  626. (cmb, Nikita, Tyson Andre)
  627. . Fixed bug #81477 (LimitIterator + SplFileObject regression in 8.0.1). (cmb)
  628. . Fixed bug #81112 (Special json_encode behavior for SplFixedArray). (Nikita)
  629. . Fixed bug #80945 ("Notice: Undefined index" on unset() ArrayObject
  630. non-existing key). (Nikita)
  631. . Fixed bug #80724 (FilesystemIterator::FOLLOW_SYMLINKS remove KEY_AS_FILE
  632. from bitmask). (Cameron Porter)
  633. - Standard:
  634. . Fixed bug #81441 (gethostbyaddr('::1') returns ip instead of name after
  635. calling some other method). (Nikita)
  636. . Fixed bug #81491 (Incorrectly using libsodium for argon2 hashing).
  637. (Dan Pock)
  638. . Fixed bug #81142 (PHP 7.3+ memory leak when unserialize() is used on an
  639. associative array). (Nikita)
  640. . Fixed bug #81111 (Serialization is unexpectedly allowed on anonymous classes
  641. with __serialize()). (Nikita)
  642. . Fixed bug #81137 (hrtime breaks build on OSX before Sierra). (krakjoe)
  643. . Fixed bug #77627 (method_exists on Closure::__invoke inconsistency).
  644. (krakjoe)
  645. - Streams:
  646. . Fixed bug #81475 (stream_isatty emits warning with attached stream wrapper).
  647. (cmb)
  648. - XML:
  649. . Fixed bug #79971 (special character is breaking the path in xml function)
  650. (CVE-2021-21707). (cmb)
  651. . Fixed bug #70962 (XML_OPTION_SKIP_WHITE strips embedded whitespace).
  652. (Aliaksandr Bystry, cmb)
  653. - Zip:
  654. . Fixed bug #81490 (ZipArchive::extractTo() may leak memory). (cmb, Remi)
  655. . Fixed bug #77978 (Dirname ending in colon unzips to wrong dir). (cmb)
  656. . Fixed bug #81420 (ZipArchive::extractTo extracts outside of destination)
  657. (CVE-2021-21706). (cmb)
  658. . Fixed bug #80833 (ZipArchive::getStream doesn't use setPassword). (Remi)