Lines Matching refs:entry
44 char *arch, *entry, *fname; in PHAR_FUNC() local
55 if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) { in PHAR_FUNC()
60 efree(entry); in PHAR_FUNC()
61 entry = estrndup(filename, filename_len); in PHAR_FUNC()
65 entry = phar_fix_filepath(entry, &entry_len, 1); in PHAR_FUNC()
67 if (entry[0] == '/') { in PHAR_FUNC()
68 spprintf(&name, 4096, "phar://%s%s", arch, entry); in PHAR_FUNC()
70 spprintf(&name, 4096, "phar://%s/%s", arch, entry); in PHAR_FUNC()
72 efree(entry); in PHAR_FUNC()
123 char *arch, *entry, *fname; in PHAR_FUNC() local
134 if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) { in PHAR_FUNC()
138 efree(entry); in PHAR_FUNC()
139 entry = filename; in PHAR_FUNC()
155 if ((entry_str = phar_find_in_include_path(entry, entry_len, NULL))) { in PHAR_FUNC()
164 entry = phar_fix_filepath(estrndup(entry, entry_len), &entry_len, 1); in PHAR_FUNC()
165 if (entry[0] == '/') { in PHAR_FUNC()
166 if (!zend_hash_str_exists(&(phar->manifest), entry + 1, entry_len - 1)) { in PHAR_FUNC()
170 efree(entry); in PHAR_FUNC()
174 if (!zend_hash_str_exists(&(phar->manifest), entry, entry_len)) { in PHAR_FUNC()
179 if (entry[0] == '/') { in PHAR_FUNC()
180 spprintf(&name, 4096, "phar://%s%s", arch, entry); in PHAR_FUNC()
182 spprintf(&name, 4096, "phar://%s/%s", arch, entry); in PHAR_FUNC()
184 if (entry != filename) { in PHAR_FUNC()
185 efree(entry); in PHAR_FUNC()
253 char *arch, *entry, *fname; in PHAR_FUNC() local
265 if (FAILURE == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) { in PHAR_FUNC()
269 efree(entry); in PHAR_FUNC()
270 entry = filename; in PHAR_FUNC()
279 if (!(entry_str = phar_find_in_include_path(entry, entry_len, NULL))) { in PHAR_FUNC()
287 entry = phar_fix_filepath(estrndup(entry, entry_len), &entry_len, 1); in PHAR_FUNC()
288 if (entry[0] == '/') { in PHAR_FUNC()
289 if (!zend_hash_str_exists(&(phar->manifest), entry + 1, entry_len - 1)) { in PHAR_FUNC()
292 efree(entry); in PHAR_FUNC()
297 if (!zend_hash_str_exists(&(phar->manifest), entry, entry_len)) { in PHAR_FUNC()
302 if (entry[0] == '/') { in PHAR_FUNC()
303 spprintf(&name, 4096, "phar://%s%s", arch, entry); in PHAR_FUNC()
305 spprintf(&name, 4096, "phar://%s/%s", arch, entry); in PHAR_FUNC()
307 efree(entry); in PHAR_FUNC()
354 char *arch, *entry, *fname; in PHAR_FUNC() local
366 if (FAILURE == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) { in PHAR_FUNC()
370 efree(entry); in PHAR_FUNC()
371 entry = filename; in PHAR_FUNC()
380 if (!(entry_str = phar_find_in_include_path(entry, entry_len, NULL))) { in PHAR_FUNC()
388 entry = phar_fix_filepath(estrndup(entry, entry_len), &entry_len, 1); in PHAR_FUNC()
389 if (entry[0] == '/') { in PHAR_FUNC()
390 if (!zend_hash_str_exists(&(phar->manifest), entry + 1, entry_len - 1)) { in PHAR_FUNC()
393 efree(entry); in PHAR_FUNC()
398 if (!zend_hash_str_exists(&(phar->manifest), entry, entry_len)) { in PHAR_FUNC()
404 if (entry[0] == '/') { in PHAR_FUNC()
405 spprintf(&name, 4096, "phar://%s%s", arch, entry); in PHAR_FUNC()
407 spprintf(&name, 4096, "phar://%s/%s", arch, entry); in PHAR_FUNC()
409 efree(entry); in PHAR_FUNC()
597 char *arch, *entry, *fname; in phar_file_stat() local
615 entry = estrndup(filename, filename_length); in phar_file_stat()
621 if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) { in phar_file_stat()
623 efree(entry); in phar_file_stat()
624 entry = estrndup(filename, filename_length); in phar_file_stat()
629 efree(entry); in phar_file_stat()
633 entry = phar_fix_filepath(entry, &entry_len, 1); in phar_file_stat()
634 if (entry[0] == '/') { in phar_file_stat()
635 if (NULL != (data = zend_hash_str_find_ptr(&(phar->manifest), entry + 1, entry_len - 1))) { in phar_file_stat()
636 efree(entry); in phar_file_stat()
641 if (NULL != (data = zend_hash_str_find_ptr(&(phar->manifest), entry, entry_len))) { in phar_file_stat()
642 efree(entry); in phar_file_stat()
645 if (zend_hash_str_exists(&(phar->virtual_dirs), entry, entry_len)) { in phar_file_stat()
646 efree(entry); in phar_file_stat()
663 efree(entry); in phar_file_stat()
667 entry = estrndup(filename, filename_length); in phar_file_stat()
672 entry = phar_fix_filepath(entry, &entry_len, 1); in phar_file_stat()
673 if (NULL != (data = zend_hash_str_find_ptr(&(phar->manifest), entry + 1, entry_len - 1))) { in phar_file_stat()
676 efree(entry); in phar_file_stat()
683 if (zend_hash_str_exists(&(phar->virtual_dirs), entry + 1, entry_len - 1)) { in phar_file_stat()
686 efree(entry); in phar_file_stat()
701 efree(entry); in phar_file_stat()
853 char *arch, *entry, *fname; in PharFileFunction() local
864 if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) { in PharFileFunction()
867 efree(entry); in PharFileFunction()
868 entry = filename; in PharFileFunction()
875 entry = phar_fix_filepath(estrndup(entry, entry_len), &entry_len, 1); in PharFileFunction()
876 if (entry[0] == '/') { in PharFileFunction()
877 if (NULL != (etemp = zend_hash_str_find_ptr(&(phar->manifest), entry + 1, entry_len - 1))) { in PharFileFunction()
880 efree(entry); in PharFileFunction()
885 if (NULL != (etemp = zend_hash_str_find_ptr(&(phar->manifest), entry, entry_len))) { in PharFileFunction()
890 if (entry != filename) { in PharFileFunction()
891 efree(entry); in PharFileFunction()
920 char *arch, *entry, *fname; in PHAR_FUNC() local
931 if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) { in PHAR_FUNC()
934 efree(entry); in PHAR_FUNC()
935 entry = filename; in PHAR_FUNC()
942 entry = phar_fix_filepath(estrndup(entry, entry_len), &entry_len, 1); in PHAR_FUNC()
943 if (entry[0] == '/') { in PHAR_FUNC()
944 if (NULL != (etemp = zend_hash_str_find_ptr(&(phar->manifest), entry + 1, entry_len - 1))) { in PHAR_FUNC()
947 efree(entry); in PHAR_FUNC()
952 if (NULL != (etemp = zend_hash_str_find_ptr(&(phar->manifest), entry, entry_len))) { in PHAR_FUNC()
957 efree(entry); in PHAR_FUNC()