Home
last modified time | relevance | path

Searched refs:za (Results 1 – 25 of 59) sorted by path

123

/PHP-5.5/ext/filter/tests/
H A Dbug55478.phpt7 $email_address = "test@xn--example--7za.de"; // "example-ä.de"
11 string(24) "test@xn--example--7za.de"
/PHP-5.5/ext/pcre/pcrelib/testdata/
H A Dtestinput11415 za-
H A Dtestinput81855 za-
H A Dtestoutput12028 za-
2029 0: za-
H A Dtestoutput82790 za-
2791 0: za-
/PHP-5.5/ext/zip/examples/
H A Ddir.php6 $za = new ZipArchive(); variable
8 $za->open('test_with_comment.zip');
9 print_r($za);
10 var_dump($za);
11 echo "numFiles: " . $za->numFiles . "\n";
12 echo "status: " . $za->status . "\n";
14 echo "filename: " . $za->filename . "\n";
15 echo "comment: " . $za->comment . "\n";
17 for ($i=0; $i<$za->numFiles;$i++) {
19 print_r($za->statIndex($i));
[all …]
/PHP-5.5/ext/zip/lib/
H A Dzip_add.c48 zip_add(struct zip *za, const char *name, struct zip_source *source) in zip_add() argument
51 _zip_error_set(&za->error, ZIP_ER_INVAL, 0); in zip_add()
55 return _zip_replace(za, ZIP_UINT64_MAX, name, source); in zip_add()
H A Dzip_add_dir.c46 zip_add_dir(struct zip *za, const char *name) in zip_add_dir() argument
53 if (ZIP_IS_RDONLY(za)) { in zip_add_dir()
54 _zip_error_set(&za->error, ZIP_ER_RDONLY, 0); in zip_add_dir()
59 _zip_error_set(&za->error, ZIP_ER_INVAL, 0); in zip_add_dir()
68 _zip_error_set(&za->error, ZIP_ER_MEMORY, 0); in zip_add_dir()
76 if ((source=zip_source_buffer(za, NULL, 0, 0)) == NULL) { in zip_add_dir()
81 ret = _zip_replace(za, -1, s ? s : name, source); in zip_add_dir()
H A Dzip_close.c88 if (za == NULL) in zip_close()
92 _zip_free(za); in zip_close()
98 if (za->zn && za->zp) { in zip_close()
104 _zip_free(za); in zip_close()
124 &za->error); in zip_close()
196 if ((NULL == za->zp) || (fseeko(za->zp, za->cdir->entry[i].offset, SEEK_SET) != 0)) { in zip_close()
257 if ((zs=zip_source_zip(za, za, i, ZIP_FL_RECOMPRESS, 0, -1)) in zip_close()
322 fclose(za->zp); in zip_close()
323 za->zp = NULL; in zip_close()
332 za->zp = fopen(za->zn, "rb"); in zip_close()
[all …]
H A Dzip_delete.c41 zip_delete(struct zip *za, zip_uint64_t idx) in zip_delete() argument
43 if (idx >= za->nentry) { in zip_delete()
44 _zip_error_set(&za->error, ZIP_ER_INVAL, 0); in zip_delete()
48 if (ZIP_IS_RDONLY(za)) { in zip_delete()
49 _zip_error_set(&za->error, ZIP_ER_RDONLY, 0); in zip_delete()
55 if (_zip_unchange(za, idx, 1) != 0) in zip_delete()
58 za->entry[idx].state = ZIP_ST_DELETED; in zip_delete()
H A Dzip_entry_new.c43 _zip_entry_new(struct zip *za) in _zip_entry_new() argument
46 if (!za) { in _zip_entry_new()
53 if (za->nentry+1 >= za->nentry_alloc) { in _zip_entry_new()
55 za->nentry_alloc += 16; in _zip_entry_new()
56 rentries = (struct zip_entry *)realloc(za->entry, in _zip_entry_new()
58 * za->nentry_alloc); in _zip_entry_new()
60 _zip_error_set(&za->error, ZIP_ER_MEMORY, 0); in _zip_entry_new()
63 za->entry = rentries; in _zip_entry_new()
65 ze = za->entry+za->nentry; in _zip_entry_new()
77 if (za) in _zip_entry_new()
[all …]
H A Dzip_error_clear.c41 zip_error_clear(struct zip *za) in zip_error_clear() argument
43 _zip_error_clear(&za->error); in zip_error_clear()
H A Dzip_error_get.c41 zip_error_get(struct zip *za, int *zep, int *sep) in zip_error_get() argument
43 _zip_error_get(&za->error, zep, sep); in zip_error_get()
H A Dzip_fclose.c50 for (i=0; i<zf->za->nfile; i++) { in zip_fclose()
51 if (zf->za->file[i] == zf) { in zip_fclose()
52 zf->za->file[i] = zf->za->file[zf->za->nfile-1]; in zip_fclose()
53 zf->za->nfile--; in zip_fclose()
H A Dzip_file_get_offset.c54 _zip_file_get_offset(struct zip *za, int idx) in _zip_file_get_offset() argument
59 offset = za->cdir->entry[idx].offset; in _zip_file_get_offset()
61 if (fseeko(za->zp, offset, SEEK_SET) != 0) { in _zip_file_get_offset()
62 _zip_error_set(&za->error, ZIP_ER_SEEK, errno); in _zip_file_get_offset()
66 if (_zip_dirent_read(&de, za->zp, NULL, NULL, 1, &za->error) != 0) in _zip_file_get_offset()
H A Dzip_fopen.c41 zip_fopen(struct zip *za, const char *fname, int flags) in zip_fopen() argument
45 if ((idx=zip_name_locate(za, fname, flags)) < 0) in zip_fopen()
48 return zip_fopen_index_encrypted(za, idx, flags, za->default_password); in zip_fopen()
H A Dzip_fopen_encrypted.c41 zip_fopen_encrypted(struct zip *za, const char *fname, int flags, in zip_fopen_encrypted() argument
46 if ((idx=zip_name_locate(za, fname, flags)) < 0) in zip_fopen_encrypted()
49 return zip_fopen_index_encrypted(za, idx, flags, password); in zip_fopen_encrypted()
H A Dzip_fopen_index.c45 zip_fopen_index(struct zip *za, zip_uint64_t fileno, int flags) in zip_fopen_index() argument
47 return zip_fopen_index_encrypted(za, fileno, flags, za->default_password); in zip_fopen_index()
H A Dzip_fopen_index_encrypted.c57 if (fileno >= za->nentry) { in zip_fopen_index_encrypted()
112 if ((src=_zip_source_file_or_p(za, NULL, za->zp, start, st.comp_size, in zip_fopen_index_encrypted()
125 if ((s2=comp_impl(za, src, za->cdir->entry[fileno].comp_method, in zip_fopen_index_encrypted()
150 zf = _zip_file_new(za); in zip_fopen_index_encrypted()
160 _zip_file_new(struct zip *za) in _zip_file_new() argument
170 if (za->nfile >= za->nfile_alloc-1) { in _zip_file_new()
171 n = za->nfile_alloc + 10; in _zip_file_new()
179 za->nfile_alloc = n; in _zip_file_new()
180 za->file = file; in _zip_file_new()
183 za->file[za->nfile++] = zf; in _zip_file_new()
[all …]
H A Dzip_free.c47 _zip_free(struct zip *za) in _zip_free() argument
51 if (za == NULL) in _zip_free()
54 if (za->zn) in _zip_free()
55 free(za->zn); in _zip_free()
57 if (za->zp) in _zip_free()
58 fclose(za->zp); in _zip_free()
64 if (za->entry) { in _zip_free()
68 free(za->entry); in _zip_free()
74 za->file[i]->za = NULL; in _zip_free()
78 free(za->file); in _zip_free()
[all …]
H A Dzip_get_archive_comment.c41 zip_get_archive_comment(struct zip *za, int *lenp, int flags) in zip_get_archive_comment() argument
44 || (za->ch_comment_len == -1)) { in zip_get_archive_comment()
45 if (za->cdir) { in zip_get_archive_comment()
47 *lenp = za->cdir->comment_len; in zip_get_archive_comment()
48 return za->cdir->comment; in zip_get_archive_comment()
58 *lenp = za->ch_comment_len; in zip_get_archive_comment()
59 return za->ch_comment; in zip_get_archive_comment()
H A Dzip_get_archive_flag.c41 zip_get_archive_flag(struct zip *za, int flag, int flags) in zip_get_archive_flag() argument
45 fl = (flags & ZIP_FL_UNCHANGED) ? za->flags : za->ch_flags; in zip_get_archive_flag()
H A Dzip_get_file_comment.c41 zip_get_file_comment(struct zip *za, zip_uint64_t idx, int *lenp, int flags) in zip_get_file_comment() argument
43 if (idx >= za->nentry) { in zip_get_file_comment()
44 _zip_error_set(&za->error, ZIP_ER_INVAL, 0); in zip_get_file_comment()
49 || (za->entry[idx].ch_comment_len == -1)) { in zip_get_file_comment()
51 *lenp = za->cdir->entry[idx].comment_len; in zip_get_file_comment()
52 return za->cdir->entry[idx].comment; in zip_get_file_comment()
56 *lenp = za->entry[idx].ch_comment_len; in zip_get_file_comment()
57 return za->entry[idx].ch_comment; in zip_get_file_comment()
H A Dzip_get_file_extra.c41 zip_get_file_extra(struct zip *za, zip_uint64_t idx, int *lenp, int flags) in zip_get_file_extra() argument
43 if (idx >= za->nentry) { in zip_get_file_extra()
44 _zip_error_set(&za->error, ZIP_ER_INVAL, 0); in zip_get_file_extra()
49 || (za->entry[idx].ch_extra_len == -1)) { in zip_get_file_extra()
51 *lenp = za->cdir->entry[idx].extrafield_len; in zip_get_file_extra()
52 return za->cdir->entry[idx].extrafield; in zip_get_file_extra()
56 *lenp = za->entry[idx].ch_extra_len; in zip_get_file_extra()
57 return za->entry[idx].ch_extra; in zip_get_file_extra()
H A Dzip_get_name.c41 zip_get_name(struct zip *za, zip_uint64_t idx, int flags) in zip_get_name() argument
43 return _zip_get_name(za, idx, flags, &za->error); in zip_get_name()
49 _zip_get_name(struct zip *za, zip_uint64_t idx, int flags, in _zip_get_name() argument
52 if (idx >= za->nentry) { in _zip_get_name()
58 if (za->entry[idx].state == ZIP_ST_DELETED) { in _zip_get_name()
62 if (za->entry[idx].ch_filename) in _zip_get_name()
63 return za->entry[idx].ch_filename; in _zip_get_name()
66 if (za->cdir == NULL || idx >= za->cdir->nentry) { in _zip_get_name()
71 return za->cdir->entry[idx].filename; in _zip_get_name()

Completed in 157 milliseconds

123