Skip to content
Prev Previous commit
Next Next commit
Cleanup + drop todo comment
  • Loading branch information
Girgias committed Jul 28, 2022
commit 26849b61aef5fd3b50b9a795a5891d8df8d29618
4 changes: 2 additions & 2 deletions ext/dba/tests/dba_array_keys_inifile.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ check_skip('inifile');
--FILE--
<?php
require_once __DIR__ . '/setup/setup_dba_tests.inc';
$name = 'array_keys_inifle.db';
$name = __DIR__ . '/array_keys_basic.db';

$db = dba_open($name, 'c', 'inifile');

Expand All @@ -28,7 +28,7 @@ dba_close($db);
--CLEAN--
<?php
require_once __DIR__ . '/setup/setup_dba_tests.inc';
$db_name = 'array_keys_basic.db';
$db_name = __DIR__ . '/array_keys_basic.db';
cleanup_standard_db($db_name);
?>
--EXPECTF--
Expand Down
2 changes: 0 additions & 2 deletions ext/dba/tests/setup/setup_dba_tests.inc
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ enum LockFlag: string {
case NoLock = '-';
}

// TODO Test which opens a NON DB file to check for memory leaks (at least LMDB has)

function set_up_db_ex(string $handler, string $name, LockFlag $lock, bool $persistent = false) {
$lock_flag = $lock->value;
// Open file in creation/truncation mode
Expand Down