tony2001                Mon Aug 13 12:46:34 2007 UTC

  Modified files:              
    /php-src/ext/zip/tests      oo_properties.phpt 
  Log:
  make sure the temp file is closed before removing it
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/zip/tests/oo_properties.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/zip/tests/oo_properties.phpt
diff -u php-src/ext/zip/tests/oo_properties.phpt:1.1 
php-src/ext/zip/tests/oo_properties.phpt:1.2
--- php-src/ext/zip/tests/oo_properties.phpt:1.1        Mon Aug  6 21:59:11 2007
+++ php-src/ext/zip/tests/oo_properties.phpt    Mon Aug 13 12:46:34 2007
@@ -2,7 +2,7 @@
 ziparchive::properties isset()/empty() checks
 --SKIPIF--
 <?php
-/* $Id: oo_properties.phpt,v 1.1 2007/08/06 21:59:11 bjori Exp $ */
+/* $Id: oo_properties.phpt,v 1.2 2007/08/13 12:46:34 tony2001 Exp $ */
 if(!extension_loaded('zip')) die('skip');
 ?>
 --FILE--
@@ -30,6 +30,7 @@
 printf("zip->filename (%d):\n\tempty(): %d\n\tisset(): %d\n", 
strlen($zip->filename), empty($zip->filename), isset($zip->filename));
 printf("zip->comment (%d):\n\tempty(): %d\n\tisset(): %d\n", 
strlen($zip->comment), empty($zip->comment), isset($zip->comment));
 
+unset($zip); //close the file before unlinking
 @unlink($file);
 ?>
 --EXPECTF--

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

Reply via email to