From b72e3ea62213c0df4d0b101d015a01768d0ba059 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Sat, 30 Aug 2008 23:54:46 +0000 Subject: [PATCH] - file will exist only on error (thx tony for the headup) --- ext/zip/tests/oo_delete.phpt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ext/zip/tests/oo_delete.phpt b/ext/zip/tests/oo_delete.phpt index ec1f8cdeee..2341c16b44 100644 --- a/ext/zip/tests/oo_delete.phpt +++ b/ext/zip/tests/oo_delete.phpt @@ -63,8 +63,11 @@ $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 -- 2.50.1