Home
last modified time | relevance | path

Searched refs:entry (Results 1 – 25 of 232) sorted by relevance

12345678910

/PHP-5.4/ext/phar/
H A Dzip.c388 entry.filename = (char *) pemalloc(entry.filename_len + 1, entry.is_persistent); in phar_parse_zipfile()
390 if (entry.filename_len != php_stream_read(fp, entry.filename, entry.filename_len)) { in phar_parse_zipfile()
391 pefree(entry.filename, entry.is_persistent); in phar_parse_zipfile()
395 entry.filename[entry.filename_len] = '\0'; in phar_parse_zipfile()
412 pefree(entry.filename, entry.is_persistent); in phar_parse_zipfile()
579 entry.offset = entry.offset_abs = in phar_parse_zipfile()
845 … if (entry->fp_type == PHAR_MOD && entry->fp != entry->phar->fp && entry->fp != entry->phar->ufp) { in phar_zip_changed_apply()
859 …if (entry->flags & PHAR_ENT_COMPRESSION_MASK && (entry->old_flags == entry->flags || !entry->old_f… in phar_zip_changed_apply()
932 entry->old_flags = entry->flags; in phar_zip_changed_apply()
1043 …if (entry->fp_type == PHAR_MOD && entry->fp != entry->phar->fp && entry->fp != entry->phar->ufp &&… in phar_zip_changed_apply()
[all …]
H A Dtar.c181 entry->phar->metadata = entry->metadata; in phar_tar_process_metadata()
362 entry.filename[entry.filename_len] = '\0'; in phar_parse_tarfile()
474 pefree(entry.filename, entry.is_persistent); in phar_parse_tarfile()
699 phar_add_virtual_dirs(entry->phar, entry->filename, entry->filename_len TSRMLS_CC); in phar_tar_writeheaders()
812 if (entry->fp_type == PHAR_MOD && entry->fp != entry->phar->fp && entry->fp != entry->phar->ufp) { in phar_tar_writeheaders()
822 entry->offset = entry->offset_abs = pos; in phar_tar_writeheaders()
840 entry->uncompressed_filesize = entry->compressed_filesize = entry->metadata_str.len; in phar_tar_setmetadata()
842 if (entry->fp && entry->fp_type == PHAR_MOD) { in phar_tar_setmetadata()
849 entry->offset = entry->offset_abs = 0; in phar_tar_setmetadata()
854 …if (entry->metadata_str.len != php_stream_write(entry->fp, entry->metadata_str.c, entry->metadata_… in phar_tar_setmetadata()
[all …]
H A Dutil.c61 spprintf(&ret, 0, "%s/%s", entry->filename, entry->link); in phar_get_link_location()
74 return entry; in phar_get_link_source()
137 entry = t; in phar_seek_efp()
1021 entry->old_flags = entry->flags; in phar_open_entry_fp()
1075 entry->old_flags = entry->flags; in phar_create_writeable_entry()
1108 entry->old_flags = entry->flags; in phar_create_writeable_entry()
1543 entry->is_temp_dir = entry->is_dir = 1; in phar_get_entry_info_dir()
1581 if (!entry->tmp || !entry->is_mounted) { in phar_get_entry_info_dir()
2261 entry->link = estrdup(entry->link);
2265 entry->tmp = estrdup(entry->tmp);
[all …]
H A Dfunc_interceptors.c62 efree(entry); in PHAR_FUNC()
67 entry = phar_fix_filepath(entry, &entry_len, 1 TSRMLS_CC); in PHAR_FUNC()
74 efree(entry); in PHAR_FUNC()
135 efree(entry); in PHAR_FUNC()
153 name = entry; in PHAR_FUNC()
266 efree(entry); in PHAR_FUNC()
281 name = entry; in PHAR_FUNC()
304 efree(entry); in PHAR_FUNC()
362 efree(entry); in PHAR_FUNC()
401 efree(entry); in PHAR_FUNC()
[all …]
H A Ddirstream.c294 efree(entry); in phar_make_dirstream()
388 } else if (entry && entry->is_dir) { in phar_wrapper_open_dir()
520 entry.is_zip = 1; in phar_wrapper_mkdir()
526 entry.is_tar = 1; in phar_wrapper_mkdir()
532 entry.is_dir = 1; in phar_wrapper_mkdir()
533 entry.phar = phar; in phar_wrapper_mkdir()
550 zend_hash_del(&phar->manifest, entry.filename, entry.filename_len); in phar_wrapper_mkdir()
555 phar_add_virtual_dirs(phar, entry.filename, entry.filename_len TSRMLS_CC); in phar_wrapper_mkdir()
648 efree(entry); in phar_wrapper_rmdir()
669 efree(entry); in phar_wrapper_rmdir()
[all …]
H A Dphar_internal.h364 if (!entry->is_persistent) { in phar_get_entrypfp()
365 return entry->phar->fp; in phar_get_entrypfp()
373 return entry->phar->ufp; in phar_get_entrypufp()
381 entry->phar->fp = fp; in phar_set_entrypfp()
391 entry->phar->ufp = fp; in phar_set_entrypufp()
439 entry->fp_type = type; in phar_set_fp_type()
440 entry->offset = offset; in phar_set_fp_type()
451 return entry->fp_type; in phar_get_fp_type()
459 return entry->offset; in phar_get_fp_offset()
463 …PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].manifest[entry->manifest_pos].offset = entry->offse… in phar_get_fp_offset()
[all …]
H A Dphar.c346 if (entry->fp && !entry->fp_refcount) { in phar_tmpclose_apply()
417 pefree(entry->filename, entry->is_persistent); in destroy_phar_manifest_entry()
420 pefree(entry->link, entry->is_persistent); in destroy_phar_manifest_entry()
425 pefree(entry->tmp, entry->is_persistent); in destroy_phar_manifest_entry()
1084 entry.filename = pestrndup(buffer, entry.filename_len, entry.is_persistent);
1116 pefree(entry.filename, entry.is_persistent);
1125 entry.offset = entry.offset_abs = offset;
2459 entry->offset = entry->offset_abs =
2914 entry->old_flags = entry->flags;
3094 if (entry->is_deleted || entry->is_dir || entry->is_mounted) {
[all …]
H A Dphar_object.c455 efree(entry); in PHP_METHOD()
493 efree(entry); in PHP_METHOD()
494 entry = NULL; in PHP_METHOD()
530 if (entry && path && path == entry) { in PHP_METHOD()
531 efree(entry); in PHP_METHOD()
548 path = entry; in PHP_METHOD()
776 efree(entry);
1213 if (entry) {
1260 if (entry) {
2081 entry->cfp = entry->fp;
[all …]
H A Dstream.c76 if (arch && !entry) { in phar_parse_url()
89 resource->path = entry; in phar_parse_url()
264 entry->phar = phar; in phar_wrapper_open_url()
265 entry->offset = entry->offset_abs = 0; in phar_wrapper_open_url()
363 phar_entry_info *entry; in phar_stream_read() local
656 if (!entry->tmp || !entry->is_mounted) { in phar_wrapper_stat()
877 entry->fp = NULL; in phar_wrapper_rename()
878 entry->metadata = 0; in phar_wrapper_rename()
879 entry->link = entry->tmp = NULL; in phar_wrapper_rename()
880 source = entry; in phar_wrapper_rename()
[all …]
/PHP-5.4/ext/dom/examples/
H A Ddom1.inc14 <row><entry>a1</entry><entry morerows='1'>b1</entry><entry>c1</entry></row>
15 <row><entry>a2</entry><entry>c2</entry></row>
16 <row><entry>a3</entry><entry>b3</entry><entry>c3</entry></row>
/PHP-5.4/ext/dom/tests/
H A Ddom_test.inc14 <row><entry>a1</entry><entry morerows='1'>b1</entry><entry>c1</entry></row>
15 <row><entry>a2</entry><entry>c2</entry></row>
16 <row><entry>a3</entry><entry>b3</entry><entry>c3</entry></row>
H A Ddom001.phpt29 // The last node should be identical with the last entry in the children array
203 <row><entry>a1</entry><entry morerows="1">b1</entry><entry>c1</entry></row>
204 <row><entry>a2</entry><entry>c2</entry></row>
205 <row><entry>a3</entry><entry>b3</entry><entry>c3</entry></row>
264 <row><entry>a1</entry><entry morerows="1">b1</entry><entry>c1</entry></row>
265 <row><entry>a2</entry><entry>c2</entry></row>
266 <row><entry>a3</entry><entry>b3</entry><entry>c3</entry></row>
H A Dbug40836.phpt11 <entry xmlns="http://www.w3.org/2005/Atom">
18 </entry>
21 $entry = $dom->getElementsByTagNameNS("http://www.w3.org/2005/Atom", "entry")->item(0);
22 $contentNode = $entry->getElementsByTagName("content")->item(0)->firstChild;
23 $dateNode = $entry->getElementsByTagName("updated")->item(0)->firstChild;
29entry xmlns="http://www.w3.org/2005/Atom"><updated/><content><div xmlns="http://www.w3.org/1999/xh…
/PHP-5.4/ext/mbstring/libmbfl/tests/conv_encoding.tests/
H A Dgen_exp.c61 entry = &map->entries[i]; in mappings_add()
75 entry->cp_uni = cp_uni; in mappings_add()
76 entry->n = 0; in mappings_add()
93 entry->cp_uni = cp_uni; in mappings_add()
94 entry->n = 0; in mappings_add()
102 if (entry->n >= sizeof(entry->cp_932) / sizeof(*entry->cp_932)) in mappings_add()
104 entry->cp_932[entry->n++] = cp_932; in mappings_add()
202 if (entry->cp_uni < 32 || entry->cp_uni == 127) in to_cp932_visitor()
241 if (entry->cp_uni < 32 || entry->cp_uni == 127) in from_cp932_visitor()
275 if (entry->cp_uni < 32 || entry->cp_uni == 127) in to_cp50220_visitor()
[all …]
/PHP-5.4/ext/zip/lib/
H A Dzip_unchange.c60 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 Dzip_close.c118 _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 Dzip_stat_index.c56 && 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 Dzip_get_file_comment.c49 || (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.c49 || (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()
/PHP-5.4/ext/ldap/tests/
H A Dldap_next_entry_basic.phpt16 $entry = ldap_first_entry($link, $result);
18 $entry = ldap_next_entry($link, $entry),
19 ldap_get_values($link, $entry, 'sn'),
20 $entry = ldap_next_entry($link, $entry)
32 resource(%d) of type (ldap result entry)
/PHP-5.4/ext/phar/tests/
H A D019c.phpt34 while (false !== ($entry = readdir($dir))) {
35 $entry = $base . '/' . $entry;
36 var_dump($entry);
37 var_dump(is_dir($phar . $entry));
38 if (is_dir($phar . $entry))
40 dump($phar, $entry);
44 var_dump(file_get_contents($phar . $entry));
H A D019cU.phpt34 while (false !== ($entry = readdir($dir))) {
35 $entry = $base . '/' . $entry;
36 var_dump($entry);
37 var_dump(is_dir($phar . $entry));
38 if (is_dir($phar . $entry))
40 dump($phar, $entry);
44 var_dump(file_get_contents($phar . $entry));
H A D019bU.phpt36 while (false !== ($entry = readdir($dir))) {
37 $entry = $base . '/' . $entry;
38 var_dump($entry);
39 var_dump(is_dir($phar . $entry));
40 if (is_dir($phar . $entry))
42 dump($phar, $entry);
/PHP-5.4/ext/zip/tests/
H A Dzip_entry_read.phpt11 $entry = zip_read($zip);
12 if (!zip_entry_open($zip, $entry, "r")) die("Failure");
13 echo zip_entry_read($entry);
14 zip_entry_close($entry);
H A Dbug7214.phpt13 $entry = zip_read($zip);
14 $contents = zip_entry_read($entry, zip_entry_filesize($entry));
15 if (strlen($contents) == zip_entry_filesize($entry)) {

Completed in 76 milliseconds

12345678910