Lines Matching refs:entry

193 	char *entry, *found, *save, *str_key;  in phar_make_dirstream()  local
239 entry = (char *) safe_emalloc(found - str_key, 1, 1); in phar_make_dirstream()
240 memcpy(entry, str_key, found - str_key); in phar_make_dirstream()
242 entry[keylen] = '\0'; in phar_make_dirstream()
244 entry = (char *) safe_emalloc(keylen, 1, 1); in phar_make_dirstream()
245 memcpy(entry, str_key, keylen); in phar_make_dirstream()
246 entry[keylen] = '\0'; in phar_make_dirstream()
276 entry = (char *) safe_emalloc(found - save + dirlen, 1, 1); in phar_make_dirstream()
277 memcpy(entry, save + dirlen + 1, found - save - dirlen - 1); in phar_make_dirstream()
279 entry[keylen] = '\0'; in phar_make_dirstream()
283 entry = (char *) safe_emalloc(keylen - dirlen, 1, 1); in phar_make_dirstream()
284 memcpy(entry, save + dirlen + 1, keylen - dirlen - 1); in phar_make_dirstream()
285 entry[keylen - dirlen - 1] = '\0'; in phar_make_dirstream()
291 phar_add_empty(data, entry, keylen); in phar_make_dirstream()
294 efree(entry); in phar_make_dirstream()
327 phar_entry_info *entry = NULL; in phar_wrapper_open_dir() local
385 …sh_find(&phar->manifest, internal_file, strlen(internal_file), (void**)&entry) && !entry->is_dir) { in phar_wrapper_open_dir()
388 } else if (entry && entry->is_dir) { in phar_wrapper_open_dir()
389 if (entry->is_mounted) { in phar_wrapper_open_dir()
391 return php_stream_opendir(entry->tmp, options, context); in phar_wrapper_open_dir()
433 phar_entry_info entry, *e; in phar_wrapper_mkdir() local
516 memset((void *) &entry, 0, sizeof(phar_entry_info)); in phar_wrapper_mkdir()
520 entry.is_zip = 1; in phar_wrapper_mkdir()
523 entry.filename = estrdup(resource->path + 1); in phar_wrapper_mkdir()
526 entry.is_tar = 1; in phar_wrapper_mkdir()
527 entry.tar_type = TAR_DIR; in phar_wrapper_mkdir()
530 entry.filename_len = strlen(resource->path + 1); in phar_wrapper_mkdir()
532 entry.is_dir = 1; in phar_wrapper_mkdir()
533 entry.phar = phar; in phar_wrapper_mkdir()
534 entry.is_modified = 1; in phar_wrapper_mkdir()
535 entry.is_crc_checked = 1; in phar_wrapper_mkdir()
536 entry.flags = PHAR_ENT_PERM_DEF_DIR; in phar_wrapper_mkdir()
537 entry.old_flags = PHAR_ENT_PERM_DEF_DIR; in phar_wrapper_mkdir()
539 …if (SUCCESS != zend_hash_add(&phar->manifest, entry.filename, entry.filename_len, (void*)&entry, s… in phar_wrapper_mkdir()
540 …annot create directory \"%s\" in phar \"%s\", adding to manifest failed", entry.filename, phar->fn… in phar_wrapper_mkdir()
542 efree(entry.filename); in phar_wrapper_mkdir()
549 …RMLS_CC, "phar error: cannot create directory \"%s\" in phar \"%s\", %s", entry.filename, phar->fn… in phar_wrapper_mkdir()
550 zend_hash_del(&phar->manifest, entry.filename, entry.filename_len); in phar_wrapper_mkdir()
555 phar_add_virtual_dirs(phar, entry.filename, entry.filename_len TSRMLS_CC); in phar_wrapper_mkdir()
565 phar_entry_info *entry; in phar_wrapper_rmdir() local
623 …if (!(entry = phar_get_entry_info_dir(phar, resource->path + 1, path_len, 2, &error, 1 TSRMLS_CC))… in phar_wrapper_rmdir()
634 if (!entry->is_deleted) { in phar_wrapper_rmdir()
646 if (entry->is_temp_dir) { in phar_wrapper_rmdir()
647 efree(entry->filename); in phar_wrapper_rmdir()
648 efree(entry); in phar_wrapper_rmdir()
667 if (entry->is_temp_dir) { in phar_wrapper_rmdir()
668 efree(entry->filename); in phar_wrapper_rmdir()
669 efree(entry); in phar_wrapper_rmdir()
678 if (entry->is_temp_dir) { in phar_wrapper_rmdir()
680 efree(entry->filename); in phar_wrapper_rmdir()
681 efree(entry); in phar_wrapper_rmdir()
683 entry->is_deleted = 1; in phar_wrapper_rmdir()
684 entry->is_modified = 1; in phar_wrapper_rmdir()
688 …RMLS_CC, "phar error: cannot remove directory \"%s\" in phar \"%s\", %s", entry->filename, phar->f… in phar_wrapper_rmdir()