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
354 …if (NULL != (entry = zend_hash_str_find_ptr(&phar->manifest, internal_file, strlen(internal_file))… in phar_wrapper_open_dir()
357 } else if (entry && entry->is_dir) { in phar_wrapper_open_dir()
358 if (entry->is_mounted) { in phar_wrapper_open_dir()
360 return php_stream_opendir(entry->tmp, options, context); in phar_wrapper_open_dir()
398 phar_entry_info entry, *e; in phar_wrapper_mkdir() local
480 memset((void *) &entry, 0, sizeof(phar_entry_info)); in phar_wrapper_mkdir()
484 entry.is_zip = 1; in phar_wrapper_mkdir()
487 entry.filename = estrdup(ZSTR_VAL(resource->path) + 1); in phar_wrapper_mkdir()
490 entry.is_tar = 1; in phar_wrapper_mkdir()
491 entry.tar_type = TAR_DIR; in phar_wrapper_mkdir()
494 entry.filename_len = ZSTR_LEN(resource->path) - 1; in phar_wrapper_mkdir()
496 entry.is_dir = 1; in phar_wrapper_mkdir()
497 entry.phar = phar; in phar_wrapper_mkdir()
498 entry.is_modified = 1; in phar_wrapper_mkdir()
499 entry.is_crc_checked = 1; in phar_wrapper_mkdir()
500 entry.flags = PHAR_ENT_PERM_DEF_DIR; in phar_wrapper_mkdir()
501 entry.old_flags = PHAR_ENT_PERM_DEF_DIR; in phar_wrapper_mkdir()
503 …if (NULL == zend_hash_str_add_mem(&phar->manifest, entry.filename, entry.filename_len, (void*)&ent… in phar_wrapper_mkdir()
504 …annot create directory \"%s\" in phar \"%s\", adding to manifest failed", entry.filename, phar->fn… in phar_wrapper_mkdir()
506 efree(entry.filename); in phar_wrapper_mkdir()
513 …options, "phar error: cannot create directory \"%s\" in phar \"%s\", %s", entry.filename, phar->fn… in phar_wrapper_mkdir()
514 zend_hash_str_del(&phar->manifest, entry.filename, entry.filename_len); in phar_wrapper_mkdir()
519 phar_add_virtual_dirs(phar, entry.filename, entry.filename_len); in phar_wrapper_mkdir()
529 phar_entry_info *entry; in phar_wrapper_rmdir() local
583 …if (!(entry = phar_get_entry_info_dir(phar, ZSTR_VAL(resource->path) + 1, path_len, 2, &error, 1))… in phar_wrapper_rmdir()
594 if (!entry->is_deleted) { in phar_wrapper_rmdir()
603 if (entry->is_temp_dir) { in phar_wrapper_rmdir()
604 efree(entry->filename); in phar_wrapper_rmdir()
605 efree(entry); in phar_wrapper_rmdir()
620 if (entry->is_temp_dir) { in phar_wrapper_rmdir()
621 efree(entry->filename); in phar_wrapper_rmdir()
622 efree(entry); in phar_wrapper_rmdir()
630 if (entry->is_temp_dir) { in phar_wrapper_rmdir()
632 efree(entry->filename); in phar_wrapper_rmdir()
633 efree(entry); in phar_wrapper_rmdir()
635 entry->is_deleted = 1; in phar_wrapper_rmdir()
636 entry->is_modified = 1; in phar_wrapper_rmdir()
640 …options, "phar error: cannot remove directory \"%s\" in phar \"%s\", %s", entry->filename, phar->f… in phar_wrapper_rmdir()