Lines Matching refs:entry
173 char *entry, *found, *save; in phar_make_dirstream() local
217 entry = (char *) safe_emalloc(found - ZSTR_VAL(str_key), 1, 1); in phar_make_dirstream()
218 memcpy(entry, ZSTR_VAL(str_key), found - ZSTR_VAL(str_key)); in phar_make_dirstream()
220 entry[keylen] = '\0'; in phar_make_dirstream()
222 entry = (char *) safe_emalloc(keylen, 1, 1); in phar_make_dirstream()
223 memcpy(entry, ZSTR_VAL(str_key), keylen); in phar_make_dirstream()
224 entry[keylen] = '\0'; in phar_make_dirstream()
251 entry = (char *) safe_emalloc(found - save + dirlen, 1, 1); in phar_make_dirstream()
252 memcpy(entry, save + dirlen + 1, found - save - dirlen - 1); in phar_make_dirstream()
254 entry[keylen] = '\0'; in phar_make_dirstream()
258 entry = (char *) safe_emalloc(keylen - dirlen, 1, 1); in phar_make_dirstream()
259 memcpy(entry, save + dirlen + 1, keylen - dirlen - 1); in phar_make_dirstream()
260 entry[keylen - dirlen - 1] = '\0'; in phar_make_dirstream()
265 phar_add_empty(data, entry, keylen); in phar_make_dirstream()
268 efree(entry); in phar_make_dirstream()
297 phar_entry_info *entry = NULL; in phar_wrapper_open_dir() local
355 …if (NULL != (entry = zend_hash_str_find_ptr(&phar->manifest, internal_file, strlen(internal_file))… in phar_wrapper_open_dir()
358 } else if (entry && entry->is_dir) { in phar_wrapper_open_dir()
359 if (entry->is_mounted) { in phar_wrapper_open_dir()
361 return php_stream_opendir(entry->tmp, options, context); in phar_wrapper_open_dir()
399 phar_entry_info entry, *e; in phar_wrapper_mkdir() local
482 memset((void *) &entry, 0, sizeof(phar_entry_info)); in phar_wrapper_mkdir()
486 entry.is_zip = 1; in phar_wrapper_mkdir()
489 entry.filename = estrdup(ZSTR_VAL(resource->path) + 1); in phar_wrapper_mkdir()
492 entry.is_tar = 1; in phar_wrapper_mkdir()
493 entry.tar_type = TAR_DIR; in phar_wrapper_mkdir()
496 entry.filename_len = ZSTR_LEN(resource->path) - 1; in phar_wrapper_mkdir()
498 entry.is_dir = 1; in phar_wrapper_mkdir()
499 entry.phar = phar; in phar_wrapper_mkdir()
500 entry.is_modified = 1; in phar_wrapper_mkdir()
501 entry.is_crc_checked = 1; in phar_wrapper_mkdir()
502 entry.flags = PHAR_ENT_PERM_DEF_DIR; in phar_wrapper_mkdir()
503 entry.old_flags = PHAR_ENT_PERM_DEF_DIR; in phar_wrapper_mkdir()
505 …if (NULL == zend_hash_str_add_mem(&phar->manifest, entry.filename, entry.filename_len, (void*)&ent… in phar_wrapper_mkdir()
506 …annot create directory \"%s\" in phar \"%s\", adding to manifest failed", entry.filename, phar->fn… in phar_wrapper_mkdir()
508 efree(entry.filename); in phar_wrapper_mkdir()
515 …options, "phar error: cannot create directory \"%s\" in phar \"%s\", %s", entry.filename, phar->fn… in phar_wrapper_mkdir()
516 zend_hash_str_del(&phar->manifest, entry.filename, entry.filename_len); in phar_wrapper_mkdir()
521 phar_add_virtual_dirs(phar, entry.filename, entry.filename_len); in phar_wrapper_mkdir()
531 phar_entry_info *entry; in phar_wrapper_rmdir() local
587 …if (!(entry = phar_get_entry_info_dir(phar, ZSTR_VAL(resource->path) + 1, path_len, 2, &error, 1))… in phar_wrapper_rmdir()
598 if (!entry->is_deleted) { in phar_wrapper_rmdir()
607 if (entry->is_temp_dir) { in phar_wrapper_rmdir()
608 efree(entry->filename); in phar_wrapper_rmdir()
609 efree(entry); in phar_wrapper_rmdir()
624 if (entry->is_temp_dir) { in phar_wrapper_rmdir()
625 efree(entry->filename); in phar_wrapper_rmdir()
626 efree(entry); in phar_wrapper_rmdir()
634 if (entry->is_temp_dir) { in phar_wrapper_rmdir()
636 efree(entry->filename); in phar_wrapper_rmdir()
637 efree(entry); in phar_wrapper_rmdir()
639 entry->is_deleted = 1; in phar_wrapper_rmdir()
640 entry->is_modified = 1; in phar_wrapper_rmdir()
644 …options, "phar error: cannot remove directory \"%s\" in phar \"%s\", %s", entry->filename, phar->f… in phar_wrapper_rmdir()