Lines Matching refs:entry
156 char *entry; in phar_make_dirstream() local
188 entry = safe_emalloc(keylen, 1, 1); in phar_make_dirstream()
189 memcpy(entry, ZSTR_VAL(str_key), keylen); in phar_make_dirstream()
190 entry[keylen] = '\0'; in phar_make_dirstream()
211 entry = safe_emalloc(has_slash - save + dirlen, 1, 1); in phar_make_dirstream()
212 memcpy(entry, save + dirlen + 1, has_slash - save - dirlen - 1); in phar_make_dirstream()
214 entry[keylen] = '\0'; in phar_make_dirstream()
218 entry = safe_emalloc(keylen - dirlen, 1, 1); in phar_make_dirstream()
219 memcpy(entry, save + dirlen + 1, keylen - dirlen - 1); in phar_make_dirstream()
220 entry[keylen - dirlen - 1] = '\0'; in phar_make_dirstream()
234 zend_hash_str_update(data, entry, keylen, &dummy); in phar_make_dirstream()
237 efree(entry); in phar_make_dirstream()
311 phar_entry_info *entry = zend_hash_str_find_ptr(&phar->manifest, internal_file, internal_file_len); in phar_wrapper_open_dir() local
314 if (NULL != entry && !entry->is_dir) { in phar_wrapper_open_dir()
317 } else if (entry && entry->is_dir) { in phar_wrapper_open_dir()
318 if (entry->is_mounted) { in phar_wrapper_open_dir()
319 ret = php_stream_opendir(entry->tmp, options, context); in phar_wrapper_open_dir()
350 phar_entry_info entry, *e; in phar_wrapper_mkdir() local
430 memset((void *) &entry, 0, sizeof(phar_entry_info)); in phar_wrapper_mkdir()
434 entry.is_zip = 1; in phar_wrapper_mkdir()
437 entry.filename = estrdup(ZSTR_VAL(resource->path) + 1); in phar_wrapper_mkdir()
440 entry.is_tar = 1; in phar_wrapper_mkdir()
441 entry.tar_type = TAR_DIR; in phar_wrapper_mkdir()
444 entry.filename_len = ZSTR_LEN(resource->path) - 1; in phar_wrapper_mkdir()
446 entry.is_dir = 1; in phar_wrapper_mkdir()
447 entry.phar = phar; in phar_wrapper_mkdir()
448 entry.is_modified = 1; in phar_wrapper_mkdir()
449 entry.is_crc_checked = 1; in phar_wrapper_mkdir()
450 entry.flags = PHAR_ENT_PERM_DEF_DIR; in phar_wrapper_mkdir()
451 entry.old_flags = PHAR_ENT_PERM_DEF_DIR; in phar_wrapper_mkdir()
453 …if (NULL == zend_hash_str_add_mem(&phar->manifest, entry.filename, entry.filename_len, (void*)&ent… in phar_wrapper_mkdir()
454 …annot create directory \"%s\" in phar \"%s\", adding to manifest failed", entry.filename, phar->fn… in phar_wrapper_mkdir()
456 efree(entry.filename); in phar_wrapper_mkdir()
463 …options, "phar error: cannot create directory \"%s\" in phar \"%s\", %s", entry.filename, phar->fn… in phar_wrapper_mkdir()
464 zend_hash_str_del(&phar->manifest, entry.filename, entry.filename_len); in phar_wrapper_mkdir()
469 phar_add_virtual_dirs(phar, entry.filename, entry.filename_len); in phar_wrapper_mkdir()
479 phar_entry_info *entry; in phar_wrapper_rmdir() local
529 …if (!(entry = phar_get_entry_info_dir(phar, ZSTR_VAL(resource->path) + 1, path_len, 2, &error, 1))… in phar_wrapper_rmdir()
540 if (!entry->is_deleted) { in phar_wrapper_rmdir()
549 if (entry->is_temp_dir) { in phar_wrapper_rmdir()
550 efree(entry->filename); in phar_wrapper_rmdir()
551 efree(entry); in phar_wrapper_rmdir()
565 if (entry->is_temp_dir) { in phar_wrapper_rmdir()
566 efree(entry->filename); in phar_wrapper_rmdir()
567 efree(entry); in phar_wrapper_rmdir()
575 if (entry->is_temp_dir) { in phar_wrapper_rmdir()
577 efree(entry->filename); in phar_wrapper_rmdir()
578 efree(entry); in phar_wrapper_rmdir()
580 entry->is_deleted = 1; in phar_wrapper_rmdir()
581 entry->is_modified = 1; in phar_wrapper_rmdir()
585 …options, "phar error: cannot remove directory \"%s\" in phar \"%s\", %s", entry->filename, phar->f… in phar_wrapper_rmdir()