Searched refs:zip (Results 1 - 25 of 59) sorted by relevance

123

/PHP_5_3/ext/phar/tests/zip/files/
H A Dzipmaker.php.inc14 protected $zip;
33 $this->zip->addFromString($path, stream_get_contents($fileOrStream));
35 $this->zip->addFromString($path, $fileOrStream);
44 $this->zip = new ZipArchive;
45 if (true !== $this->zip->open($this->path, ZIPARCHIVE::CREATE)) {
60 $this->zip->addEmptyDir($dir);
68 $this->zip->close();
/PHP_5_3/ext/zip/examples/
H A Dcreate.php3 if (!extension_loaded('zip')) {
4 dl('zip.so');
7 unlink("./test112.zip");
8 $zip = new ZipArchive(); variable
9 $filename = "./test112.zip";
11 if (!$zip->open($filename, ZIPARCHIVE::CREATE)) {
17 $zip->addFromString("testfilephp.txt" . time(), "#1 This is a test string added as testfilephp.txt.\n");
18 $zip->addFromString("testfilephp2.txt" . time(), "#2 This is a test string added as testfilephp2.txt.\n");
19 $zip->addFile($thisdir . "/too.php","/testfromfile.php");
20 echo "numfiles: " . $zip
[all...]
H A Dextract.php2 if (!extension_loaded('zip')) {
3 dl('zip.so');
6 $zip = new ZipArchive(); variable
8 echo $zip->filename . "\n";
9 $zip->open("test.zip");
11 $zip->addFile("./modules/");
12 $zip->addFile("./testempty");
14 echo $zip->status . "\n";
15 echo $zip
[all...]
H A DextractAll.php2 $zip = new ZipArchive(); variable
4 echo $zip->filename . "\n";
5 $zip->open("test.zip");
7 $zip->addFile("./modules/");
8 $zip->addFile("./testempty");
10 echo $zip->status . "\n";
11 echo $zip->statusSys . "\n";
13 echo $zip->numFiles . "\n";
14 echo $zip
[all...]
H A Doldapi.php3 $zip = zip_open('examples/test1.zip'); variable
4 var_dump($zip);
6 if ($zip) {
8 while ($zip_entry = zip_read($zip)) {
/PHP_5_3/ext/zip/lib/
H A Dzip.h5 zip.h -- exported declarations.
94 #define ZIP_ER_MULTIDISK 1 /* N Multi-disk zip archives not supported */
96 #define ZIP_ER_CLOSE 3 /* S Closing zip archive failed */
101 #define ZIP_ER_ZIPCLOSED 8 /* N Containing zip archive was closed */
112 #define ZIP_ER_NOZIP 19 /* N Not a zip archive */
206 struct zip;
216 ZIP_EXTERN(zip_int64_t) zip_add(struct zip *, const char *, struct zip_source *);
217 ZIP_EXTERN(zip_int64_t) zip_add_dir(struct zip *, const char *);
218 ZIP_EXTERN(int) zip_close(struct zip *);
219 ZIP_EXTERN(int) zip_delete(struct zip *, zip_uint64_
[all...]
H A Dzip_add.c50 zip_add(struct zip *za, const char *name, struct zip_source *source)
H A Dzip_delete.c2 zip_delete.c -- delete file from zip archive
43 zip_delete(struct zip *za, zip_uint64_t idx)
H A Dzip_error_clear.c2 zip_error_clear.c -- clear zip error
43 zip_error_clear(struct zip *za)
H A Dzip_error_get.c2 zip_error_get.c -- get zip error
43 zip_error_get(struct zip *za, int *zep, int *sep)
H A Dzip_fdopen.c42 ZIP_EXTERN(struct zip *)
H A Dzip_fopen.c2 zip_fopen.c -- open file in zip archive for reading
43 zip_fopen(struct zip *za, const char *fname, int flags)
H A Dzip_fopen_encrypted.c43 zip_fopen_encrypted(struct zip *za, const char *fname, int flags,
H A Dzip_fopen_index.c2 zip_fopen_index.c -- open file in zip archive for reading by index
47 zip_fopen_index(struct zip *za, zip_uint64_t fileno, int flags)
H A Dzip_get_archive_comment.c43 zip_get_archive_comment(struct zip *za, int *lenp, int flags)
H A Dzip_get_archive_flag.c43 zip_get_archive_flag(struct zip *za, int flag, int flags)
H A Dzip_get_num_entries.c43 zip_get_num_entries(struct zip *za, int flags)
H A Dzip_get_num_files.c43 zip_get_num_files(struct zip *za)
H A Dzip_new.c2 zip_new.c -- create and init struct zip
48 struct zip *
51 struct zip *za;
53 za = (struct zip *)malloc(sizeof(struct zip));
H A Dzip_set_default_password.c46 zip_set_default_password(struct zip *za, const char *passwd)
H A Dzip_source_file.c46 zip_source_file(struct zip *za, const char *fname, zip_uint64_t start,
H A Dzip_stat.c43 zip_stat(struct zip *za, const char *fname, int flags, struct zip_stat *st)
H A Dzip_strerror.c2 zip_sterror.c -- get string representation of zip error
42 zip_strerror(struct zip *za)
H A Dzip_unchange_archive.c45 zip_unchange_archive(struct zip *za)
H A Dzipint.h39 #include "zip.h"
107 typedef struct zip_source *(*zip_compression_implementation)(struct zip *,
110 typedef struct zip_source *(*zip_encryption_implementation)(struct zip *,
133 ZIP_EXTERN(struct zip_source *)zip_source_crc(struct zip *, struct zip_source *,
135 ZIP_EXTERN(struct zip_source *)zip_source_deflate(struct zip *,
139 ZIP_EXTERN(struct zip_source *)zip_source_layered(struct zip *,
144 ZIP_EXTERN(struct zip_source *)zip_source_pkware(struct zip *,
162 /* state of change of a file in zip archive */
185 /* zip archive, part of API */
187 struct zip {
183 struct zip { struct
[all...]

Completed in 27 milliseconds

123