pajoye          Sat Aug 30 23:54:46 2008 UTC

  Modified files:              
    /php-src/ext/zip/tests      oo_delete.phpt 
  Log:
  - file will exist only on error (thx tony for the headup)
  
http://cvs.php.net/viewvc.cgi/php-src/ext/zip/tests/oo_delete.phpt?r1=1.2&r2=1.3&diff_format=u
Index: php-src/ext/zip/tests/oo_delete.phpt
diff -u php-src/ext/zip/tests/oo_delete.phpt:1.2 
php-src/ext/zip/tests/oo_delete.phpt:1.3
--- php-src/ext/zip/tests/oo_delete.phpt:1.2    Sat Aug 30 16:26:11 2008
+++ php-src/ext/zip/tests/oo_delete.phpt        Sat Aug 30 23:54:46 2008
@@ -2,7 +2,7 @@
 Delete entries
 --SKIPIF--
 <?php
-/* $Id: oo_delete.phpt,v 1.2 2008/08/30 16:26:11 pajoye Exp $ */
+/* $Id: oo_delete.phpt,v 1.3 2008/08/30 23:54:46 pajoye Exp $ */
 if(!extension_loaded('zip')) die('skip');
 ?>
 --FILE--
@@ -63,8 +63,11 @@
 var_dump($sb);
 $sb = $zip->statIndex(2);
 var_dump($sb);
+$zip->close();
 unset($zip);
-unlink($file);
+if (file_exists($file)) {
+       unlink($file);
+}
 ?>
 --EXPECTF--
 ok



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to