From 820c2002e4636fd95f07fc903b867fea381092e8 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Sat, 30 Aug 2008 16:24:33 +0000 Subject: [PATCH] - fix tests (clean on exit) --- ext/zip/tests/bug7658.phpt | 5 +++-- ext/zip/tests/oo_delete.phpt | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ext/zip/tests/bug7658.phpt b/ext/zip/tests/bug7658.phpt index 6e43315520..56fd00fbab 100644 --- a/ext/zip/tests/bug7658.phpt +++ b/ext/zip/tests/bug7658.phpt @@ -47,8 +47,9 @@ for($i=0; $i < $zip->numFiles; $i++) { $ar = array_diff($found, $expect); var_dump($ar); -@unlink($file); +unset($zip); +unlink($file); ?> --EXPECTF-- array(0) { -} \ No newline at end of file +} diff --git a/ext/zip/tests/oo_delete.phpt b/ext/zip/tests/oo_delete.phpt index 176cda44dc..ec1f8cdeee 100644 --- a/ext/zip/tests/oo_delete.phpt +++ b/ext/zip/tests/oo_delete.phpt @@ -63,7 +63,8 @@ $sb = $zip->statIndex(1); var_dump($sb); $sb = $zip->statIndex(2); var_dump($sb); -@unlink($file); +unset($zip); +unlink($file); ?> --EXPECTF-- ok -- 2.40.0