tony2001 Mon Oct 2 14:31:04 2006 UTC Modified files: (Branch: PHP_5_2) /php-src/ext/zip/tests bug7658.phpt oo_addfile.phpt oo_namelocate.phpt oo_rename.phpt Log: fix tests http://cvs.php.net/viewvc.cgi/php-src/ext/zip/tests/bug7658.phpt?r1=1.1&r2=1.1.2.1&diff_format=u Index: php-src/ext/zip/tests/bug7658.phpt diff -u php-src/ext/zip/tests/bug7658.phpt:1.1 php-src/ext/zip/tests/bug7658.phpt:1.1.2.1 --- php-src/ext/zip/tests/bug7658.phpt:1.1 Mon Jul 24 16:58:58 2006 +++ php-src/ext/zip/tests/bug7658.phpt Mon Oct 2 14:31:04 2006 @@ -2,13 +2,13 @@ bug #7658, modify archive with general bit flag 3 set --SKIPIF-- <?php -/* $Id: bug7658.phpt,v 1.1 2006/07/24 16:58:58 pajoye Exp $ */ +/* $Id: bug7658.phpt,v 1.1.2.1 2006/10/02 14:31:04 tony2001 Exp $ */ if(!extension_loaded('zip')) die('skip'); ?> --FILE-- <?php $dirname = dirname(__FILE__) . '/'; -include $dirname . 'utils.php'; +include $dirname . 'utils.inc'; $file = $dirname . '__tmp_bug7658.odt'; $zip = new ZipArchive(); copy($dirname . 'bug7658.odt', $file); http://cvs.php.net/viewvc.cgi/php-src/ext/zip/tests/oo_addfile.phpt?r1=1.1&r2=1.1.2.1&diff_format=u Index: php-src/ext/zip/tests/oo_addfile.phpt diff -u php-src/ext/zip/tests/oo_addfile.phpt:1.1 php-src/ext/zip/tests/oo_addfile.phpt:1.1.2.1 --- php-src/ext/zip/tests/oo_addfile.phpt:1.1 Mon Jul 24 16:58:58 2006 +++ php-src/ext/zip/tests/oo_addfile.phpt Mon Oct 2 14:31:04 2006 @@ -2,14 +2,14 @@ ziparchive::addFile() function --SKIPIF-- <?php -/* $Id: oo_addfile.phpt,v 1.1 2006/07/24 16:58:58 pajoye Exp $ */ +/* $Id: oo_addfile.phpt,v 1.1.2.1 2006/10/02 14:31:04 tony2001 Exp $ */ if(!extension_loaded('zip')) die('skip'); ?> --FILE-- <?php $dirname = dirname(__FILE__) . '/'; -include $dirname . 'utils.php'; +include $dirname . 'utils.inc'; $file = $dirname . '__tmp_oo_addfile.zip'; copy($dirname . 'test.zip', $file); @@ -18,7 +18,7 @@ if (!$zip->open($file)) { exit('failed'); } -if (!$zip->addFile($dirname . 'utils.php', 'test.php')) { +if (!$zip->addFile($dirname . 'utils.inc', 'test.php')) { echo "failed\n"; } if ($zip->status == ZIPARCHIVE::ER_OK) { http://cvs.php.net/viewvc.cgi/php-src/ext/zip/tests/oo_namelocate.phpt?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: php-src/ext/zip/tests/oo_namelocate.phpt diff -u php-src/ext/zip/tests/oo_namelocate.phpt:1.1.2.1 php-src/ext/zip/tests/oo_namelocate.phpt:1.1.2.2 --- php-src/ext/zip/tests/oo_namelocate.phpt:1.1.2.1 Sun Aug 13 23:43:11 2006 +++ php-src/ext/zip/tests/oo_namelocate.phpt Mon Oct 2 14:31:04 2006 @@ -2,13 +2,13 @@ Locate entries by name --SKIPIF-- <?php -/* $Id: oo_namelocate.phpt,v 1.1.2.1 2006/08/13 23:43:11 pajoye Exp $ */ +/* $Id: oo_namelocate.phpt,v 1.1.2.2 2006/10/02 14:31:04 tony2001 Exp $ */ if(!extension_loaded('zip')) die('skip'); ?> --FILE-- <?php $dirname = dirname(__FILE__) . '/'; -include $dirname . 'utils.php'; +include $dirname . 'utils.inc'; $file = $dirname . '__tmp_oo_rename.zip'; @unlink($file); http://cvs.php.net/viewvc.cgi/php-src/ext/zip/tests/oo_rename.phpt?r1=1.1&r2=1.1.2.1&diff_format=u Index: php-src/ext/zip/tests/oo_rename.phpt diff -u php-src/ext/zip/tests/oo_rename.phpt:1.1 php-src/ext/zip/tests/oo_rename.phpt:1.1.2.1 --- php-src/ext/zip/tests/oo_rename.phpt:1.1 Mon Jul 24 16:58:58 2006 +++ php-src/ext/zip/tests/oo_rename.phpt Mon Oct 2 14:31:04 2006 @@ -2,13 +2,13 @@ Rename entries --SKIPIF-- <?php -/* $Id: oo_rename.phpt,v 1.1 2006/07/24 16:58:58 pajoye Exp $ */ +/* $Id: oo_rename.phpt,v 1.1.2.1 2006/10/02 14:31:04 tony2001 Exp $ */ if(!extension_loaded('zip')) die('skip'); ?> --FILE-- <?php $dirname = dirname(__FILE__) . '/'; -include $dirname . 'utils.php'; +include $dirname . 'utils.inc'; $file = $dirname . '__tmp_oo_rename.zip'; @unlink($file);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php