Home
last modified time | relevance | path

Searched refs:zip (Results 1 – 25 of 250) sorted by relevance

12345678910

/PHP-5.3/ext/zip/tests/
H A Doo_properties.phpt16 $zip = new ZipArchive;
21 printf("zip->status (%d):\n\tempty(): %d\n\tisset(): %d\n", $zip->status, empty($zip->status), isse…
22 printf("zip->numFiles (%d):\n\tempty(): %d\n\tisset(): %d\n", $zip->numFiles, empty($zip->numFiles)…
23 printf("zip->bogus (%d):\n\tempty(): %d\n\tisset(): %d\n", $zip->bogus, empty($zip->bogus), isset($
28 printf("zip->status (%d):\n\tempty(): %d\n\tisset(): %d\n", $zip->status, empty($zip->status), isse…
29 printf("zip->numFiles (%d):\n\tempty(): %d\n\tisset(): %d\n", $zip->numFiles, empty($zip->numFiles)…
30 printf("zip->filename (%d):\n\tempty(): %d\n\tisset(): %d\n", strlen($zip->filename), empty($zip->f…
31 printf("zip->comment (%d):\n\tempty(): %d\n\tisset(): %d\n", strlen($zip->comment), empty($zip->com…
37 zip->status (0):
45 zip->bogus (0):
[all …]
H A Doo_setcomment.phpt6 if(!extension_loaded('zip')) die('skip');
16 $zip = new ZipArchive;
38 echo "failed to write zip\n";
40 $zip->close();
42 if (!$zip->open($file)) {
47 var_dump($zip->getCommentIndex(0));
48 var_dump($zip->getCommentIndex(1));
49 var_dump($zip->getCommentIndex(2));
50 var_dump($zip->getCommentIndex(3));
51 var_dump($zip->getCommentIndex(4));
[all …]
H A Doo_delete.phpt16 $zip = new ZipArchive;
25 $zip->close();
28 var_dump($zip);
36 if ($zip->deleteIndex(0)) {
52 if (!$zip->deleteIndex(123)) {
55 print_r($zip);
60 $sb = $zip->statIndex(0);
62 $sb = $zip->statIndex(1);
64 $sb = $zip->statIndex(2);
66 $zip->close();
[all …]
H A Dbug47667.phpt6 if(!extension_loaded('zip')) die('skip');
11 $filename = $thisdir . "/bug47667.zip";
13 $zip = new ZipArchive();
15 exit("Unable to open the zip file");
18 $zip->close();
22 $zip = new ZipArchive();
27 $zip->close();
30 $zip = new ZipArchive();
32 exit("Unable to open the zip file");
35 echo "files: " , $zip->numFiles;
[all …]
H A Doo_getnameindex.phpt6 if(!extension_loaded('zip')) die('skip');
12 $file = $dirname . '__tmp_oo_rename.zip';
16 $zip = new ZipArchive;
26 echo "failed to write zip\n";
28 $zip->close();
30 if (!$zip->open($file)) {
35 var_dump($zip->getNameIndex(0));
36 var_dump($zip->getNameIndex(1));
37 var_dump($zip->getNameIndex(2));
38 var_dump($zip->getNameIndex(3));
[all …]
H A Doo_namelocate.phpt6 if(!extension_loaded('zip')) die('skip');
12 $file = $dirname . '__tmp_oo_rename.zip';
16 $zip = new ZipArchive;
17 if (!$zip->open($file, ZIPARCHIVE::CREATE)) {
25 if (!$zip->status == ZIPARCHIVE::ER_OK) {
26 echo "failed to write zip\n";
28 $zip->close();
30 if (!$zip->open($file)) {
35 var_dump($zip->locateName('entry1.txt'));
36 var_dump($zip->locateName('eNtry2.txt'));
[all …]
H A Doo_rename.phpt6 if(!extension_loaded('zip')) die('skip');
12 $file = $dirname . '__tmp_oo_rename.zip';
16 $zip = new ZipArchive;
17 if (!$zip->open($file, ZIPARCHIVE::CREATE)) {
25 if (!$zip->status == ZIPARCHIVE::ER_OK) {
26 var_dump($zip);
30 $zip->close();
32 if (!$zip->open($file)) {
36 dump_entries_name($zip);
46 dump_entries_name($zip);
[all …]
H A Dstream_meta_data.phpt2 stream_get_meta_data() on zip stream
6 if(!extension_loaded('zip')) die('skip');
13 $zip = new ZipArchive;
14 if (!$zip->open($file)) {
17 $fp = $zip->getStream('foo');
24 $zip->close();
27 $fp = fopen('zip://' . dirname(__FILE__) . '/test_with_comment.zip#foo', 'rb');
39 string(3) "zip"
57 string(11) "zip wrapper"
59 string(3) "zip"
[all …]
H A Doo_getcomment.phpt6 if(!extension_loaded('zip')) die('skip');
11 $file = $dirname . 'test_with_comment.zip';
13 $zip = new ZipArchive;
14 if (!$zip->open($file)) {
17 echo $zip->getArchiveComment() . "\n";
19 $idx = $zip->locateName('foo');
20 echo $zip->getCommentName('foo') . "\n";
21 echo $zip->getCommentIndex($idx);
23 echo $zip->getCommentName('') . "\n";
24 echo $zip->getCommentName() . "\n";
[all …]
H A Doo_addemptydir.phpt6 if(!extension_loaded('zip')) die('skip');
13 $file = $dirname . '__tmp_oo_addfile.zip';
15 copy($dirname . 'test.zip', $file);
17 $zip = new ZipArchive;
18 if (!$zip->open($file)) {
22 $zip->addEmptyDir('emptydir');
23 if ($zip->status == ZIPARCHIVE::ER_OK) {
24 dump_entries_name($zip);
25 $zip->close();
H A Doo_addfile.phpt6 if(!extension_loaded('zip')) die('skip');
13 $file = $dirname . '__tmp_oo_addfile.zip';
15 copy($dirname . 'test.zip', $file);
17 $zip = new ZipArchive;
18 if (!$zip->open($file)) {
21 if (!$zip->addFile($dirname . 'utils.inc', 'test.php')) {
24 if ($zip->status == ZIPARCHIVE::ER_OK) {
25 dump_entries_name($zip);
26 $zip->close();
H A Dbug64342_1.phpt6 if(!extension_loaded('zip')) die('skip');
13 $file = $dirname . '__tmp_oo_addfile.zip';
15 copy($dirname . 'test.zip', $file);
17 $zip = new ZipArchive;
18 if (!$zip->open($file)) {
21 if (!$zip->addFile($dirname . 'cant_find_me.txt', 'test.php')) {
24 if ($zip->status == ZIPARCHIVE::ER_OK) {
25 dump_entries_name($zip);
26 $zip->close();
H A Doo_open.phpt2 zip::open() function
6 if(!extension_loaded('zip')) die('skip');
12 $zip = new ZipArchive;
13 $r = $zip->open($dirname . 'nofile');
20 $r = $zip->open($dirname . 'nofile', ZIPARCHIVE::CREATE);
28 $zip = new ZipArchive;
29 $zip->open('');
31 if (!$zip->open($dirname . 'test.zip')) {
35 if ($zip->status == ZIPARCHIVE::ER_OK) {
H A Dbug8009.phpt6 if(!extension_loaded('zip')) die('skip');
11 $src = $thisdir . "/bug8009.zip";
12 $filename = $thisdir . "/tmp8009.zip";
15 $zip = new ZipArchive();
17 if (!$zip->open($filename)) {
20 $zip->addFromString("2.txt", "=)");
21 $zip->close();
23 echo "status: " . $zip->status . "\n";
H A Dbug8700.phpt6 if(!extension_loaded('zip')) die('skip');
11 $filename = $thisdir . "/bug8009.zip";
13 $zip = new ZipArchive();
15 if ($zip->open($filename) === FALSE) {
18 $contents_from_idx = $zip->getFromIndex(0);
19 $contents_from_name = $zip->getFromName('1.txt');
25 $zip->close();
26 echo "status: " . $zip->status . "\n";
H A Doo_close.phpt2 zip::close() function
6 if(!extension_loaded('zip')) die('skip');
12 $zip = new ZipArchive;
13 if (!$zip->open($dirname . 'test.zip')) {
17 if ($zip->status == ZIPARCHIVE::ER_OK) {
18 $zip->close();
/PHP-5.3/ext/phar/tests/zip/
H A Dcorrupt_008.phpt86 … unsupported compression method (Shrunk) used in this zip in zip-based phar "%scompress_unsup1.zip"
87 … unsupported compression method (Reduce) used in this zip in zip-based phar "%scompress_unsup2.zip"
88 … unsupported compression method (Reduce) used in this zip in zip-based phar "%scompress_unsup3.zip"
89 … unsupported compression method (Reduce) used in this zip in zip-based phar "%scompress_unsup4.zip"
90 … unsupported compression method (Reduce) used in this zip in zip-based phar "%scompress_unsup5.zip"
91 …unsupported compression method (Implode) used in this zip in zip-based phar "%scompress_unsup6.zip"
92 …nsupported compression method (Tokenize) used in this zip in zip-based phar "%scompress_unsup7.zip"
93 …supported compression method (Deflate64) used in this zip in zip-based phar "%scompress_unsup9.zip"
95 …r: unsupported compression method (LZMA) used in this zip in zip-based phar "%scompress_unsup14.zi…
98 …unsupported compression method (WavPack) used in this zip in zip-based phar "%scompress_unsup97.zi…
[all …]
H A Dunixzip.phpt2 Phar: test a zip archive created by unix "zip" command
8 $a = new PharData(dirname(__FILE__) . '/files/zip.zip');
23 dir phar://%s/zip.zip%cempty
24 phar://%s/zip.zip%chi.txt
27 dir phar://%s/zip.zip%cnotempty
28 phar://%s/zip.zip/notempty%chi.txt
H A Dbadalias.phpt12 new Phar($e . "badalias$i.phar.zip");
20 phar error: invalid alias "hi/there" in zip-based phar "%sbadalias1.phar.zip"
21 phar error: invalid alias "hi\there" in zip-based phar "%sbadalias2.phar.zip"
22 phar error: invalid alias "hi\there" in zip-based phar "%sbadalias3.phar.zip"
23 phar error: invalid alias "hi;there" in zip-based phar "%sbadalias4.phar.zip"
24 phar error: invalid alias "hi:there" in zip-based phar "%sbadalias5.phar.zip"
/PHP-5.3/ext/zip/lib/
H A Dzip.h204 struct zip;
215 ZIP_EXTERN(int) zip_close(struct zip *);
216 ZIP_EXTERN(int) zip_delete(struct zip *, zip_uint64_t);
217 ZIP_EXTERN(void) zip_error_clear(struct zip *);
218 ZIP_EXTERN(void) zip_error_get(struct zip *, int *, int *);
222 ZIP_EXTERN(struct zip *)zip_fdopen(int, int, int *);
263 ZIP_EXTERN(struct zip_source *)zip_source_zip(struct zip *, struct zip *,
270 ZIP_EXTERN(const char *)zip_strerror(struct zip *);
271 ZIP_EXTERN(int) zip_unchange(struct zip *, zip_uint64_t);
272 ZIP_EXTERN(int) zip_unchange_all(struct zip *);
[all …]
H A Dzipint.h183 struct zip { struct
290 int _zip_cdir_compute_crc(struct zip *, uLong *);
304 void _zip_entry_init(struct zip *, int);
305 struct zip_entry *_zip_entry_new(struct zip *);
317 unsigned int _zip_file_get_offset(struct zip *, int);
326 struct zip_source *_zip_source_new(struct zip *);
328 int _zip_changed(struct zip *, int *);
329 void _zip_free(struct zip *);
331 int _zip_local_header_read(struct zip *, int);
334 struct zip *_zip_new(struct zip_error *);
[all …]
/PHP-5.3/ext/zip/examples/
H A DextractAll.php2 $zip = new ZipArchive(); variable
4 echo $zip->filename . "\n";
5 $zip->open("test.zip");
10 echo $zip->status . "\n";
11 echo $zip->statusSys . "\n";
13 echo $zip->numFiles . "\n";
14 echo $zip->filename . "\n";
15 var_dump($zip);
19 echo $zip->status . "\n";
20 echo $zip->statusSys . "\n";
[all …]
H A Dextract.php6 $zip = new ZipArchive(); variable
8 echo $zip->filename . "\n";
9 $zip->open("test.zip");
14 echo $zip->status . "\n";
15 echo $zip->statusSys . "\n";
17 echo $zip->numFiles . "\n";
18 echo $zip->filename . "\n";
19 var_dump($zip);
23 echo $zip->status . "\n";
24 echo $zip->statusSys . "\n";
[all …]
H A Dcreate.php8 $zip = new ZipArchive(); variable
11 if (!$zip->open($filename, ZIPARCHIVE::CREATE)) {
17 $zip->addFromString("testfilephp.txt" . time(), "#1 This is a test string added as testfilephp.txt.…
18 $zip->addFromString("testfilephp2.txt" . time(), "#2 This is a test string added as testfilephp2.tx…
19 $zip->addFile($thisdir . "/too.php","/testfromfile.php");
20 echo "numfiles: " . $zip->numFiles . "\n";
21 echo "status:" . $zip->status . "\n";
22 $zip->close();
23 unset($zip);
/PHP-5.3/ext/standard/tests/file/
H A Dbasename-win32.phpt32 array("bar.zip", ".zip"),
33 array("bar.zip", "bar.zip"),
35 array("foo\\bar.zip", ".zip"),
36 array("\\bar.zip", ".zip"),
39 array("bar.zip\\", ".zip"),
40 array("\\bar.zip\\", ".zip"),
46 array("\\.zip", ".zip"),
47 array(".zip", ".zip"),
48 array("\\foo\\.zip", ".zip"),
51 array(".zip\\", ".zip"),
[all …]

Completed in 40 milliseconds

12345678910