diff options
author | Pierre Joye <pajoye@php.net> | 2008-08-30 16:24:33 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2008-08-30 16:24:33 +0000 |
commit | 820c2002e4636fd95f07fc903b867fea381092e8 (patch) | |
tree | 4f3a1cdf263e55c66363b487aeed642090ff4ba7 | |
parent | 3dadcee60bc6d3b8bd783fef305169d642ea4aa1 (diff) | |
download | php-git-820c2002e4636fd95f07fc903b867fea381092e8.tar.gz |
- fix tests (clean on exit)
-rw-r--r-- | ext/zip/tests/bug7658.phpt | 5 | ||||
-rw-r--r-- | 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 |