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

12345

/PHP_TRUNK/ext/simplexml/examples/
H A Dxpath.php5 foreach($xpath_result as $entry ) {
6 print "$entry \n";
/PHP_TRUNK/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_TRUNK/main/
H A Dphp_scandir.h45 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));
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_TRUNK/sapi/nsapi/
H A Dnsapi.c185 * Every user visible function must have an entry in nsapi_functions[].
405 struct pb_entry *entry; local
415 entry=rc->rq->headers->ht[i];
416 while (entry) {
417 add_assoc_string(return_value, entry->param->name, entry->param->value);
418 entry=entry->next;
429 struct pb_entry *entry; local
439 entry
664 struct pb_entry *entry; local
846 struct pb_entry *entry; local
[all...]
/PHP_TRUNK/ext/sockets/
H A Dsendrecvmsg.c95 ancillary_reg_entry entry; local
102 entry.size = sizev; \
103 entry.var_el_size = var_size; \
104 entry.calc_space = calc; \
105 entry.from_array = from; \
106 entry.to_array = to; \
109 zend_hash_str_update_mem(&ancillary_registry.ht, (char*)&key, sizeof(key) - 1, (void*)&entry, sizeof(entry))
147 ancillary_reg_entry *entry; local
159 if ((entry
283 ancillary_reg_entry *entry; local
[all...]
/PHP_TRUNK/ext/phar/
H A Ddirstream.c184 char *entry, *found, *save; local
227 /* the entry has a path separator and is a subdirectory */
228 entry = (char *) safe_emalloc(found - str_key->val, 1, 1);
229 memcpy(entry, str_key->val, found - str_key->val);
231 entry[keylen] = '\0';
233 entry = (char *) safe_emalloc(keylen, 1, 1);
234 memcpy(entry, str_key->val, keylen);
235 entry[keylen] = '\0';
241 /* entry in directory not found */
262 entry
311 phar_entry_info *entry = NULL; local
413 phar_entry_info entry, *e; local
545 phar_entry_info *entry; local
[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)) == FAILURE) {
76 if (arch && !entry) {
89 resource->path = entry;
257 phar_entry_info *entry; local
259 entry = (phar_entry_info *) ecalloc(1, sizeof(phar_entry_info));
260 entry->is_temp_dir = 1;
261 entry->filename = estrndup("", 0);
262 entry->filename_len = 0;
263 entry
319 char *entry = idata->internal_file->filename, *cwd; local
362 phar_entry_info *entry; local
392 phar_entry_info *entry; local
571 phar_entry_info *entry; local
753 phar_entry_info *entry; local
[all...]
H A Dutil.c44 /* for links to relative location, prepend cwd of the entry */
45 static char *phar_get_link_location(phar_entry_info *entry) /* {{{ */ argument
48 if (!entry->link) {
51 if (entry->link[0] == '/') {
52 return estrdup(entry->link + 1);
54 p = strrchr(entry->filename, '/');
57 spprintf(&ret, 0, "%s/%s", entry->filename, entry->link);
60 return entry->link;
64 phar_entry_info *phar_get_link_source(phar_entry_info *entry) /* {{{ */ argument
90 phar_get_efp(phar_entry_info *entry, int follow_links) argument
120 phar_seek_efp(phar_entry_info *entry, zend_off_t offset, int whence, zend_off_t position, int follow_links) argument
172 phar_entry_info entry = {0}; local
256 char *path, *fname, *arch, *entry, *test; local
355 phar_entry_info *entry; local
516 phar_entry_info *entry, etemp; local
690 phar_open_entry_fp(phar_entry_info *entry, char **error, int follow_links) argument
806 phar_create_writeable_entry(phar_archive_data *phar, phar_entry_info *entry, char **error) argument
859 phar_separate_entry_fp(phar_entry_info *entry, char **error) argument
908 phar_open_jit(phar_archive_data *phar, phar_entry_info *entry, char **error) argument
1164 phar_compress_filter(phar_entry_info * entry, int return_unknown) argument
1180 phar_decompress_filter(phar_entry_info * entry, int return_unknown) argument
1217 phar_entry_info *entry; local
1936 phar_entry_info *entry = (phar_entry_info *)Z_PTR_P(data); local
[all...]
H A Dzip.c42 static int phar_zip_process_extra(php_stream *fp, phar_entry_info *entry, php_uint16 len) /* {{{ */ 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
290 entry.phar = mydata;
291 entry
786 phar_zip_changed_apply_int(phar_entry_info *entry, void *arg) argument
1109 phar_entry_info entry = {0}; local
1191 phar_entry_info entry = {0}; 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) /* {{{ */ argument
79 if (code > entry_len && !memcmp(path_info, entry, entry_len)) {
87 zend_string *str = strpprintf(4096, "phar://%s%s", fname, entry);
127 ZVAL_STRINGL(stuff, entry, entry_len);
134 zend_string *str = strpprintf(4096, "phar://%s%s", fname, entry);
145 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) /* {{{ */ argument
164 if (entry[0] == '/') {
165 name_len = spprintf(&name, 4096, "phar://%s%s", arch, entry);
167 name_len = spprintf(&name, 4096, "phar://%s/%s", arch, entry);
223 phar_mung_server_vars(arch, entry, entry_le
310 phar_do_403(char *entry, int entry_len) argument
325 phar_do_404(phar_archive_data *phar, char *fname, int fname_len, char *f404, size_t f404_len, char *entry, size_t entry_len) argument
353 phar_postprocess_ru_web(char *fname, int fname_len, char **entry, int *entry_len, char **ru, int *ru_len) argument
420 char *fname, *arch, *entry; local
457 char *fname, *arch = NULL, *entry = NULL, *path, *actual; local
551 char *fname, *path_info, *mime_type = NULL, *entry, *pt; local
1307 char *fname, *error, *zname, *arch, *entry; local
1955 phar_copy_file_contents(phar_entry_info *entry, php_stream *fp) argument
2202 phar_entry_info *entry, newentry; local
2576 phar_entry_info *entry; local
3096 phar_entry_info *entry = (phar_entry_info *)Z_PTR_P(zv); local
3113 phar_entry_info *entry = (phar_entry_info *)Z_PTR_P(zv); local
3495 phar_entry_info *entry; local
3533 phar_entry_info *entry; local
3715 phar_entry_info *entry; local
4060 phar_extract_file(zend_bool overwrite, phar_entry_info *entry, char *dest, int dest_len, char **error) argument
4212 phar_entry_info *entry; local
4346 char *fname, *arch, *entry, *error; local
[all...]
H A Dphar_internal.h233 /* temporary manifest entry (file outside of the phar mapped to a location inside the phar)
234 this entry stores the stream to open in link (normally used for tars, but we steal it here) */
238 /* entry for one file in a phar file */
349 static inline php_stream *phar_get_entrypfp(phar_entry_info *entry) argument
351 if (!entry->is_persistent) {
352 return entry->phar->fp;
354 return PHAR_G(cached_fp)[entry->phar->phar_pos].fp;
357 static inline php_stream *phar_get_entrypufp(phar_entry_info *entry) argument
359 if (!entry->is_persistent) {
360 return entry
365 phar_set_entrypfp(phar_entry_info *entry, php_stream *fp) argument
375 phar_set_entrypufp(phar_entry_info *entry, php_stream *fp) argument
421 phar_set_fp_type(phar_entry_info *entry, enum phar_fp_type type, zend_off_t offset) argument
435 phar_get_fp_type(phar_entry_info *entry) argument
443 phar_get_fp_offset(phar_entry_info *entry) argument
493 phar_entry_info *entry; member in union:_phar_entry_object
528 phar_set_inode(phar_entry_info *entry) argument
[all...]
H A Dphar.c53 if (entry->name->len == sizeof("phar.readonly")-1) {
74 if (entry->name->len == sizeof("phar.readonly")-1) {
83 if (entry->name->len == sizeof("phar.readonly")-1) {
336 phar_entry_info *entry = (phar_entry_info *) Z_PTR_P(zv); local
338 if (entry->fp_type != PHAR_TMP) {
342 if (entry->fp && !entry->fp_refcount) {
343 php_stream_close(entry->fp);
344 entry->fp = NULL;
359 /* first, iterate over the manifest and close all PHAR_TMP entry f
377 destroy_phar_manifest_entry_int(phar_entry_info *entry) argument
426 phar_entry_info *entry = Z_PTR_P(zv); local
656 phar_entry_info entry; local
2182 phar_split_fname(const char *filename, int filename_len, char **arch, int *arch_len, char **entry, int *entry_len, int executable, int for_create) argument
2328 phar_entry_info *entry = idata->internal_file; local
2421 phar_entry_info *entry = (phar_entry_info *)Z_PTR_P(zv); local
2489 phar_entry_info *entry, *newentry; 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)) {
62 efree(entry);
63 entry = estrndup(filename, filename_len);
67 entry = phar_fix_filepath(entry, &entry_len, 1);
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);
120 char *arch, *entry, *fname; local
250 char *arch, *entry, *fname; local
351 char *arch, *entry, *fname; local
615 char *arch, *entry, *fname; local
909 char *arch, *entry, *fname; local
976 char *arch, *entry, *fname; local
[all...]
H A Dtar.c161 static int phar_tar_process_metadata(phar_entry_info *entry, php_stream *fp) /* {{{ */ argument
167 metadata = (char *) safe_emalloc(1, entry->uncompressed_filesize, 1);
169 read = php_stream_read(fp, metadata, entry->uncompressed_filesize);
170 if (read != entry->uncompressed_filesize) {
176 if (phar_parse_metadata(&metadata, &entry->metadata, entry->uncompressed_filesize) == FAILURE) {
183 if (entry->filename_len == sizeof(".phar/.metadata.bin")-1 && !memcmp(entry->filename, ".phar/.metadata.bin", sizeof(".phar/.metadata.bin")-1)) {
184 entry->phar->metadata = entry
201 phar_entry_info entry = {0}; local
693 phar_tar_writeheaders_int(phar_entry_info *entry, void *argument) argument
847 phar_tar_setmetadata(zval *metadata, phar_entry_info *entry, char **error) argument
888 phar_entry_info *entry = (phar_entry_info *)Z_PTR_P(zv), *metadata, newentry = {0}; local
941 phar_entry_info entry = {0}; local
[all...]
/PHP_TRUNK/ext/opcache/
H A Dzend_accelerator_hash.c71 * Returns pointer the actual hash entry on success
78 zend_accel_hash_entry *entry; local
92 entry = accel_hash->hash_table[index];
93 while (entry) {
94 if (entry->hash_value == hash_value
95 && entry->key_length == key_length
96 && !memcmp(entry->key, key, key_length)) {
98 if (entry->indirect) {
100 entry->data = indirect_bucket;
102 ((zend_accel_hash_entry*)entry
143 zend_accel_hash_entry *entry = accel_hash->hash_table[index]; local
224 zend_accel_hash_entry *entry, *last_entry=NULL; local
[all...]
/PHP_TRUNK/ext/zip/lib/
H A Dzip_add_entry.c56 rentries = (zip_entry_t *)realloc(za->entry, sizeof(struct zip_entry) * (size_t)nalloc);
61 za->entry = rentries;
67 _zip_entry_init(za->entry+idx);
H A Dzip_close.c105 if (za->entry[i].deleted)
132 zip_entry_t *entry; local
136 entry = za->entry+i;
138 new_data = (ZIP_ENTRY_DATA_CHANGED(entry) || ZIP_ENTRY_CHANGED(entry, ZIP_DIRENT_COMP_METHOD));
140 /* create new local directory entry */
141 if (entry->changes == NULL) {
142 if ((entry->changes=_zip_dirent_clone(entry
[all...]
H A Dzip_delete.c56 za->entry[idx].deleted = 1;
H A Dzip_discard.c61 if (za->entry) {
63 _zip_entry_finalize(za->entry+i);
64 free(za->entry);
H A Dzip_file_replace.c74 /* create and use new entry, used by zip_add */
83 _zip_entry_finalize(za->entry+idx);
91 _zip_unchange_data(za->entry+idx);
93 if (za->entry[idx].orig != NULL && (za->entry[idx].changes == NULL || (za->entry[idx].changes->changed & ZIP_DIRENT_COMP_METHOD) == 0)) {
94 if (za->entry[idx].changes == NULL) {
95 if ((za->entry[idx].changes=_zip_dirent_clone(za->entry[idx].orig)) == NULL) {
101 za->entry[id
[all...]
H A Dzip_get_num_entries.c48 while (n>0 && za->entry[n-1].orig == NULL)
H A Dzip_stat_index.c53 && ZIP_ENTRY_DATA_CHANGED(za->entry+index)) {
54 if (zip_source_stat(za->entry[index].source, st) < 0) {
H A Dzip_unchange.c57 if (!allow_duplicates && za->entry[idx].changes && (za->entry[idx].changes->changed & ZIP_DIRENT_FILENAME)) {
65 _zip_dirent_free(za->entry[idx].changes);
66 za->entry[idx].changes = NULL;
68 _zip_unchange_data(za->entry+idx);
/PHP_TRUNK/ext/standard/
H A Darray.c801 zval *entry; local
816 if ((entry = zend_hash_get_current_data(array)) == NULL) {
820 if (Z_TYPE_P(entry) == IS_INDIRECT) {
821 entry = Z_INDIRECT_P(entry);
824 RETURN_ZVAL_FAST(entry);
834 zval *entry; local
849 if ((entry = zend_hash_get_current_data(array)) == NULL) {
853 if (Z_TYPE_P(entry) == IS_INDIRECT) {
854 entry
867 zval *entry; local
900 zval *entry; local
933 zval *entry; local
1247 *entry; /* pointer to array entry */ local
1410 zval *entry; local
1558 php_compact_var(HashTable *eg_active_symbol_table, zval *return_value, zval *entry) argument
1659 zval *keys, *val, *entry; local
1976 zval *entry; /* Hash entry */ local
2452 *entry; /* An array entry */ local
2876 *entry, /* An entry in the input array */ local
2945 *entry; /* An entry in the input array */ local
2979 *entry, /* An entry in the input array */ local
3115 *entry; /* An entry in the input array */ local
3210 zval *array, *entry, data; local
3247 zval *array, *entry; local
4613 *entry, local
4638 *entry, local
5036 zval *entry; local
[all...]

Completed in 60 milliseconds

12345