diff options
| author | Marcus Boerger <helly@php.net> | 2003-06-22 19:03:24 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2003-06-22 19:03:24 +0000 |
| commit | a594c7b71411bac2bf4da7d666b52d3b54f10779 (patch) | |
| tree | 35abd1de0f4c53375c2ec579e4e00afecb20eb85 /ext | |
| parent | 9d6f63ef716eb80e4e2ac63f328648627d8ed015 (diff) | |
| download | php-git-a594c7b71411bac2bf4da7d666b52d3b54f10779.tar.gz | |
Fix test shutdown
Diffstat (limited to 'ext')
| -rwxr-xr-x | ext/sqlite/tests/blankdb_oo.inc | 4 | ||||
| -rwxr-xr-x | ext/sqlite/tests/sqlite_oo_020.phpt | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/ext/sqlite/tests/blankdb_oo.inc b/ext/sqlite/tests/blankdb_oo.inc index 05609bddb7..b98fb41025 100755 --- a/ext/sqlite/tests/blankdb_oo.inc +++ b/ext/sqlite/tests/blankdb_oo.inc @@ -3,9 +3,7 @@ $dbname = tempnam(dirname(__FILE__), "phpsql"); function cleanup() { global $db, $dbname; - if ($db) { - @$db->close(); - } + $db = NULL; unlink($dbname); } register_shutdown_function("cleanup"); diff --git a/ext/sqlite/tests/sqlite_oo_020.phpt b/ext/sqlite/tests/sqlite_oo_020.phpt index e8e2d631f6..457342bb1b 100755 --- a/ext/sqlite/tests/sqlite_oo_020.phpt +++ b/ext/sqlite/tests/sqlite_oo_020.phpt @@ -11,9 +11,7 @@ $dbname = tempnam(dirname(__FILE__), "phpsql"); function cleanup() { global $db, $dbname; - if ($db) { - @$db->close(); - } + $db = NULL; unlink($dbname); } register_shutdown_function("cleanup"); |
