Skip to content

Commit 5a3774c

Browse files
committed
Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0: Fix Bug #81588 TokyoCabinet driver leaks memory
2 parents dd0ec7a + 9f77373 commit 5a3774c

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ PHP NEWS
1313
. Fixed bug #81500 (Interval serialization regression since 7.3.14 / 7.4.2).
1414
(cmb)
1515

16+
- DBA:
17+
. Fixed bug #81588 (TokyoCabinet driver leaks memory). (girgias)
18+
1619
- FPM:
1720
. Fixed bug #81026 (PHP-FPM oob R/W in root process leading to privilege
1821
escalation) (CVE-2021-21703). (Jakub Zelenka)

ext/dba/dba_tcadb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ DBA_CLOSE_FUNC(tcadb)
7979
TCADB_DATA;
8080

8181
tcadbclose(dba->tcadb);
82+
tcadbdel(dba->tcadb);
8283
pefree(dba, info->flags & DBA_PERSISTENT);
8384
}
8485

ext/dba/tests/dba_tcadb.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ dba
99
?>
1010
--FILE--
1111
<?php
12+
$handler = 'tcadb';
1213
$lock_flag = 'l';
1314
$db_filename = $db_file = __DIR__ .'/test0.tch';
1415
@unlink($db_filename);

0 commit comments

Comments
 (0)