pajoye Sat Aug 30 23:55:04 2008 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/zip/tests oo_delete.phpt Log: - MFH: 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.1.4.2&r2=1.1.4.3&diff_format=u Index: php-src/ext/zip/tests/oo_delete.phpt diff -u php-src/ext/zip/tests/oo_delete.phpt:1.1.4.2 php-src/ext/zip/tests/oo_delete.phpt:1.1.4.3 --- php-src/ext/zip/tests/oo_delete.phpt:1.1.4.2 Sat Aug 30 16:24:33 2008 +++ php-src/ext/zip/tests/oo_delete.phpt Sat Aug 30 23:55:04 2008 @@ -2,7 +2,7 @@ Delete entries --SKIPIF-- <?php -/* $Id: oo_delete.phpt,v 1.1.4.2 2008/08/30 16:24:33 pajoye Exp $ */ +/* $Id: oo_delete.phpt,v 1.1.4.3 2008/08/30 23:55:04 pajoye Exp $ */ if(!extension_loaded('zip')) die('skip'); ?> --FILE-- @@ -63,8 +63,12 @@ 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