/PHP-5.5/ext/xsl/ |
H A D | xsltprocessor.c | 779 zval *array_value, **entry, *new_string; in PHP_FUNCTION() local 790 while (zend_hash_get_current_data(Z_ARRVAL_P(array_value), (void **)&entry) == SUCCESS) { in PHP_FUNCTION() 791 SEPARATE_ZVAL(entry); in PHP_FUNCTION() 792 convert_to_string_ex(entry); in PHP_FUNCTION() 800 Z_ADDREF_PP(entry); in PHP_FUNCTION() 801 COPY_PZVAL_TO_ZVAL(*new_string, *entry); in PHP_FUNCTION() 878 zval *array_value, **entry, *new_string; in PHP_FUNCTION() local 888 while (zend_hash_get_current_data(Z_ARRVAL_P(array_value), (void **)&entry) == SUCCESS) { in PHP_FUNCTION() 889 SEPARATE_ZVAL(entry); in PHP_FUNCTION() 890 convert_to_string_ex(entry); in PHP_FUNCTION() [all …]
|
/PHP-5.5/ext/zip/lib/ |
H A D | zip_close.c | 118 _zip_dirent_init(&cd->entry[i]); in zip_close() 176 memcpy(cd->entry+j, &de, sizeof(cd->entry[j])); in zip_close() 183 cd->entry[j].filename = "-"; in zip_close() 189 cd->entry[j].filename = za->cdir->entry[i].filename; in zip_close() 206 memcpy(cd->entry+j, za->cdir->entry+i, sizeof(cd->entry[j])); in zip_close() 216 if (za->entry[i].ch_filename) { in zip_close() 223 cd->entry[j].filename = za->entry[i].ch_filename; in zip_close() 233 memcpy(de.extrafield, za->entry[i].ch_extra, za->entry[i].ch_extra_len); in zip_close() 246 cd->entry[j].comment = za->entry[i].ch_comment; in zip_close() 247 cd->entry[j].comment_len = za->entry[i].ch_comment_len; in zip_close() [all …]
|
H A D | zip_delete.c | 58 za->entry[idx].state = ZIP_ST_DELETED; in zip_delete()
|
H A D | zip_dirent.c | 62 _zip_dirent_finalize(cd->entry+i); in _zip_cdir_free() 64 free(cd->entry); in _zip_cdir_free() 73 struct zip_dirent *entry; in _zip_cdir_grow() local 80 if ((entry=((struct zip_dirent *) in _zip_cdir_grow() 81 realloc(cd->entry, sizeof(*(cd->entry))*nentry))) == NULL) { in _zip_cdir_grow() 87 cd->entry = entry; in _zip_cdir_grow() 104 …if ( nentry > ((size_t)-1)/sizeof(*(cd->entry)) || (cd->entry=(struct zip_dirent *)malloc(sizeof(*… in _zip_cdir_new() 131 if (_zip_dirent_write(cd->entry+i, fp, 0, error) != 0) in _zip_cdir_write()
|
H A D | zip_entry_new.c | 56 rentries = (struct zip_entry *)realloc(za->entry, in _zip_entry_new() 63 za->entry = rentries; in _zip_entry_new() 65 ze = za->entry+za->nentry; in _zip_entry_new()
|
H A D | zip_file_get_offset.c | 59 offset = za->cdir->entry[idx].offset; in _zip_file_get_offset()
|
H A D | zip_fopen_index_encrypted.c | 63 && ZIP_ENTRY_DATA_CHANGED(za->entry+fileno)) { in zip_fopen_index_encrypted() 125 if ((s2=comp_impl(za, src, za->cdir->entry[fileno].comp_method, in zip_fopen_index_encrypted()
|
H A D | zip_free.c | 64 if (za->entry) { in _zip_free() 66 _zip_entry_free(za->entry+i); in _zip_free() 68 free(za->entry); in _zip_free()
|
H A D | zip_get_file_comment.c | 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 D | zip_get_file_extra.c | 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 D | zip_get_name.c | 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() 71 return za->cdir->entry[idx].filename; in _zip_get_name()
|
H A D | zip_name_locate.c | 76 fn = za->cdir->entry[i].filename; in _zip_name_locate()
|
H A D | zip_new.c | 64 za->entry = NULL; in _zip_new()
|
H A D | zip_open.c | 128 if ((za->entry=(struct zip_entry *)malloc(sizeof(*(za->entry)) in _zip_open() 267 if ((_zip_dirent_read(cd->entry+i, fp, bufp, &left, 0, error)) < 0) { in _zip_readcdir() 306 max = cd->entry[0].offset; in _zip_checkcons() 307 min = cd->entry[0].offset; in _zip_checkcons() 313 if (cd->entry[i].offset < min) in _zip_checkcons() 314 min = cd->entry[i].offset; in _zip_checkcons() 320 j = cd->entry[i].offset + cd->entry[i].comp_size in _zip_checkcons() 321 + cd->entry[i].filename_len + LENTRYSIZE; in _zip_checkcons() 329 if (fseeko(fp, cd->entry[i].offset, SEEK_SET) != 0) { in _zip_checkcons() 337 if (_zip_headercomp(cd->entry+i, 0, &temp, 1) != 0) { in _zip_checkcons()
|
H A D | zip_replace.c | 75 _zip_unchange_data(za->entry+idx); in _zip_replace() 80 za->entry[idx].state = ((za->cdir == NULL || idx >= za->cdir->nentry) in _zip_replace() 82 za->entry[idx].source = source; in _zip_replace()
|
H A D | zip_set_file_comment.c | 67 free(za->entry[idx].ch_comment); in zip_set_file_comment() 68 za->entry[idx].ch_comment = tmpcom; in zip_set_file_comment() 69 za->entry[idx].ch_comment_len = len; in zip_set_file_comment()
|
H A D | zip_set_file_extra.c | 67 free(za->entry[idx].ch_extra); in zip_set_file_extra() 68 za->entry[idx].ch_extra = tmpext; in zip_set_file_extra() 69 za->entry[idx].ch_extra_len = len; in zip_set_file_extra()
|
H A D | zip_set_name.c | 68 if (za->entry[idx].state == ZIP_ST_UNCHANGED) in _zip_set_name() 69 za->entry[idx].state = ZIP_ST_RENAMED; in _zip_set_name() 71 free(za->entry[idx].ch_filename); in _zip_set_name() 72 za->entry[idx].ch_filename = s; in _zip_set_name()
|
H A D | zip_source_zip.c | 72 && ZIP_ENTRY_DATA_CHANGED(srcza->entry+srcidx)) { in zip_source_zip()
|
H A D | zip_stat_index.c | 56 && ZIP_ENTRY_DATA_CHANGED(za->entry+index)) { in zip_stat_index() 57 if (zip_source_stat(za->entry[index].source, st) < 0) { in zip_stat_index() 70 st->crc = za->cdir->entry[index].crc; in zip_stat_index() 71 st->size = za->cdir->entry[index].uncomp_size; in zip_stat_index() 72 st->mtime = za->cdir->entry[index].last_mod; in zip_stat_index() 73 st->comp_size = za->cdir->entry[index].comp_size; in zip_stat_index() 74 st->comp_method = za->cdir->entry[index].comp_method; in zip_stat_index() 75 if (za->cdir->entry[index].bitflags & ZIP_GPBF_ENCRYPTED) { in zip_stat_index() 76 if (za->cdir->entry[index].bitflags & ZIP_GPBF_STRONG_ENCRYPTION) { in zip_stat_index()
|
H A D | zip_unchange.c | 60 if (za->entry[idx].ch_filename) { in _zip_unchange() 71 free(za->entry[idx].ch_filename); in _zip_unchange() 72 za->entry[idx].ch_filename = NULL; in _zip_unchange() 75 free(za->entry[idx].ch_extra); in _zip_unchange() 76 za->entry[idx].ch_extra = NULL; in _zip_unchange() 77 za->entry[idx].ch_extra_len = -1; in _zip_unchange() 78 free(za->entry[idx].ch_comment); in _zip_unchange() 79 za->entry[idx].ch_comment = NULL; in _zip_unchange() 80 za->entry[idx].ch_comment_len = -1; in _zip_unchange() 82 _zip_unchange_data(za->entry+idx); in _zip_unchange()
|
H A D | zipint.h | 199 struct zip_entry *entry; /* entries */ member 240 struct zip_dirent *entry; /* directory entries */ member
|
/PHP-5.5/ext/zip/tests/ |
H A D | bug7214.phpt | 13 $entry = zip_read($zip); 14 $contents = zip_entry_read($entry, zip_entry_filesize($entry)); 15 if (strlen($contents) == zip_entry_filesize($entry)) {
|
H A D | bug8009.phpt | 2 Bug #8009 (cannot add again same entry to an archive)
|
H A D | oo_delete.phpt | 20 $zip->addFromString('entry1.txt', 'entry #1'); 21 $zip->addFromString('entry2.txt', 'entry #2'); 22 $zip->addFromString('dir/entry2.txt', 'entry #2');
|