Home
last modified time | relevance | path

Searched refs:ZipArchive (Results 1 – 25 of 94) sorted by relevance

1234

/PHP-8.0/ext/zip/tests/
H A Dbug53854.phpt10 var_dump(ZipArchive::CM_DEFAULT);
11 var_dump(ZipArchive::CM_STORE);
12 var_dump(ZipArchive::CM_SHRINK);
13 var_dump(ZipArchive::CM_REDUCE_1);
14 var_dump(ZipArchive::CM_REDUCE_2);
17 var_dump(ZipArchive::CM_IMPLODE);
21 var_dump(ZipArchive::CM_BZIP2);
22 var_dump(ZipArchive::CM_LZMA);
23 var_dump(ZipArchive::CM_TERSE);
24 var_dump(ZipArchive::CM_LZ77);
[all …]
H A Doo_supported.phpt12 ZipArchive::CM_STORE => "STORE",
13 ZipArchive::CM_DEFLATE => "DEFLATE",
14 ZipArchive::CM_BZIP2 => "BZIP2",
15 ZipArchive::CM_XZ => "XZ",
19 var_dump(ZipArchive::isCompressionMethodSupported($method));
24 ZipArchive::EM_NONE => "NONE",
25 ZipArchive::EM_TRAD_PKWARE => "TRAD_PKWARE",
26 ZipArchive::EM_AES_128 => "AES-128",
27 ZipArchive::EM_AES_192 => "AES-192",
28 ZipArchive::EM_AES_256 => "AES-256",
[all …]
H A Dbug47667.phpt2 Bug #47667 (ZipArchive::OVERWRITE seems to have no effect)
12 $zip = new ZipArchive();
13 if ($zip->open($filename, ZipArchive::CREATE) !== true) {
21 $zip = new ZipArchive();
22 if ($zip->open($filename, ZipArchive::OVERWRITE) !== true) {
29 $zip = new ZipArchive();
30 if ($zip->open($filename, ZipArchive::CREATE) !== true) {
H A Dcompression_methods.phpt14 'store' => ZipArchive::CM_STORE,
15 'deflate' => ZipArchive::CM_DEFLATE,
16 'deflate64' => ZipArchive::CM_DEFLATE64,
17 'bzip2' => ZipArchive::CM_BZIP2,
18 'lzma' => ZipArchive::CM_LZMA,
19 'ppmd' => ZipArchive::CM_PPMD
21 $zip = new ZipArchive();
H A Doo_addglob2.phpt2 ZipArchive::addGlob() method with more compression and encryption
6 if (!method_exists('ZipArchive', 'setEncryptionName')) die('skip encrytion not supported');
21 $zip = new ZipArchive();
22 if (!$zip->open($file, ZipArchive::CREATE | ZipArchive::OVERWRITE)) {
34 'comp_method' => ZipArchive::CM_STORE,
36 'enc_method' => ZipArchive::EM_AES_256,
45 $zip = new ZipArchive();
H A Doo_add_encoding.phpt16 $zip = new ZipArchive;
17 if (!$zip->open($file, ZipArchive::CREATE)) {
22 $zip->addEmptyDir(chr(0x82), ZipArchive::FL_ENC_CP437);
23 $zip->addEmptyDir('è', ZipArchive::FL_ENC_UTF_8);
26 $zip->addFromString(chr(0x91), __FILE__, ZipArchive::FL_ENC_CP437);
27 $zip->addFromString('€', __FILE__, ZipArchive::FL_ENC_UTF_8);
H A Dbug76524.phpt2 ZipArchive Bug #76524 (memory leak with ZipArchive::OVERWRITE flag and empty archive)
15 $zip = new ZipArchive();
16 $zip->open($filename, ZipArchive::CREATE | ZipArchive::OVERWRITE);
H A Dbug_gh8781.phpt2 Bug GH-8781 (ZipArchive deletes zip file with no contents)
12 $zip = new ZipArchive();
13 $zip->open($file, ZipArchive::CREATE | ZipArchive::OVERWRITE);
H A Dbug80833.phpt2 Bug #80833 (ZipArchive::getStream doesn't use setPassword)
6 if (!method_exists('ZipArchive', 'setEncryptionName')) die('skip encryption not supported');
10 $create_zip = new ZipArchive();
11 $create_zip->open(__DIR__ . "/80833.zip", ZipArchive::CREATE);
14 $create_zip->setEncryptionName("test.txt", ZipArchive::EM_AES_256, "first_password");
16 $create_zip->setEncryptionName("test2.txt", ZipArchive::EM_AES_256, "second_password");
29 $extract_zip = new ZipArchive();
30 $extract_zip->open(__DIR__ . "/80833.zip", ZipArchive::RDONLY);
H A Dbug70103.phpt2 Bug #70103 (ZipArchive::addGlob ignores remove_all_path option)
14 $zip = new ZipArchive();
15 $zip->open($dir . '/test.zip', ZipArchive::CREATE | ZipArchive::OVERWRITE);
19 $zip = new ZipArchive();
H A Dbug81490.phpt2 Bug #81490 (ZipArchive::extractTo() may leak memory)
9 $zip = new ZipArchive();
10 $zip->open(__DIR__ . "/bug81490.zip", ZipArchive::CREATE|ZipArchive::OVERWRITE);
H A Doo_add_from_string.phpt18 $zip = new ZipArchive();
25 var_dump($zip->status == ZipArchive::ER_OK);
28 var_dump($zip->status == ZipArchive::ER_EXISTS);
30 var_dump($zip->addFromString('entry1.txt', __FILE__, ZipArchive::FL_OVERWRITE));
31 var_dump($zip->status == ZipArchive::ER_OK);
33 if ($zip->status == ZipArchive::ER_OK) {
H A Doo_externalattributes.phpt2 ZipArchive::*ExternalAttributes*() function
13 $zip = new ZipArchive;
17 var_dump($zip->setExternalAttributesName('foo.txt', ZipArchive::OPSYS_UNIX, 123));
19 var_dump($zip->setExternalAttributesIndex($id, ZipArchive::OPSYS_VFAT, 234));
29 var_dump($zip->setExternalAttributesName('foo.txt', ZipArchive::OPSYS_DOS, 345));
30 var_dump($zip->setExternalAttributesIndex($id, ZipArchive::OPSYS_AMIGA, 456));
35 var_dump($zip->getExternalAttributesName('foo.txt', $a, $b, ZipArchive::FL_UNCHANGED), $a, $b);
36 var_dump($zip->getExternalAttributesIndex($id, $a, $b, ZipArchive::FL_UNCHANGED), $a, $b);
H A Doo_addemptydir_error.phpt13 $zip = new ZipArchive;
14 if (!$zip->open(__DIR__ . '/test.zip', ZipArchive::RDONLY)) {
19 if ($zip->status == ZipArchive::ER_RDONLY) {
21 } else if ($zip->status == ZipArchive::ER_OK) {
H A Dbug80863.phpt2 Bug #80863 (ZipArchive::extractTo() ignores references)
11 $zip = new ZipArchive();
12 $zip->open($archive, ZipArchive::CREATE | ZipArchive::OVERWRITE);
27 $zip = new ZipArchive();
H A Dbug53885.phpt2 Bug #53885 (ZipArchive segfault with FL_UNCHANGED on empty archive)
12 $nx=new ZipArchive();
24 Deprecated: ZipArchive::open(): Using empty file as ZipArchive is deprecated in %s
H A Dbug70322.phpt2 Bug #70322 (ZipArchive::close() doesn't indicate errors)
4 We want to test whether ZipArchive::close() returns FALSE and raises a warning
16 $zip = new ZipArchive();
17 $zip->open($zipfile, ZipArchive::CREATE);
28 Warning: ZipArchive::close(): %s: No such file or directory in %s%ebug70322.php on line %d
H A Dbug70350.phpt2 Bug #70350 (ZipArchive::extractTo allows for directory traversal when creating directories)
12 $archive = new ZipArchive();
13 $archive->open("$dir/a.zip",ZipArchive::CREATE);
17 $archive2 = new ZipArchive();
H A Doo_cancel.phpt7 if (!method_exists('ZipArchive', 'registerCancelCallback')) die('skip libzip too old');
18 $zip = new ZipArchive;
30 var_dump($zip->status == ZipArchive::ER_CANCELLED);
39 Warning: ZipArchive::close(): Operation cancelled in %s
H A Dbug72258.phpt2 Bug #72258 ZipArchive converts filenames to unrecoverable form
12 $zip = new \ZipArchive();
20 $fnInArc = $zip->getNameIndex($i, ZipArchive::FL_ENC_RAW);
H A Dbug64342_0.phpt2 Bug #64342 ZipArchive::addFile() has to check file existence (variation 1)
10 $zip = new ZipArchive;
11 $res = $zip->open(__DIR__ . '/bug64342.zip', ZipArchive::CREATE);
42 Warning: ZipArchive::addFile(): No such file or directory in %s on line %d
H A Dbug72374.phpt2 Bug #72374 (ZipArchive::addGlob remove_path option strips first char of filename)
19 $zip = new ZipArchive();
20 $zip->open($dirname . '/test.zip', ZipArchive::CREATE | ZipArchive::OVERWRITE);
/PHP-8.0/ext/zip/
H A Dphp_zip_arginfo.h294 ZEND_METHOD(ZipArchive, open);
296 ZEND_METHOD(ZipArchive, close);
297 ZEND_METHOD(ZipArchive, count);
301 ZEND_METHOD(ZipArchive, addFile);
303 ZEND_METHOD(ZipArchive, addGlob);
304 ZEND_METHOD(ZipArchive, addPattern);
306 ZEND_METHOD(ZipArchive, renameName);
321 ZEND_METHOD(ZipArchive, statName);
322 ZEND_METHOD(ZipArchive, statIndex);
329 ZEND_METHOD(ZipArchive, extractTo);
[all …]
/PHP-8.0/ext/zip/examples/
H A Dencryption.php13 $zip = new ZipArchive;
14 $zip->open($name, ZIPARCHIVE::CREATE | ZipArchive::OVERWRITE);
16 $zip->setEncryptionName($file, ZipArchive::EM_AES_256, $pass);
21 $zip = new ZipArchive;
22 $zip->open($name, ZIPARCHIVE::CREATE | ZipArchive::OVERWRITE);
25 $zip->setEncryptionName($file, ZipArchive::EM_AES_256);
H A Dset_compression.php7 $zip = new ZipArchive();
10 if (!$zip->open($filename, ZIPARCHIVE::CREATE | ZipArchive::OVERWRITE)) {
18 $zip->setCompressionName("testfilephp2.txt", ZipArchive::CM_STORE);
19 $zip->setCompressionIndex(2, ZipArchive::CM_STORE);

Completed in 25 milliseconds

1234