diff options
author | Anatol Belski <ab@php.net> | 2018-08-03 07:08:53 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2018-08-03 07:08:53 +0200 |
commit | 41c69766a4bcbd74779379129964cf0bf26b4217 (patch) | |
tree | 9a8c33110b13b20d0457e6a9a96646941105bc74 | |
parent | 19592519c2803a42762e8fee18505083dc3474fc (diff) | |
download | php-git-41c69766a4bcbd74779379129964cf0bf26b4217.tar.gz |
Improve cleanup
The persistent connection locks the file which might prevent deletion.
-rw-r--r-- | ext/pdo_sqlite/tests/bug70221.phpt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/pdo_sqlite/tests/bug70221.phpt b/ext/pdo_sqlite/tests/bug70221.phpt index 2d1aea0e8b..aa9d4ee8e2 100644 --- a/ext/pdo_sqlite/tests/bug70221.phpt +++ b/ext/pdo_sqlite/tests/bug70221.phpt @@ -12,7 +12,11 @@ function _test() { return 42; } $db->sqliteCreateFunction('test', '_test', 0); print("Everything is fine, no exceptions here\n"); unset($db); -@unlink($dbfile); +?> +--CLEAN-- +<?php +$dbfile = __DIR__ . '/test.sqlite'; +unlink($dbfile); ?> --EXPECT-- Everything is fine, no exceptions here |