Searched refs:entry (Results 1 - 25 of 113) 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/ext/zip/lib/
H A Dzip_delete.c60 za->entry[idx].deleted = 1;
H A Dzip_file_replace.c80 /* create and use new entry, used by zip_add */
89 _zip_entry_finalize(za->entry+idx);
97 _zip_unchange_data(za->entry+idx);
99 if (za->entry[idx].orig != NULL && (za->entry[idx].changes == NULL || (za->entry[idx].changes->changed & ZIP_DIRENT_COMP_METHOD) == 0)) {
100 if (za->entry[idx].changes == NULL) {
101 if ((za->entry[idx].changes=_zip_dirent_clone(za->entry[idx].orig)) == NULL) {
107 za->entry[id
[all...]
H A Dzip_get_num_entries.c52 while (n>0 && za->entry[n-1].orig == NULL)
H A Dzip_unchange.c63 if (!allow_duplicates && za->entry[idx].changes && (za->entry[idx].changes->changed & ZIP_DIRENT_FILENAME)) {
71 _zip_dirent_free(za->entry[idx].changes);
72 za->entry[idx].changes = NULL;
74 _zip_unchange_data(za->entry+idx);
H A Dzip_add_entry.c55 rentries = (struct zip_entry *)realloc(za->entry, sizeof(struct zip_entry) * (size_t)nalloc);
60 za->entry = rentries;
66 _zip_entry_init(za->entry+idx);
H A Dzip_discard.c66 if (za->entry) {
68 _zip_entry_finalize(za->entry+i);
69 free(za->entry);
H A Dzip_stat_index.c57 && ZIP_ENTRY_DATA_CHANGED(za->entry+index)) {
58 if (zip_source_stat(za->entry[index].source, st) < 0) {
/PHP_TRUNK/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) {
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 Drfc1867.c378 /* Free header entry */
411 mime_header_entry prev_entry = {0}, entry; local
440 entry.value = estrdup(value);
441 entry.key = estrdup(key);
448 entry.value = emalloc(prev_len + cur_len + 1);
449 memcpy(entry.value, prev_entry.value, prev_len);
450 memcpy(entry.value + prev_len, line, cur_len);
451 entry.value[cur_len + prev_len] = '\0';
453 entry.key = estrdup(prev_entry.key);
460 zend_llist_add_element(header, &entry);
469 mime_header_entry *entry; local
[all...]
/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/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
147 zend_accel_hash_entry *entry; local
175 zend_accel_hash_entry *entry; local
200 zend_accel_hash_entry *entry, *last_entry=NULL; 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
414 phar_entry_info entry, *e; local
546 phar_entry_info *entry; local
[all...]
H A Dphar_internal.h230 /* temporary manifest entry (file outside of the phar mapped to a location inside the phar)
231 this entry stores the stream to open in link (normally used for tars, but we steal it here) */
235 /* entry for one file in a phar file */
346 static inline php_stream *phar_get_entrypfp(phar_entry_info *entry TSRMLS_DC)
348 if (!entry->is_persistent) {
349 return entry->phar->fp;
351 return PHAR_GLOBALS->cached_fp[entry->phar->phar_pos].fp;
354 static inline php_stream *phar_get_entrypufp(phar_entry_info *entry TSRMLS_DC)
356 if (!entry->is_persistent) {
357 return entry
362 phar_set_entrypfp(phar_entry_info *entry, php_stream *fp TSRMLS_DC) argument
372 phar_set_entrypufp(phar_entry_info *entry, php_stream *fp TSRMLS_DC) argument
418 phar_set_fp_type(phar_entry_info *entry, enum phar_fp_type type, zend_off_t offset TSRMLS_DC) argument
490 phar_entry_info *entry; member in union:_phar_entry_object
[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;
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 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
678 phar_tar_writeheaders_int(phar_entry_info *entry, void *argument TSRMLS_DC) argument
832 phar_tar_setmetadata(zval *metadata, phar_entry_info *entry, char **error TSRMLS_DC) argument
873 phar_entry_info *entry = (phar_entry_info *)Z_PTR_P(zv), *metadata, newentry = {0}; local
926 phar_entry_info entry = {0}; 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
290 entry.phar = mydata;
291 entry
786 phar_zip_changed_apply_int(phar_entry_info *entry, void *arg TSRMLS_DC) argument
1109 phar_entry_info entry = {0}; local
1191 phar_entry_info entry = {0}; 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 TSRMLS_DC) /* {{{ */
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 TSRMLS_D
90 phar_get_efp(phar_entry_info *entry, int follow_links TSRMLS_DC) argument
120 phar_seek_efp(phar_entry_info *entry, zend_off_t offset, int whence, zend_off_t position, int follow_links TSRMLS_DC) argument
172 phar_entry_info entry = {0}; local
255 char *path, *fname, *arch, *entry, *ret, *test; local
356 phar_entry_info *entry; local
517 phar_entry_info *entry, etemp; local
691 phar_open_entry_fp(phar_entry_info *entry, char **error, int follow_links TSRMLS_DC) argument
807 phar_create_writeable_entry(phar_archive_data *phar, phar_entry_info *entry, char **error TSRMLS_DC) argument
860 phar_separate_entry_fp(phar_entry_info *entry, char **error TSRMLS_DC) argument
909 phar_open_jit(phar_archive_data *phar, phar_entry_info *entry, char **error TSRMLS_DC) argument
1165 phar_compress_filter(phar_entry_info * entry, int return_unknown) argument
1181 phar_decompress_filter(phar_entry_info * entry, int return_unknown) argument
1218 phar_entry_info *entry; local
1937 phar_entry_info *entry = (phar_entry_info *)Z_PTR_P(data); 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);
120 char *arch, *entry, *fname; local
245 char *arch, *entry, *fname; local
341 char *arch, *entry, *fname; local
612 char *arch, *entry, *fname; local
906 char *arch, *entry, *fname; local
973 char *arch, *entry, *fname; local
[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) {
337 phar_entry_info *entry = (phar_entry_info *) Z_PTR_P(zv); local
339 if (entry->fp_type != PHAR_TMP) {
343 if (entry->fp && !entry->fp_refcount) {
344 php_stream_close(entry->fp);
345 entry->fp = NULL;
361 /* first, iterate over the manifest and close all PHAR_TMP entry f
379 destroy_phar_manifest_entry_int(phar_entry_info *entry) argument
429 phar_entry_info *entry = Z_PTR_P(zv); local
669 phar_entry_info entry; local
2234 phar_split_fname(const char *filename, int filename_len, char **arch, int *arch_len, char **entry, int *entry_len, int executable, int for_create TSRMLS_DC) argument
2380 phar_entry_info *entry = idata->internal_file; local
2473 phar_entry_info *entry = (phar_entry_info *)Z_PTR_P(zv); local
2541 phar_entry_info *entry, *newentry; 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
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 TSRMLS_DC) /* {{{ */ 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 TSRMLS_DC) 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 TSRMLS_DC) argument
353 phar_postprocess_ru_web(char *fname, int fname_len, char **entry, int *entry_len, char **ru, int *ru_len TSRMLS_DC) argument
420 char *fname, *arch, *entry; local
457 char *fname, *arch = NULL, *entry = NULL, *path, *actual; local
550 char *fname, *path_info, *mime_type = NULL, *entry, *pt; local
1295 char *fname, *error, *zname, *arch, *entry; local
1945 phar_copy_file_contents(phar_entry_info *entry, php_stream *fp TSRMLS_DC) argument
2189 phar_entry_info *entry, newentry; local
2563 phar_entry_info *entry; local
3083 phar_entry_info *entry = (phar_entry_info *)Z_PTR_P(zv); local
3100 phar_entry_info *entry = (phar_entry_info *)Z_PTR_P(zv); local
3482 phar_entry_info *entry; local
3520 phar_entry_info *entry; local
3702 phar_entry_info *entry; local
4047 phar_extract_file(zend_bool overwrite, phar_entry_info *entry, char *dest, int dest_len, char **error TSRMLS_DC) argument
4199 phar_entry_info *entry; local
4334 char *fname, *arch, *entry, *error; 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
279 ancillary_reg_entry *entry; local
[all...]
/PHP_TRUNK/ext/standard/
H A Darray.c785 zval *entry; local
800 if ((entry = zend_hash_get_current_data(array)) == NULL) {
804 if (Z_TYPE_P(entry) == IS_INDIRECT) {
805 entry = Z_INDIRECT_P(entry);
808 RETURN_ZVAL_FAST(entry);
818 zval *entry; local
833 if ((entry = zend_hash_get_current_data(array)) == NULL) {
837 if (Z_TYPE_P(entry) == IS_INDIRECT) {
838 entry
851 zval *entry; local
884 zval *entry; local
917 zval *entry; local
1231 *entry, /* pointer to array entry */ local
1361 zval *entry; local
1486 zend_set_local_var(Z_STR(final_name), entry, 1 TSRMLS_CC); local
1598 zval *keys, *val, *entry; local
1867 zval *entry; /* Hash entry */ local
2227 *entry; /* An array entry */ local
2297 zend_hash_add_new(Z_ARRVAL_P(return_value), string_key, entry); local
2300 zend_hash_index_add_new(Z_ARRVAL_P(return_value), num_key, entry); local
2302 zend_hash_next_index_insert_new(Z_ARRVAL_P(return_value), entry); local
2565 *entry, /* An entry in the input array */ local
2623 *entry; /* An entry in the input array */ local
2635 zend_hash_next_index_insert_new(Z_ARRVAL_P(return_value), entry); local
2645 *entry, /* An entry in the input array */ local
2779 *entry; /* An entry in the input array */ local
2795 zend_hash_add_new(Z_ARRVAL_P(return_value), string_key, entry); local
2798 zend_hash_index_add_new(Z_ARRVAL_P(return_value), num_key, entry); local
2800 zend_hash_next_index_insert_new(Z_ARRVAL_P(return_value), entry); local
2879 zval *array, *entry, data; local
2915 zval *array, *entry; local
2931 zend_hash_index_update(Z_ARRVAL_P(return_value), num_key, entry); local
2939 zend_hash_update(Z_ARRVAL_P(return_value), new_key, entry); local
4206 *entry, local
4231 *entry, local
4634 zval *entry; local
4666 zend_hash_update(Z_ARRVAL(chunk), str_key, entry); local
[all...]

Completed in 42 milliseconds

12345