summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2008-08-30 16:24:33 +0000
committerPierre Joye <pajoye@php.net>2008-08-30 16:24:33 +0000
commit820c2002e4636fd95f07fc903b867fea381092e8 (patch)
tree4f3a1cdf263e55c66363b487aeed642090ff4ba7
parent3dadcee60bc6d3b8bd783fef305169d642ea4aa1 (diff)
downloadphp-git-820c2002e4636fd95f07fc903b867fea381092e8.tar.gz
- fix tests (clean on exit)
-rw-r--r--ext/zip/tests/bug7658.phpt5
-rw-r--r--ext/zip/tests/oo_delete.phpt3
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