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

12345

/PHP_5_6/ext/phar/phar/
H A Dpharcommand.inc82 'typ' => 'entry',
84 'inf' => '<entry> Name of entry to work on (must include PHAR internal directory name if any).'
115 'inf' => '<meta> Meta data to store with entry (serialized php data).'
353 * @param string $arg The argument (the entry)
354 * @return string $arg The entry itself.
664 * @param string $entry The entry point
669 static function phar_add_file(Phar $phar, $level, $entry, $file, $compress, $noloader = false)
671 $entry
[all...]
/PHP_5_6/ext/simplexml/examples/
H A Dxpath.php5 foreach($xpath_result as $entry ) {
6 print "$entry \n";
/PHP_5_6/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_5_6/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_6/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_5_6/ext/phar/
H A Ddirstream.c184 char *entry, *found, *save, *str_key; local
225 /* the entry has a path separator and is a subdirectory */
226 entry = (char *) safe_emalloc(found - str_key, 1, 1);
227 memcpy(entry, str_key, found - str_key);
229 entry[keylen] = '\0';
231 entry = (char *) safe_emalloc(keylen, 1, 1);
232 memcpy(entry, str_key, keylen);
233 entry[keylen] = '\0';
239 /* entry in directory not found */
260 entry
309 phar_entry_info *entry = NULL; local
412 phar_entry_info entry, *e; local
544 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.c53 if (entry->name_length == 14) {
74 if (entry->name_length == 14) {
83 if (entry->name_length == 14) {
338 phar_entry_info *entry = (phar_entry_info *) pDest; local
340 if (entry->fp_type != PHAR_TMP) {
344 if (entry->fp && !entry->fp_refcount) {
345 php_stream_close(entry->fp);
346 entry->fp = NULL;
362 /* first, iterate over the manifest and close all PHAR_TMP entry f
382 phar_entry_info *entry = (phar_entry_info *)pDest; local
664 phar_entry_info entry; local
2230 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
2381 phar_entry_info *entry = idata->internal_file; local
2474 phar_entry_info *entry = (phar_entry_info *)data; local
2542 phar_entry_info *entry, *newentry; 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, off_t offset TSRMLS_DC) argument
497 phar_entry_info *entry; member in struct:_phar_entry_object::__anon190
[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
762 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
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.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, off_t offset, int whence, 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
1169 phar_compress_filter(phar_entry_info * entry, int return_unknown) argument
1185 phar_decompress_filter(phar_entry_info * entry, int return_unknown) argument
1222 phar_entry_info *entry; local
1977 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
766 phar_entry_info *entry; local
1084 phar_entry_info entry = {0}; local
1166 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 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
183 if (entry[0] == '/') {
184 name_len = spprintf(&name, 4096, "phar://%s%s", arch, entry);
186 name_len = spprintf(&name, 4096, "phar://%s/%s", arch, entry);
242 phar_mung_server_vars(arch, entry, entry_le
333 phar_do_403(char *entry, int entry_len TSRMLS_DC) argument
348 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
376 phar_postprocess_ru_web(char *fname, int fname_len, char **entry, int *entry_len, char **ru, int *ru_len TSRMLS_DC) argument
443 char *fname, *arch, *entry; local
477 char *fname, *arch = NULL, *entry = NULL, *path, *actual; local
569 char *fname, *path_info, *mime_type = NULL, *entry, *pt; local
1325 char *fname, *error, *zname, *arch, *entry; local
1976 phar_copy_file_contents(phar_entry_info *entry, php_stream *fp TSRMLS_DC) argument
2221 phar_entry_info *entry, newentry; local
2617 phar_entry_info *entry; local
3136 phar_entry_info *entry = (phar_entry_info *)pDest; local
3153 phar_entry_info *entry = (phar_entry_info *)pDest; local
3540 phar_entry_info *entry; local
3578 phar_entry_info *entry; local
3760 phar_entry_info *entry; local
4107 phar_extract_file(zend_bool overwrite, phar_entry_info *entry, char *dest, int dest_len, char **error TSRMLS_DC) argument
4259 phar_entry_info *entry; local
4401 char *fname, *arch, *entry, *error; local
[all...]
/PHP_5_6/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.c373 /* Free header entry */
406 mime_header_entry prev_entry = {0}, entry; local
435 entry.value = estrdup(value);
436 entry.key = estrdup(key);
443 entry.value = emalloc(prev_len + cur_len + 1);
444 memcpy(entry.value, prev_entry.value, prev_len);
445 memcpy(entry.value + prev_len, line, cur_len);
446 entry.value[cur_len + prev_len] = '\0';
448 entry.key = estrdup(prev_entry.key);
455 zend_llist_add_element(header, &entry);
464 mime_header_entry *entry; local
[all...]
/PHP_5_6/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, 1);
418 entry=entry->next;
429 struct pb_entry *entry; local
439 entry
665 struct pb_entry *entry; local
847 struct pb_entry *entry; local
[all...]
/PHP_5_6/ext/sockets/
H A Dsendrecvmsg.c91 ancillary_reg_entry entry; local
98 entry.size = sizev; \
99 entry.var_el_size = var_size; \
100 entry.calc_space = calc; \
101 entry.from_array = from; \
102 entry.to_array = to; \
106 (void*)&entry, sizeof(entry), NULL)
144 ancillary_reg_entry *entry; local
157 (void**)&entry)
278 ancillary_reg_entry *entry; local
[all...]

Completed in 95 milliseconds

12345