Lines Matching refs:entry
46 char *arch, *entry, *fname; in PHAR_FUNC() local
57 if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) { in PHAR_FUNC()
62 efree(entry); in PHAR_FUNC()
63 entry = estrndup(filename, filename_len); in PHAR_FUNC()
67 entry = phar_fix_filepath(entry, &entry_len, 1); in PHAR_FUNC()
69 if (entry[0] == '/') { in PHAR_FUNC()
70 spprintf(&name, 4096, "phar://%s%s", arch, entry); in PHAR_FUNC()
72 spprintf(&name, 4096, "phar://%s/%s", arch, entry); in PHAR_FUNC()
74 efree(entry); in PHAR_FUNC()
120 char *arch, *entry, *fname; in PHAR_FUNC() local
131 if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) { in PHAR_FUNC()
135 efree(entry); in PHAR_FUNC()
136 entry = filename; in PHAR_FUNC()
152 if ((entry_str = phar_find_in_include_path(entry, entry_len, NULL))) { in PHAR_FUNC()
161 entry = phar_fix_filepath(estrndup(entry, entry_len), &entry_len, 1); in PHAR_FUNC()
162 if (entry[0] == '/') { in PHAR_FUNC()
163 if (!zend_hash_str_exists(&(phar->manifest), entry + 1, entry_len - 1)) { in PHAR_FUNC()
167 efree(entry); in PHAR_FUNC()
171 if (!zend_hash_str_exists(&(phar->manifest), entry, entry_len)) { in PHAR_FUNC()
176 if (entry[0] == '/') { in PHAR_FUNC()
177 spprintf(&name, 4096, "phar://%s%s", arch, entry); in PHAR_FUNC()
179 spprintf(&name, 4096, "phar://%s/%s", arch, entry); in PHAR_FUNC()
181 if (entry != filename) { in PHAR_FUNC()
182 efree(entry); in PHAR_FUNC()
250 char *arch, *entry, *fname; in PHAR_FUNC() local
262 if (FAILURE == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) { in PHAR_FUNC()
266 efree(entry); in PHAR_FUNC()
267 entry = filename; in PHAR_FUNC()
276 if (!(entry_str = phar_find_in_include_path(entry, entry_len, NULL))) { in PHAR_FUNC()
284 entry = phar_fix_filepath(estrndup(entry, entry_len), &entry_len, 1); in PHAR_FUNC()
285 if (entry[0] == '/') { in PHAR_FUNC()
286 if (!zend_hash_str_exists(&(phar->manifest), entry + 1, entry_len - 1)) { in PHAR_FUNC()
289 efree(entry); in PHAR_FUNC()
294 if (!zend_hash_str_exists(&(phar->manifest), entry, entry_len)) { in PHAR_FUNC()
299 if (entry[0] == '/') { in PHAR_FUNC()
300 spprintf(&name, 4096, "phar://%s%s", arch, entry); in PHAR_FUNC()
302 spprintf(&name, 4096, "phar://%s/%s", arch, entry); in PHAR_FUNC()
304 efree(entry); in PHAR_FUNC()
351 char *arch, *entry, *fname; in PHAR_FUNC() local
363 if (FAILURE == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) { in PHAR_FUNC()
367 efree(entry); in PHAR_FUNC()
368 entry = filename; in PHAR_FUNC()
377 if (!(entry_str = phar_find_in_include_path(entry, entry_len, NULL))) { in PHAR_FUNC()
385 entry = phar_fix_filepath(estrndup(entry, entry_len), &entry_len, 1); in PHAR_FUNC()
386 if (entry[0] == '/') { in PHAR_FUNC()
387 if (!zend_hash_str_exists(&(phar->manifest), entry + 1, entry_len - 1)) { in PHAR_FUNC()
390 efree(entry); in PHAR_FUNC()
395 if (!zend_hash_str_exists(&(phar->manifest), entry, entry_len)) { in PHAR_FUNC()
401 if (entry[0] == '/') { in PHAR_FUNC()
402 spprintf(&name, 4096, "phar://%s%s", arch, entry); in PHAR_FUNC()
404 spprintf(&name, 4096, "phar://%s/%s", arch, entry); in PHAR_FUNC()
406 efree(entry); in PHAR_FUNC()
595 char *arch, *entry, *fname; in phar_file_stat() local
613 entry = estrndup(filename, filename_length); in phar_file_stat()
619 if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) { in phar_file_stat()
621 efree(entry); in phar_file_stat()
622 entry = estrndup(filename, filename_length); in phar_file_stat()
627 efree(entry); in phar_file_stat()
631 entry = phar_fix_filepath(entry, &entry_len, 1); in phar_file_stat()
632 if (entry[0] == '/') { in phar_file_stat()
633 if (NULL != (data = zend_hash_str_find_ptr(&(phar->manifest), entry + 1, entry_len - 1))) { in phar_file_stat()
634 efree(entry); in phar_file_stat()
639 if (NULL != (data = zend_hash_str_find_ptr(&(phar->manifest), entry, entry_len))) { in phar_file_stat()
640 efree(entry); in phar_file_stat()
643 if (zend_hash_str_exists(&(phar->virtual_dirs), entry, entry_len)) { in phar_file_stat()
644 efree(entry); in phar_file_stat()
661 efree(entry); in phar_file_stat()
665 entry = estrndup(filename, filename_length); in phar_file_stat()
670 entry = phar_fix_filepath(entry, &entry_len, 1); in phar_file_stat()
671 if (NULL != (data = zend_hash_str_find_ptr(&(phar->manifest), entry + 1, entry_len - 1))) { in phar_file_stat()
674 efree(entry); in phar_file_stat()
681 if (zend_hash_str_exists(&(phar->virtual_dirs), entry + 1, entry_len - 1)) { in phar_file_stat()
684 efree(entry); in phar_file_stat()
699 efree(entry); in phar_file_stat()
865 char *arch, *entry, *fname; in PharFileFunction() local
876 if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) { in PharFileFunction()
879 efree(entry); in PharFileFunction()
880 entry = filename; in PharFileFunction()
887 entry = phar_fix_filepath(estrndup(entry, entry_len), &entry_len, 1); in PharFileFunction()
888 if (entry[0] == '/') { in PharFileFunction()
889 if (NULL != (etemp = zend_hash_str_find_ptr(&(phar->manifest), entry + 1, entry_len - 1))) { in PharFileFunction()
892 efree(entry); in PharFileFunction()
897 if (NULL != (etemp = zend_hash_str_find_ptr(&(phar->manifest), entry, entry_len))) { in PharFileFunction()
902 if (entry != filename) { in PharFileFunction()
903 efree(entry); in PharFileFunction()
932 char *arch, *entry, *fname; in PHAR_FUNC() local
943 if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) { in PHAR_FUNC()
946 efree(entry); in PHAR_FUNC()
947 entry = filename; in PHAR_FUNC()
954 entry = phar_fix_filepath(estrndup(entry, entry_len), &entry_len, 1); in PHAR_FUNC()
955 if (entry[0] == '/') { in PHAR_FUNC()
956 if (NULL != (etemp = zend_hash_str_find_ptr(&(phar->manifest), entry + 1, entry_len - 1))) { in PHAR_FUNC()
959 efree(entry); in PHAR_FUNC()
964 if (NULL != (etemp = zend_hash_str_find_ptr(&(phar->manifest), entry, entry_len))) { in PHAR_FUNC()
969 efree(entry); in PHAR_FUNC()