Searched refs:entry (Results 1 - 25 of 103) sorted by relevance

12345

/PHP_5_3/ext/simplexml/examples/
H A Dxpath.php5 foreach($xpath_result as $entry ) {
6 print "$entry \n";
/PHP_5_3/ext/zip/lib/
H A Dzip_delete.c60 za->entry[idx].state = ZIP_ST_DELETED;
H A Dzip_entry_new.c58 rentries = (struct zip_entry *)realloc(za->entry,
65 za->entry = rentries;
67 ze = za->entry+za->nentry;
H A Dzip_free.c66 if (za->entry) {
68 _zip_entry_free(za->entry+i);
70 free(za->entry);
H A Dzip_get_file_comment.c51 || (za->entry[idx].ch_comment_len == -1)) {
53 *lenp = za->cdir->entry[idx].comment_len;
54 return za->cdir->entry[idx].comment;
58 *lenp = za->entry[idx].ch_comment_len;
59 return za->entry[idx].ch_comment;
H A Dzip_get_file_extra.c49 || (za->entry[idx].ch_extra_len == -1)) {
51 *lenp = za->cdir->entry[idx].extrafield_len;
52 return za->cdir->entry[idx].extrafield;
56 *lenp = za->entry[idx].ch_extra_len;
57 return za->entry[idx].ch_extra;
H A Dzip_get_name.c61 if (za->entry[idx].state == ZIP_ST_DELETED) {
65 if (za->entry[idx].ch_filename)
66 return za->entry[idx].ch_filename;
74 return za->cdir->entry[idx].filename;
H A Dzip_replace.c78 _zip_unchange_data(za->entry+idx);
83 za->entry[idx].state = ((za->cdir == NULL || idx >= za->cdir->nentry)
85 za->entry[idx].source = source;
H A Dzip_set_file_comment.c69 free(za->entry[idx].ch_comment);
70 za->entry[idx].ch_comment = tmpcom;
71 za->entry[idx].ch_comment_len = len;
H A Dzip_set_file_extra.c67 free(za->entry[idx].ch_extra);
68 za->entry[idx].ch_extra = tmpext;
69 za->entry[idx].ch_extra_len = len;
H A Dzip_set_name.c70 if (za->entry[idx].state == ZIP_ST_UNCHANGED)
71 za->entry[idx].state = ZIP_ST_RENAMED;
73 free(za->entry[idx].ch_filename);
74 za->entry[idx].ch_filename = s;
H A Dzip_stat_index.c58 && ZIP_ENTRY_DATA_CHANGED(za->entry+index)) {
59 if (zip_source_stat(za->entry[index].source, st) < 0) {
72 st->crc = za->cdir->entry[index].crc;
73 st->size = za->cdir->entry[index].uncomp_size;
74 st->mtime = za->cdir->entry[index].last_mod;
75 st->comp_size = za->cdir->entry[index].comp_size;
76 st->comp_method = za->cdir->entry[index].comp_method;
77 if (za->cdir->entry[index].bitflags & ZIP_GPBF_ENCRYPTED) {
78 if (za->cdir->entry[index].bitflags & ZIP_GPBF_STRONG_ENCRYPTION) {
H A Dzip_unchange.c63 if (za->entry[idx].ch_filename) {
74 free(za->entry[idx].ch_filename);
75 za->entry[idx].ch_filename = NULL;
78 free(za->entry[idx].ch_extra);
79 za->entry[idx].ch_extra = NULL;
80 za->entry[idx].ch_extra_len = -1;
81 free(za->entry[idx].ch_comment);
82 za->entry[idx].ch_comment = NULL;
83 za->entry[idx].ch_comment_len = -1;
85 _zip_unchange_data(za->entry
[all...]
H A Dzip_close.c121 _zip_dirent_init(&cd->entry[i]);
152 if (za->entry[i].state == ZIP_ST_DELETED)
172 /* create new local directory entry */
173 if (ZIP_ENTRY_DATA_CHANGED(za->entry+i) || new_torrentzip) {
178 /* use it as central directory entry */
179 memcpy(cd->entry+j, &de, sizeof(cd->entry[j]));
182 if (za->entry[i].ch_filename == NULL) {
183 if (za->entry[i].state == ZIP_ST_ADDED) {
186 cd->entry[
[all...]
/PHP_5_3/ext/mbstring/libmbfl/tests/conv_encoding.tests/
H A Dgen_exp.c57 struct mappings_entry *entry; local
61 entry = &map->entries[i];
62 if (e == i || entry->cp_uni > cp_uni) {
74 entry = &map->entries[i];
75 entry->cp_uni = cp_uni;
76 entry->n = 0;
80 } else if (entry->cp_uni < cp_uni) {
92 entry = &map->entries[i + 1];
93 entry->cp_uni = cp_uni;
94 entry
197 to_cp932_visitor(const struct mappings_entry *entry) argument
236 from_cp932_visitor(const struct mappings_entry *entry) argument
270 to_cp50220_visitor(const struct mappings_entry *entry) argument
324 to_cp50222_visitor(const struct mappings_entry *entry) argument
[all...]
/PHP_5_3/main/
H A Dphp_scandir.c60 PHPAPI int php_scandir(const char *dirname, struct dirent **namelist[], int (*selector) (const struct dirent *entry), int (*compare) (const struct dirent **a, const struct dirent **b)) argument
66 char entry[sizeof(struct dirent)+MAXPATHLEN]; local
67 struct dirent *dp = (struct dirent *)&entry;
77 while (!php_readdir_r(dirp, (struct dirent *)entry, &dp) && dp) {
/PHP_5_3/ext/phar/
H A Ddirstream.c197 char *entry, *found, *save, *str_key; local
242 /* the entry has a path separator and is a subdirectory */
243 entry = (char *) safe_emalloc(found - str_key, 1, 1);
244 memcpy(entry, str_key, found - str_key);
246 entry[keylen] = '\0';
248 entry = (char *) safe_emalloc(keylen, 1, 1);
249 memcpy(entry, str_key, keylen);
250 entry[keylen] = '\0';
257 /* entry in directory not found */
280 entry
331 phar_entry_info *entry = NULL; local
437 phar_entry_info entry, *e; local
569 phar_entry_info *entry; local
[all...]
H A Dfunc_interceptors.c46 char *arch, *entry, *fname; local
57 if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0 TSRMLS_CC)) {
62 efree(entry);
63 entry = estrndup(filename, filename_len);
67 entry = phar_fix_filepath(entry, &entry_len, 1 TSRMLS_CC);
69 if (entry[0] == '/') {
70 spprintf(&name, 4096, "phar://%s%s", arch, entry);
72 spprintf(&name, 4096, "phar://%s/%s", arch, entry);
74 efree(entry);
121 char *arch, *entry, *fname; local
251 char *arch, *entry, *fname; local
347 char *arch, *entry, *fname; local
618 char *arch, *entry, *fname; local
912 char *arch, *entry, *fname; local
979 char *arch, *entry, *fname; local
[all...]
H A Dphar.c55 if (entry->name_length == 14) {
76 if (entry->name_length == 14) {
85 if (entry->name_length == 14) {
340 phar_entry_info *entry = (phar_entry_info *) pDest; local
342 if (entry->fp_type != PHAR_TMP) {
346 if (entry->fp && !entry->fp_refcount) {
347 php_stream_close(entry->fp);
348 entry->fp = NULL;
364 /* first, iterate over the manifest and close all PHAR_TMP entry f
384 phar_entry_info *entry = (phar_entry_info *)pDest; local
666 phar_entry_info entry; local
2260 phar_split_fname(char *filename, int filename_len, char **arch, int *arch_len, char **entry, int *entry_len, int executable, int for_create TSRMLS_DC) argument
2413 phar_entry_info *entry = idata->internal_file; local
2506 phar_entry_info *entry = (phar_entry_info *)data; local
2574 phar_entry_info *entry, *newentry; local
3415 char *arch, *entry; local
[all...]
H A Dphar_internal.h246 /* temporary manifest entry (file outside of the phar mapped to a location inside the phar)
247 this entry stores the stream to open in link (normally used for tars, but we steal it here) */
251 /* entry for one file in a phar file */
362 static inline php_stream *phar_get_entrypfp(phar_entry_info *entry TSRMLS_DC)
364 if (!entry->is_persistent) {
365 return entry->phar->fp;
367 return PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].fp;
370 static inline php_stream *phar_get_entrypufp(phar_entry_info *entry TSRMLS_DC)
372 if (!entry->is_persistent) {
373 return entry
378 phar_set_entrypfp(phar_entry_info *entry, php_stream *fp TSRMLS_DC) argument
388 phar_set_entrypufp(phar_entry_info *entry, php_stream *fp TSRMLS_DC) argument
434 phar_set_fp_type(phar_entry_info *entry, enum phar_fp_type type, off_t offset TSRMLS_DC) argument
513 phar_entry_info *entry; member in struct:_phar_entry_object::__anon3
[all...]
H A Dstream.c62 char *arch = NULL, *entry = NULL, *error; local
74 if (phar_split_fname(filename, strlen(filename), &arch, &arch_len, &entry, &entry_len, 2, (mode[0] == 'w' ? 2 : 0) TSRMLS_CC) == FAILURE) {
76 if (arch && !entry) {
89 resource->path = entry;
258 phar_entry_info *entry; local
260 entry = (phar_entry_info *) ecalloc(1, sizeof(phar_entry_info));
261 entry->is_temp_dir = 1;
262 entry->filename = estrndup("", 0);
263 entry->filename_len = 0;
264 entry
320 char *entry = idata->internal_file->filename, *cwd; local
363 phar_entry_info *entry; local
393 phar_entry_info *entry; local
572 phar_entry_info *entry; local
770 phar_entry_info *entry; local
[all...]
H A Dphar_object.c59 static void phar_mung_server_vars(char *fname, char *entry, int entry_len, char *basename, int request_uri_len TSRMLS_DC) /* {{{ */ argument
80 if (Z_STRLEN_PP(stuff) > entry_len && !memcmp(Z_STRVAL_PP(stuff), entry, entry_len)) {
93 Z_STRLEN_PP(stuff) = spprintf(&(Z_STRVAL_PP(stuff)), 4096, "phar://%s%s", fname, entry);
141 ZVAL_STRINGL(*stuff, entry, entry_len, 1);
154 Z_STRLEN_PP(stuff) = spprintf(&(Z_STRVAL_PP(stuff)), 4096, "phar://%s%s", fname, entry);
165 static int phar_file_action(phar_archive_data *phar, phar_entry_info *info, char *mime_type, int code, char *entry, int entry_len, char *arch, char *basename, char *ru, int ru_len TSRMLS_DC) /* {{{ */ argument
182 if (entry[0] == '/') {
183 name_len = spprintf(&name, 4096, "phar://%s%s", arch, entry);
185 name_len = spprintf(&name, 4096, "phar://%s/%s", arch, entry);
241 phar_mung_server_vars(arch, entry, entry_le
332 phar_do_403(char *entry, int entry_len TSRMLS_DC) argument
347 phar_do_404(phar_archive_data *phar, char *fname, int fname_len, char *f404, int f404_len, char *entry, int entry_len TSRMLS_DC) argument
375 phar_postprocess_ru_web(char *fname, int fname_len, char **entry, int *entry_len, char **ru, int *ru_len TSRMLS_DC) argument
442 char *fname, *arch, *entry; local
476 char *fname, *arch = NULL, *entry = NULL, *path, *actual; local
568 char *fname, *basename, *path_info, *mime_type = NULL, *entry, *pt; local
1339 char *fname, *error, *zname, *arch, *entry; local
2043 phar_copy_file_contents(phar_entry_info *entry, php_stream *fp TSRMLS_DC) argument
2287 phar_entry_info *entry, newentry; local
2691 phar_entry_info *entry; local
3210 phar_entry_info *entry = (phar_entry_info *)pDest; local
3227 phar_entry_info *entry = (phar_entry_info *)pDest; local
3618 phar_entry_info *entry; local
3656 phar_entry_info *entry; local
3838 phar_entry_info *entry; local
4185 phar_extract_file(zend_bool overwrite, phar_entry_info *entry, char *dest, int dest_len, char **error TSRMLS_DC) argument
4336 phar_entry_info *entry; local
4488 char *fname, *arch, *entry, *error; local
[all...]
H A Dtar.c158 static int phar_tar_process_metadata(phar_entry_info *entry, php_stream *fp TSRMLS_DC) /* {{{ */ argument
164 metadata = (char *) safe_emalloc(1, entry->uncompressed_filesize, 1);
166 read = php_stream_read(fp, metadata, entry->uncompressed_filesize);
167 if (read != entry->uncompressed_filesize) {
173 if (phar_parse_metadata(&metadata, &entry->metadata, entry->uncompressed_filesize TSRMLS_CC) == FAILURE) {
180 if (entry->filename_len == sizeof(".phar/.metadata.bin")-1 && !memcmp(entry->filename, ".phar/.metadata.bin", sizeof(".phar/.metadata.bin")-1)) {
181 entry->phar->metadata = entry
198 phar_entry_info entry = {0}; local
682 phar_entry_info *entry = (phar_entry_info *) pDest; local
827 phar_tar_setmetadata(zval *metadata, phar_entry_info *entry, char **error TSRMLS_DC) argument
869 phar_entry_info *entry = (phar_entry_info *)pDest, *metadata, newentry = {0}; local
922 phar_entry_info entry = {0}; local
[all...]
H A Dutil.c48 /* for links to relative location, prepend cwd of the entry */
49 static char *phar_get_link_location(phar_entry_info *entry TSRMLS_DC) /* {{{ */
52 if (!entry->link) {
55 if (entry->link[0] == '/') {
56 return estrdup(entry->link + 1);
58 p = strrchr(entry->filename, '/');
61 spprintf(&ret, 0, "%s/%s", entry->filename, entry->link);
64 return entry->link;
68 phar_entry_info *phar_get_link_source(phar_entry_info *entry TSRMLS_D
94 phar_get_efp(phar_entry_info *entry, int follow_links TSRMLS_DC) argument
124 phar_seek_efp(phar_entry_info *entry, off_t offset, int whence, off_t position, int follow_links TSRMLS_DC) argument
177 phar_entry_info entry = {0}; local
261 char *path, *fname, *arch, *entry, *ret, *test; local
579 phar_entry_info *entry; local
740 phar_entry_info *entry, etemp; local
919 phar_open_entry_fp(phar_entry_info *entry, char **error, int follow_links TSRMLS_DC) argument
1046 phar_create_writeable_entry(phar_archive_data *phar, phar_entry_info *entry, char **error TSRMLS_DC) argument
1123 phar_separate_entry_fp(phar_entry_info *entry, char **error TSRMLS_DC) argument
1172 phar_open_jit(phar_archive_data *phar, phar_entry_info *entry, char **error TSRMLS_DC) argument
1418 phar_compress_filter(phar_entry_info * entry, int return_unknown) argument
1434 phar_decompress_filter(phar_entry_info * entry, int return_unknown) argument
1471 phar_entry_info *entry; local
2254 phar_entry_info *entry = (phar_entry_info *)data; local
[all...]
H A Dzip.c42 static int phar_zip_process_extra(php_stream *fp, phar_entry_info *entry, php_uint16 len TSRMLS_DC) /* {{{ */ argument
76 entry->flags &= PHAR_ENT_COMPRESSION_MASK;
78 if (entry->is_dir) {
79 entry->flags |= PHAR_GET_16(h.unix3.perms) & PHAR_ENT_PERM_MASK;
81 entry->flags |= PHAR_GET_16(h.unix3.perms) & PHAR_ENT_PERM_MASK;
92 zip_dirent.c -- read directory entry (local or central), clean dirent
161 * FAILURE, and setting pphar to the pointer to the manifest entry
173 phar_entry_info entry = {0}; local
244 if (entry.is_persistent) {
298 entry
776 phar_entry_info *entry; local
1094 phar_entry_info entry = {0}; local
1176 phar_entry_info entry = {0}; local
[all...]

Completed in 31 milliseconds

12345