Merge branch 'PHP-8.0' into PHP-8.1

* PHP-8.0:
  Fix Bug #81588 TokyoCabinet driver leaks memory
This commit is contained in:
George Peter Banyard 2021-11-03 15:00:56 +00:00
commit 5a3774cac5
No known key found for this signature in database
GPG key ID: D49A095D7329F6DC
3 changed files with 5 additions and 0 deletions

3
NEWS
View file

@ -13,6 +13,9 @@ PHP NEWS
. Fixed bug #81500 (Interval serialization regression since 7.3.14 / 7.4.2).
(cmb)
- DBA:
. Fixed bug #81588 (TokyoCabinet driver leaks memory). (girgias)
- FPM:
. Fixed bug #81026 (PHP-FPM oob R/W in root process leading to privilege
escalation) (CVE-2021-21703). (Jakub Zelenka)

View file

@ -79,6 +79,7 @@ DBA_CLOSE_FUNC(tcadb)
TCADB_DATA;
tcadbclose(dba->tcadb);
tcadbdel(dba->tcadb);
pefree(dba, info->flags & DBA_PERSISTENT);
}

View file

@ -9,6 +9,7 @@ dba
?>
--FILE--
<?php
$handler = 'tcadb';
$lock_flag = 'l';
$db_filename = $db_file = __DIR__ .'/test0.tch';
@unlink($db_filename);