Lines Matching refs:entry

185 	char *entry, *found, *save;  in phar_make_dirstream()  local
229 entry = (char *) safe_emalloc(found - ZSTR_VAL(str_key), 1, 1); in phar_make_dirstream()
230 memcpy(entry, ZSTR_VAL(str_key), found - ZSTR_VAL(str_key)); in phar_make_dirstream()
232 entry[keylen] = '\0'; in phar_make_dirstream()
234 entry = (char *) safe_emalloc(keylen, 1, 1); in phar_make_dirstream()
235 memcpy(entry, ZSTR_VAL(str_key), keylen); in phar_make_dirstream()
236 entry[keylen] = '\0'; in phar_make_dirstream()
263 entry = (char *) safe_emalloc(found - save + dirlen, 1, 1); in phar_make_dirstream()
264 memcpy(entry, save + dirlen + 1, found - save - dirlen - 1); in phar_make_dirstream()
266 entry[keylen] = '\0'; in phar_make_dirstream()
270 entry = (char *) safe_emalloc(keylen - dirlen, 1, 1); in phar_make_dirstream()
271 memcpy(entry, save + dirlen + 1, keylen - dirlen - 1); in phar_make_dirstream()
272 entry[keylen - dirlen - 1] = '\0'; in phar_make_dirstream()
277 phar_add_empty(data, entry, keylen); in phar_make_dirstream()
280 efree(entry); in phar_make_dirstream()
312 phar_entry_info *entry = NULL; in phar_wrapper_open_dir() local
370 …if (NULL != (entry = zend_hash_str_find_ptr(&phar->manifest, internal_file, strlen(internal_file))… in phar_wrapper_open_dir()
373 } else if (entry && entry->is_dir) { in phar_wrapper_open_dir()
374 if (entry->is_mounted) { in phar_wrapper_open_dir()
376 return php_stream_opendir(entry->tmp, options, context); in phar_wrapper_open_dir()
414 phar_entry_info entry, *e; in phar_wrapper_mkdir() local
497 memset((void *) &entry, 0, sizeof(phar_entry_info)); in phar_wrapper_mkdir()
501 entry.is_zip = 1; in phar_wrapper_mkdir()
504 entry.filename = estrdup(ZSTR_VAL(resource->path) + 1); in phar_wrapper_mkdir()
507 entry.is_tar = 1; in phar_wrapper_mkdir()
508 entry.tar_type = TAR_DIR; in phar_wrapper_mkdir()
511 entry.filename_len = ZSTR_LEN(resource->path) - 1; in phar_wrapper_mkdir()
513 entry.is_dir = 1; in phar_wrapper_mkdir()
514 entry.phar = phar; in phar_wrapper_mkdir()
515 entry.is_modified = 1; in phar_wrapper_mkdir()
516 entry.is_crc_checked = 1; in phar_wrapper_mkdir()
517 entry.flags = PHAR_ENT_PERM_DEF_DIR; in phar_wrapper_mkdir()
518 entry.old_flags = PHAR_ENT_PERM_DEF_DIR; in phar_wrapper_mkdir()
520 …if (NULL == zend_hash_str_add_mem(&phar->manifest, entry.filename, entry.filename_len, (void*)&ent… in phar_wrapper_mkdir()
521 …annot create directory \"%s\" in phar \"%s\", adding to manifest failed", entry.filename, phar->fn… in phar_wrapper_mkdir()
523 efree(entry.filename); in phar_wrapper_mkdir()
530 …options, "phar error: cannot create directory \"%s\" in phar \"%s\", %s", entry.filename, phar->fn… in phar_wrapper_mkdir()
531 zend_hash_str_del(&phar->manifest, entry.filename, entry.filename_len); in phar_wrapper_mkdir()
536 phar_add_virtual_dirs(phar, entry.filename, entry.filename_len); in phar_wrapper_mkdir()
546 phar_entry_info *entry; in phar_wrapper_rmdir() local
602 …if (!(entry = phar_get_entry_info_dir(phar, ZSTR_VAL(resource->path) + 1, path_len, 2, &error, 1))… in phar_wrapper_rmdir()
613 if (!entry->is_deleted) { in phar_wrapper_rmdir()
622 if (entry->is_temp_dir) { in phar_wrapper_rmdir()
623 efree(entry->filename); in phar_wrapper_rmdir()
624 efree(entry); in phar_wrapper_rmdir()
639 if (entry->is_temp_dir) { in phar_wrapper_rmdir()
640 efree(entry->filename); in phar_wrapper_rmdir()
641 efree(entry); in phar_wrapper_rmdir()
649 if (entry->is_temp_dir) { in phar_wrapper_rmdir()
651 efree(entry->filename); in phar_wrapper_rmdir()
652 efree(entry); in phar_wrapper_rmdir()
654 entry->is_deleted = 1; in phar_wrapper_rmdir()
655 entry->is_modified = 1; in phar_wrapper_rmdir()
659 …options, "phar error: cannot remove directory \"%s\" in phar \"%s\", %s", entry->filename, phar->f… in phar_wrapper_rmdir()