Lines Matching refs:ext_str
1312 const char *ext_str, *z; in phar_open_or_create_filename() local
1324 if (phar_detect_phar_fname_ext(fname, fname_len, &ext_str, &ext_len, !is_data, 0, 1) == SUCCESS) { in phar_open_or_create_filename()
1329 if (FAILURE == phar_detect_phar_fname_ext(fname, fname_len, &ext_str, &ext_len, !is_data, 1, 1)) { in phar_open_or_create_filename()
1373 …if (ext_len > 3 && (z = memchr(ext_str, 'z', ext_len)) && ((ext_str + ext_len) - z >= 2) && !memcm… in phar_open_or_create_filename()
1378 …if (ext_len > 3 && (z = memchr(ext_str, 't', ext_len)) && ((ext_str + ext_len) - z >= 2) && !memcm… in phar_open_or_create_filename()
1915 static zend_result phar_check_str(const char *fname, const char *ext_str, size_t ext_len, int execu… in phar_check_str() argument
1925 pos = strstr(ext_str, ".phar"); in phar_check_str()
1928 || (pos != ext_str && (*(pos - 1) == '/')) in phar_check_str()
1929 || (ext_len - (pos - ext_str)) < 5 in phar_check_str()
1934 return phar_analyze_path(fname, ext_str, ext_len, for_create); in phar_check_str()
1939 pos = strstr(ext_str, ".phar"); in phar_check_str()
1941 …os == '\0' || *pos == '/' || *pos == '.')) && *(ext_str + 1) != '.' && *(ext_str + 1) != '/' && *(… in phar_check_str()
1942 return phar_analyze_path(fname, ext_str, ext_len, for_create); in phar_check_str()
1945 if (*(ext_str + 1) != '.' && *(ext_str + 1) != '/' && *(ext_str + 1) != '\0') { in phar_check_str()
1946 return phar_analyze_path(fname, ext_str, ext_len, for_create); in phar_check_str()
1967 …t_phar_fname_ext(const char *filename, size_t filename_len, const char **ext_str, size_t *ext_len,… in phar_detect_phar_fname_ext() argument
1971 *ext_str = NULL; in phar_detect_phar_fname_ext()
1986 *ext_str = NULL; in phar_detect_phar_fname_ext()
1990 *ext_str = pos; in phar_detect_phar_fname_ext()
1996 *ext_str = pos; in phar_detect_phar_fname_ext()
2007 *ext_str = filename + (filename_len - pphar->ext_len); in phar_detect_phar_fname_ext()
2027 *ext_str = filename + (filename_len - pphar->ext_len); in phar_detect_phar_fname_ext()
2040 *ext_str = filename + (ZSTR_LEN(str_key) - pphar->ext_len); in phar_detect_phar_fname_ext()
2053 *ext_str = filename + (ZSTR_LEN(str_key) - pphar->ext_len); in phar_detect_phar_fname_ext()
2079 *ext_str = pos; in phar_detect_phar_fname_ext()
2083 return phar_check_str(filename, *ext_str, *ext_len, executable, for_create); in phar_detect_phar_fname_ext()
2087 *ext_str = pos; in phar_detect_phar_fname_ext()
2090 if (phar_check_str(filename, *ext_str, *ext_len, executable, for_create) == SUCCESS) { in phar_detect_phar_fname_ext()
2097 *ext_str = NULL; in phar_detect_phar_fname_ext()
2242 const char *ext_str; in phar_split_fname() local
2265 …if (phar_detect_phar_fname_ext(filename, filename_len, &ext_str, &ext_len, executable, for_create,… in phar_split_fname()
2267 if (!ext_str) { in phar_split_fname()
2288 *arch_len = ext_str - filename + ext_len; in phar_split_fname()
2291 if (ext_str[ext_len]) { in phar_split_fname()
2293 *entry = estrndup(ext_str+ext_len, *entry_len); in phar_split_fname()