summaryrefslogtreecommitdiff
path: root/ext/zip/tests
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2008-08-30 23:55:04 +0000
committerPierre Joye <pajoye@php.net>2008-08-30 23:55:04 +0000
commit10d0029dce6cde443c5be240c43f96da983c9488 (patch)
treef204b9b345b2c49243f79a4ca986ef25dd28516f /ext/zip/tests
parent046f8dba552ffc7111836b2bc28330ea65c02792 (diff)
downloadphp-git-10d0029dce6cde443c5be240c43f96da983c9488.tar.gz
- MFH: file will exist only on error (thx tony for the headup)
Diffstat (limited to 'ext/zip/tests')
-rw-r--r--ext/zip/tests/oo_delete.phpt6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/zip/tests/oo_delete.phpt b/ext/zip/tests/oo_delete.phpt
index ec1f8cdeee..9eac821734 100644
--- a/ext/zip/tests/oo_delete.phpt
+++ b/ext/zip/tests/oo_delete.phpt
@@ -63,8 +63,12 @@ $sb = $zip->statIndex(1);
var_dump($sb);
$sb = $zip->statIndex(2);
var_dump($sb);
+$zip->close();
unset($zip);
-unlink($file);
+
+if (file_exists($file)) {
+ unlink($file);
+}
?>
--EXPECTF--
ok