]> granicus.if.org Git - php/commitdiff
- file will exist only on error (thx tony for the headup)
authorPierre Joye <pajoye@php.net>
Sat, 30 Aug 2008 23:54:46 +0000 (23:54 +0000)
committerPierre Joye <pajoye@php.net>
Sat, 30 Aug 2008 23:54:46 +0000 (23:54 +0000)
ext/zip/tests/oo_delete.phpt

index ec1f8cdeee43f39129ea7731282edb8fde7e5266..2341c16b446f1e87598c4561044a74e93643bc18 100644 (file)
@@ -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