From: Pierre Joye Date: Sat, 30 Aug 2008 23:54:46 +0000 (+0000) Subject: - file will exist only on error (thx tony for the headup) X-Git-Tag: BEFORE_HEAD_NS_CHANGE~512 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b72e3ea62213c0df4d0b101d015a01768d0ba059;p=php - file will exist only on error (thx tony for the headup) --- 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