From 88ec761548b66f58acc1a86cdd0fc164ca925476 Mon Sep 17 00:00:00 2001 From: SVN Migration Date: Sun, 15 Oct 2006 21:09:28 +0000 Subject: This commit was manufactured by cvs2svn to create branch 'PECL_OPENSSL'. --- ext/zip/tests/001.phpt | 12 ---- ext/zip/tests/binarynull.zip | Bin 656 -> 0 bytes ext/zip/tests/bug38943.phpt | 50 ---------------- ext/zip/tests/bug38944.phpt | 40 ------------- ext/zip/tests/bug7214.phpt | 23 -------- ext/zip/tests/bug7658.odt | Bin 8873 -> 0 bytes ext/zip/tests/bug7658.phpt | 60 ------------------- ext/zip/tests/bug7658.xml | 2 - ext/zip/tests/bug8009.phpt | 27 --------- ext/zip/tests/bug8009.zip | Bin 112 -> 0 bytes ext/zip/tests/bug8700.phpt | 30 ---------- ext/zip/tests/oo_addfile.phpt | 37 ------------ ext/zip/tests/oo_close.phpt | 25 -------- ext/zip/tests/oo_delete.phpt | 76 ------------------------- ext/zip/tests/oo_ext_zip.phpt | 27 --------- ext/zip/tests/oo_namelocate.phpt | 46 --------------- ext/zip/tests/oo_open.phpt | 46 --------------- ext/zip/tests/oo_rename.phpt | 58 ------------------- ext/zip/tests/test.zip | Bin 526 -> 0 bytes ext/zip/tests/test_procedural.zip | Bin 541 -> 0 bytes ext/zip/tests/utils.inc | 8 --- ext/zip/tests/zip_close.phpt | 17 ------ ext/zip/tests/zip_entry_compressedsize.phpt | 23 -------- ext/zip/tests/zip_entry_compressionmethod.phpt | 24 -------- ext/zip/tests/zip_entry_filesize.phpt | 23 -------- ext/zip/tests/zip_entry_name.phpt | 23 -------- ext/zip/tests/zip_entry_open.phpt | 17 ------ ext/zip/tests/zip_entry_read.phpt | 18 ------ ext/zip/tests/zip_open.phpt | 16 ------ ext/zip/tests/zip_read.phpt | 21 ------- 30 files changed, 749 deletions(-) delete mode 100644 ext/zip/tests/001.phpt delete mode 100644 ext/zip/tests/binarynull.zip delete mode 100644 ext/zip/tests/bug38943.phpt delete mode 100644 ext/zip/tests/bug38944.phpt delete mode 100644 ext/zip/tests/bug7214.phpt delete mode 100644 ext/zip/tests/bug7658.odt delete mode 100644 ext/zip/tests/bug7658.phpt delete mode 100644 ext/zip/tests/bug7658.xml delete mode 100644 ext/zip/tests/bug8009.phpt delete mode 100644 ext/zip/tests/bug8009.zip delete mode 100644 ext/zip/tests/bug8700.phpt delete mode 100644 ext/zip/tests/oo_addfile.phpt delete mode 100644 ext/zip/tests/oo_close.phpt delete mode 100644 ext/zip/tests/oo_delete.phpt delete mode 100644 ext/zip/tests/oo_ext_zip.phpt delete mode 100644 ext/zip/tests/oo_namelocate.phpt delete mode 100644 ext/zip/tests/oo_open.phpt delete mode 100644 ext/zip/tests/oo_rename.phpt delete mode 100644 ext/zip/tests/test.zip delete mode 100644 ext/zip/tests/test_procedural.zip delete mode 100644 ext/zip/tests/utils.inc delete mode 100644 ext/zip/tests/zip_close.phpt delete mode 100644 ext/zip/tests/zip_entry_compressedsize.phpt delete mode 100644 ext/zip/tests/zip_entry_compressionmethod.phpt delete mode 100644 ext/zip/tests/zip_entry_filesize.phpt delete mode 100644 ext/zip/tests/zip_entry_name.phpt delete mode 100644 ext/zip/tests/zip_entry_open.phpt delete mode 100644 ext/zip/tests/zip_entry_read.phpt delete mode 100644 ext/zip/tests/zip_open.phpt delete mode 100644 ext/zip/tests/zip_read.phpt (limited to 'ext/zip/tests') diff --git a/ext/zip/tests/001.phpt b/ext/zip/tests/001.phpt deleted file mode 100644 index 37dccc055e..0000000000 --- a/ext/zip/tests/001.phpt +++ /dev/null @@ -1,12 +0,0 @@ ---TEST-- -Check for zip presence ---SKIPIF-- - ---POST-- ---GET-- ---FILE-- - ---EXPECT-- -zip extension is available diff --git a/ext/zip/tests/binarynull.zip b/ext/zip/tests/binarynull.zip deleted file mode 100644 index 9da004efed..0000000000 Binary files a/ext/zip/tests/binarynull.zip and /dev/null differ diff --git a/ext/zip/tests/bug38943.phpt b/ext/zip/tests/bug38943.phpt deleted file mode 100644 index d7236e314b..0000000000 --- a/ext/zip/tests/bug38943.phpt +++ /dev/null @@ -1,50 +0,0 @@ ---TEST-- -#38943, properties in extended class cannot be set ---SKIPIF-- - ---FILE-- -testarray[] = 1; - var_dump($this->testarray); - } -} - -$z = new myZip; -$z->testp = "foobar"; -var_dump($z); -?> ---EXPECTF-- -array(1) { - [0]=> - int(1) -} -object(myZip)#1 (%d) { - ["test:private"]=> - int(0) - ["testp"]=> - string(6) "foobar" - ["testarray:private"]=> - array(1) { - [0]=> - int(1) - } - ["status"]=> - int(0) - ["statusSys"]=> - int(0) - ["numFiles"]=> - int(0) - ["filename"]=> - string(0) "" - ["comment"]=> - string(0) "" -} diff --git a/ext/zip/tests/bug38944.phpt b/ext/zip/tests/bug38944.phpt deleted file mode 100644 index ee12fad2b3..0000000000 --- a/ext/zip/tests/bug38944.phpt +++ /dev/null @@ -1,40 +0,0 @@ ---TEST-- -Bug #38944 (newly created ZipArchive segfaults when accessing comment property) ---SKIPIF-- - ---FILE-- -open($arc_name, ZIPARCHIVE::CREATE);; - -var_dump($foo->status); -var_dump($foo->statusSys); -var_dump($foo->numFiles); -var_dump($foo->filename); -var_dump($foo->comment); - -var_dump($foo); - -echo "Done\n"; -?> ---EXPECTF-- -int(0) -int(0) -int(0) -string(0) "" -string(0) "" -object(ZipArchive)#%d (5) { - ["status"]=> - int(0) - ["statusSys"]=> - int(0) - ["numFiles"]=> - int(0) - ["filename"]=> - string(0) "" - ["comment"]=> - string(0) "" -} -Done diff --git a/ext/zip/tests/bug7214.phpt b/ext/zip/tests/bug7214.phpt deleted file mode 100644 index 7d7de5720a..0000000000 --- a/ext/zip/tests/bug7214.phpt +++ /dev/null @@ -1,23 +0,0 @@ ---TEST-- -bug #7214, zip_entry_read() binary safe ---SKIPIF-- - ---FILE-- - ---EXPECT-- -Ok \ No newline at end of file diff --git a/ext/zip/tests/bug7658.odt b/ext/zip/tests/bug7658.odt deleted file mode 100644 index 527e09fefc..0000000000 Binary files a/ext/zip/tests/bug7658.odt and /dev/null differ diff --git a/ext/zip/tests/bug7658.phpt b/ext/zip/tests/bug7658.phpt deleted file mode 100644 index 3372b0d121..0000000000 --- a/ext/zip/tests/bug7658.phpt +++ /dev/null @@ -1,60 +0,0 @@ ---TEST-- -bug #7658, modify archive with general bit flag 3 set ---SKIPIF-- - ---FILE-- -open($file)) { - echo 'failed'; -} - -dump_entries_name($zip); - -$zip->deleteName('content.xml'); -$zip->addFile($dirname . "bug7658.xml","content.xml"); -$zip->close(); -echo "\n"; -$zip->open($file); -dump_entries_name($zip); -@unlink($file); -?> ---EXPECT-- -0 mimetype -1 Configurations2/statusbar/ -2 Configurations2/accelerator/current.xml -3 Configurations2/floater/ -4 Configurations2/popupmenu/ -5 Configurations2/progressbar/ -6 Configurations2/menubar/ -7 Configurations2/toolbar/ -8 Configurations2/images/Bitmaps/ -9 content.xml -10 styles.xml -11 meta.xml -12 Thumbnails/thumbnail.png -13 settings.xml -14 META-INF/manifest.xml - -0 mimetype -1 Configurations2/statusbar/ -2 Configurations2/accelerator/current.xml -3 Configurations2/floater/ -4 Configurations2/popupmenu/ -5 Configurations2/progressbar/ -6 Configurations2/menubar/ -7 Configurations2/toolbar/ -8 Configurations2/images/Bitmaps/ -9 styles.xml -10 meta.xml -11 Thumbnails/thumbnail.png -12 settings.xml -13 META-INF/manifest.xml -14 content.xml diff --git a/ext/zip/tests/bug7658.xml b/ext/zip/tests/bug7658.xml deleted file mode 100644 index 98076f1984..0000000000 --- a/ext/zip/tests/bug7658.xml +++ /dev/null @@ -1,2 +0,0 @@ - -Other text Silvio Berlusconi, le ricordo che ha in prestito i seguenti libriTitoloInventarioCodice Da Vinci112345678Lo Zen e il tiro con l'arco1020304Lo Zen e l'arte della manutenzione della motocicletta1020305101 Storie Zen1020306Antani di Blinda come fosse di Cappotto4112345peraltro, sottolineiamo la perentorietà della restituzione anche dei vieppiù interessanti testi:TitoloAutoreInventarioAngeli e DemoniDan Brown12131415La versione di BarneyMordecai Richler2010322Manuale PHPVarii32413543La prematurata supercazzola negli anni a venireUgo Tognazzi31213243La sbiriguda in vicesindacoUgo Tognazzi1324354654Gentili saluti, la sua biblioteca diff --git a/ext/zip/tests/bug8009.phpt b/ext/zip/tests/bug8009.phpt deleted file mode 100644 index 90ab765bfa..0000000000 --- a/ext/zip/tests/bug8009.phpt +++ /dev/null @@ -1,27 +0,0 @@ ---TEST-- -bug #8009, cannot add again same entry to an archive ---SKIPIF-- - ---FILE-- -open($filename)) { - exit("cannot open $filename\n"); -} -$zip->addFromString("2.txt", "=)"); -$zip->close(); -unlink($filename); -echo "status: " . $zip->status . "\n"; -echo "\n"; - ---EXPECT-- -status: 0 diff --git a/ext/zip/tests/bug8009.zip b/ext/zip/tests/bug8009.zip deleted file mode 100644 index 45bedcbe88..0000000000 Binary files a/ext/zip/tests/bug8009.zip and /dev/null differ diff --git a/ext/zip/tests/bug8700.phpt b/ext/zip/tests/bug8700.phpt deleted file mode 100644 index 5e7df4560b..0000000000 --- a/ext/zip/tests/bug8700.phpt +++ /dev/null @@ -1,30 +0,0 @@ ---TEST-- -bug #8700, getFromIndex(0) fails ---SKIPIF-- - ---FILE-- -open($filename) === FALSE) { - exit("cannot open $filename\n"); -} -$contents_from_idx = $zip->getFromIndex(0); -$contents_from_name = $zip->getFromName('1.txt'); -if ($contents_from_idx != $contents_from_name) { - echo "failed:"; - var_dump($content_from_idx, $content_from_name); -} - -$zip->close(); -echo "status: " . $zip->status . "\n"; -echo "\n"; - ---EXPECT-- -status: 0 diff --git a/ext/zip/tests/oo_addfile.phpt b/ext/zip/tests/oo_addfile.phpt deleted file mode 100644 index ab79780999..0000000000 --- a/ext/zip/tests/oo_addfile.phpt +++ /dev/null @@ -1,37 +0,0 @@ ---TEST-- -ziparchive::addFile() function ---SKIPIF-- - ---FILE-- -open($file)) { - exit('failed'); -} -if (!$zip->addFile($dirname . 'utils.inc', 'test.php')) { - echo "failed\n"; -} -if ($zip->status == ZIPARCHIVE::ER_OK) { - dump_entries_name($zip); - $zip->close(); -} else { - echo "failed\n"; -} -@unlink($file); -?> ---EXPECTF-- -0 bar -1 foobar/ -2 foobar/baz -3 entry1.txt -4 test.php diff --git a/ext/zip/tests/oo_close.phpt b/ext/zip/tests/oo_close.phpt deleted file mode 100644 index ea67dcddfc..0000000000 --- a/ext/zip/tests/oo_close.phpt +++ /dev/null @@ -1,25 +0,0 @@ ---TEST-- -zip::close() function ---SKIPIF-- - ---FILE-- -open($dirname . 'test.zip')) { - exit('failed'); -} - -if ($zip->status == ZIPARCHIVE::ER_OK) { - $zip->close(); - echo "ok\n"; -} else { - echo "failed\n"; -} -?> ---EXPECTF-- -ok diff --git a/ext/zip/tests/oo_delete.phpt b/ext/zip/tests/oo_delete.phpt deleted file mode 100644 index 176cda44dc..0000000000 --- a/ext/zip/tests/oo_delete.phpt +++ /dev/null @@ -1,76 +0,0 @@ ---TEST-- -Delete entries ---SKIPIF-- - ---FILE-- -open($file, ZIPARCHIVE::CREATE)) { - exit('failed'); -} -$zip->addFromString('entry1.txt', 'entry #1'); -$zip->addFromString('entry2.txt', 'entry #2'); -$zip->addFromString('dir/entry2.txt', 'entry #2'); - -if ($zip->status == ZIPARCHIVE::ER_OK) { - $zip->close(); - echo "ok\n"; -} else { - var_dump($zip); - echo "failed\n"; -} - -if (!$zip->open($file, ZIPARCHIVE::CREATE)) { - exit('failed'); -} - -if ($zip->deleteIndex(0)) { - echo "ok\n"; -} - -if ($zip->deleteName('entry2.txt')) { - echo "ok\n"; -} else { - echo "failed 3\n"; -} - -if ($zip->deleteName('dir/entry2.txt')) { - echo "ok\n"; -} else { - echo "failed 3\n"; -} - -if (!$zip->deleteIndex(123)) { - echo "ok\n"; -} else { - print_r($zip); - echo "failed\n"; -} - - -$sb = $zip->statIndex(0); -var_dump($sb); -$sb = $zip->statIndex(1); -var_dump($sb); -$sb = $zip->statIndex(2); -var_dump($sb); -@unlink($file); -?> ---EXPECTF-- -ok -ok -ok -ok -ok -bool(false) -bool(false) -bool(false) diff --git a/ext/zip/tests/oo_ext_zip.phpt b/ext/zip/tests/oo_ext_zip.phpt deleted file mode 100644 index 739a671e0b..0000000000 --- a/ext/zip/tests/oo_ext_zip.phpt +++ /dev/null @@ -1,27 +0,0 @@ ---TEST-- -Extending Zip class and array property ---SKIPIF-- - ---FILE-- -testarray[] = 1; - var_dump($this->testarray); - } -} - -$z = new myZip; -?> ---EXPECTF-- -array(1) { - [0]=> - int(1) -} diff --git a/ext/zip/tests/oo_namelocate.phpt b/ext/zip/tests/oo_namelocate.phpt deleted file mode 100644 index bbe7ec55d9..0000000000 --- a/ext/zip/tests/oo_namelocate.phpt +++ /dev/null @@ -1,46 +0,0 @@ ---TEST-- -Locate entries by name ---SKIPIF-- - ---FILE-- -open($file, ZIPARCHIVE::CREATE)) { - exit('failed'); -} - -$zip->addFromString('entry1.txt', 'entry #1'); -$zip->addFromString('entry2.txt', 'entry #2'); -$zip->addFromString('dir/entry2d.txt', 'entry #2'); - -if (!$zip->status == ZIPARCHIVE::ER_OK) { - echo "failed to write zip\n"; -} -$zip->close(); - -if (!$zip->open($file)) { - exit('failed'); -} - - -var_dump($zip->locateName('entry1.txt')); -var_dump($zip->locateName('eNtry2.txt')); -var_dump($zip->locateName('eNtry2.txt', ZIPARCHIVE::FL_NOCASE)); -var_dump($zip->locateName('enTRy2d.txt', ZIPARCHIVE::FL_NOCASE|ZIPARCHIVE::FL_NODIR)); -$zip->close(); - -?> ---EXPECTF-- -int(0) -bool(false) -int(1) -int(2) diff --git a/ext/zip/tests/oo_open.phpt b/ext/zip/tests/oo_open.phpt deleted file mode 100644 index 0760db34c4..0000000000 --- a/ext/zip/tests/oo_open.phpt +++ /dev/null @@ -1,46 +0,0 @@ ---TEST-- -zip::open() function ---SKIPIF-- - ---FILE-- -open($dirname . 'nofile'); -if ($r !== TRUE) { - echo "ER_OPEN: ok\n"; -} else { - echo "ER_OPEN: FAILED\n"; -} - -$r = $zip->open($dirname . 'nofile', ZIPARCHIVE::CREATE); -if (!$r) { - echo "create: failed\n"; -} else { - echo "create: ok\n"; -} -@unlink($dirname . 'nofile'); - -$zip = new ZipArchive; -$zip->open(''); - -if (!$zip->open($dirname . 'test.zip')) { - exit("failed 1\n"); -} - -if ($zip->status == ZIPARCHIVE::ER_OK) { - echo "OK\n"; -} else { - echo "failed\n"; -} -?> ---EXPECTF-- -ER_OPEN: ok -create: ok - -Warning: ZipArchive::open(): Empty string as source in %s on line %d -OK diff --git a/ext/zip/tests/oo_rename.phpt b/ext/zip/tests/oo_rename.phpt deleted file mode 100644 index 98489ae256..0000000000 --- a/ext/zip/tests/oo_rename.phpt +++ /dev/null @@ -1,58 +0,0 @@ ---TEST-- -Rename entries ---SKIPIF-- - ---FILE-- -open($file, ZIPARCHIVE::CREATE)) { - exit('failed'); -} - -$zip->addFromString('entry1.txt', 'entry #1'); -$zip->addFromString('entry2.txt', 'entry #2'); -$zip->addFromString('dir/entry2.txt', 'entry #2'); - -if (!$zip->status == ZIPARCHIVE::ER_OK) { - var_dump($zip); - echo "failed\n"; -} - -$zip->close(); - -if (!$zip->open($file)) { - exit('failed'); -} - -dump_entries_name($zip); -echo "\n"; - -if (!$zip->renameIndex(0, 'ren_entry1.txt')) { - echo "failed index 0\n"; -} - -if (!$zip->renameName('dir/entry2.txt', 'dir3/ren_entry2.txt')) { - echo "failed name dir/entry2.txt\n"; -} -dump_entries_name($zip); -$zip->close(); - -@unlink($file); -?> ---EXPECTF-- -0 entry1.txt -1 entry2.txt -2 dir/entry2.txt - -0 ren_entry1.txt -1 entry2.txt -2 dir3/ren_entry2.txt diff --git a/ext/zip/tests/test.zip b/ext/zip/tests/test.zip deleted file mode 100644 index 35bd5eecdf..0000000000 Binary files a/ext/zip/tests/test.zip and /dev/null differ diff --git a/ext/zip/tests/test_procedural.zip b/ext/zip/tests/test_procedural.zip deleted file mode 100644 index 6b98694803..0000000000 Binary files a/ext/zip/tests/test_procedural.zip and /dev/null differ diff --git a/ext/zip/tests/utils.inc b/ext/zip/tests/utils.inc deleted file mode 100644 index 41a2791266..0000000000 --- a/ext/zip/tests/utils.inc +++ /dev/null @@ -1,8 +0,0 @@ -numFiles; $i++) { - $sb = $z->statIndex($i); - echo $i . ' ' . $sb['name'] . "\n"; - } -} diff --git a/ext/zip/tests/zip_close.phpt b/ext/zip/tests/zip_close.phpt deleted file mode 100644 index 7f9d09ae36..0000000000 --- a/ext/zip/tests/zip_close.phpt +++ /dev/null @@ -1,17 +0,0 @@ ---TEST-- -zip_close() function ---SKIPIF-- - ---FILE-- - ---EXPECT-- -OK diff --git a/ext/zip/tests/zip_entry_compressedsize.phpt b/ext/zip/tests/zip_entry_compressedsize.phpt deleted file mode 100644 index fefa6e5977..0000000000 --- a/ext/zip/tests/zip_entry_compressedsize.phpt +++ /dev/null @@ -1,23 +0,0 @@ ---TEST-- -zip_entry_compressedsize() function ---SKIPIF-- - ---FILE-- - ---EXPECT-- -5 -4 -0 -24 diff --git a/ext/zip/tests/zip_entry_compressionmethod.phpt b/ext/zip/tests/zip_entry_compressionmethod.phpt deleted file mode 100644 index cabdbb797f..0000000000 --- a/ext/zip/tests/zip_entry_compressionmethod.phpt +++ /dev/null @@ -1,24 +0,0 @@ ---TEST-- -zip_entry_compressionmethod() function ---SKIPIF-- - ---FILE-- - ---EXPECT-- -stored -stored -stored -deflated - diff --git a/ext/zip/tests/zip_entry_filesize.phpt b/ext/zip/tests/zip_entry_filesize.phpt deleted file mode 100644 index b8d8820b64..0000000000 --- a/ext/zip/tests/zip_entry_filesize.phpt +++ /dev/null @@ -1,23 +0,0 @@ ---TEST-- -zip_entry_filesize() function ---SKIPIF-- - ---FILE-- - ---EXPECT-- -5 -4 -0 -27 diff --git a/ext/zip/tests/zip_entry_name.phpt b/ext/zip/tests/zip_entry_name.phpt deleted file mode 100644 index 1916e25dac..0000000000 --- a/ext/zip/tests/zip_entry_name.phpt +++ /dev/null @@ -1,23 +0,0 @@ ---TEST-- -zip_entry_name() function ---SKIPIF-- - ---FILE-- - ---EXPECT-- -foo -bar -foobar/ -foobar/baz diff --git a/ext/zip/tests/zip_entry_open.phpt b/ext/zip/tests/zip_entry_open.phpt deleted file mode 100644 index b79e39108f..0000000000 --- a/ext/zip/tests/zip_entry_open.phpt +++ /dev/null @@ -1,17 +0,0 @@ ---TEST-- -zip_entry_open() function ---SKIPIF-- - ---FILE-- - ---EXPECT-- -OK diff --git a/ext/zip/tests/zip_entry_read.phpt b/ext/zip/tests/zip_entry_read.phpt deleted file mode 100644 index 94dde59cbd..0000000000 --- a/ext/zip/tests/zip_entry_read.phpt +++ /dev/null @@ -1,18 +0,0 @@ ---TEST-- -zip_entry_read() function ---SKIPIF-- - ---FILE-- - ---EXPECT-- -foo diff --git a/ext/zip/tests/zip_open.phpt b/ext/zip/tests/zip_open.phpt deleted file mode 100644 index 91474bc6fd..0000000000 --- a/ext/zip/tests/zip_open.phpt +++ /dev/null @@ -1,16 +0,0 @@ ---TEST-- -zip_open() function ---SKIPIF-- - ---FILE-- - ---EXPECT-- -OK diff --git a/ext/zip/tests/zip_read.phpt b/ext/zip/tests/zip_read.phpt deleted file mode 100644 index 5cadb2d1ef..0000000000 --- a/ext/zip/tests/zip_read.phpt +++ /dev/null @@ -1,21 +0,0 @@ ---TEST-- -zip_read() function ---SKIPIF-- - ---FILE-- - ---EXPECT-- -4 entries -- cgit v1.2.1