Lines Matching refs:pos

1587 	char *pos, test = '\0';  in phar_open_from_fp()  local
1618 pos = buffer+tokenlen; in phar_open_from_fp()
1619 if (!memcmp(pos, gz_magic, 3)) { in phar_open_from_fp()
1683 } else if (!memcmp(pos, bz_magic, 3)) { in phar_open_from_fp()
1727 if (!memcmp(pos, zip_magic, 4)) { in phar_open_from_fp()
1733 if (phar_is_tar(pos, fname)) { in phar_open_from_fp()
1740 …if (got > 0 && (pos = phar_strnstr(buffer, got + sizeof(token), token, sizeof(token)-1)) != NULL) { in phar_open_from_fp()
1741 halt_offset += (pos - buffer); /* no -tokenlen+tokenlen here */ in phar_open_from_fp()
1869 const char *pos; in phar_check_str() local
1877 pos = strstr(ext_str, ".phar"); in phar_check_str()
1879 if (!pos in phar_check_str()
1880 || (pos != ext_str && (*(pos - 1) == '/')) in phar_check_str()
1881 || (ext_len - (pos - ext_str)) < 5 in phar_check_str()
1882 || !(pos += 5) in phar_check_str()
1883 || !(*pos == '\0' || *pos == '/' || *pos == '.')) { in phar_check_str()
1891 pos = strstr(ext_str, ".phar"); in phar_check_str()
1892 if (!(pos && (*(pos - 1) != '/') in phar_check_str()
1893 …&& (pos += 5) && (*pos == '\0' || *pos == '/' || *pos == '.')) && *(ext_str + 1) != '.' && *(ext_s… in phar_check_str()
1921 const char *pos, *slash; in phar_detect_phar_fname_ext() local
1932 pos = memchr(filename, '/', filename_len); in phar_detect_phar_fname_ext()
1934 if (pos && pos != filename) { in phar_detect_phar_fname_ext()
1936 if (*(pos - 1) == ':' && (size_t)(pos - filename) < filename_len - 1 && *(pos + 1) == '/') { in phar_detect_phar_fname_ext()
1941 if (zend_hash_str_exists(&(PHAR_G(phar_alias_map)), (char *) filename, pos - filename)) { in phar_detect_phar_fname_ext()
1942 *ext_str = pos; in phar_detect_phar_fname_ext()
1947 …if (PHAR_G(manifest_cached) && zend_hash_str_exists(&cached_alias, (char *) filename, pos - filena… in phar_detect_phar_fname_ext()
1948 *ext_str = pos; in phar_detect_phar_fname_ext()
2013 pos = memchr(filename + 1, '.', filename_len); in phar_detect_phar_fname_ext()
2015 if (!pos) { in phar_detect_phar_fname_ext()
2019 while (pos != filename && (*(pos - 1) == '/' || *(pos - 1) == '\0')) { in phar_detect_phar_fname_ext()
2020 pos = memchr(pos + 1, '.', filename_len - (pos - filename) - 1); in phar_detect_phar_fname_ext()
2021 if (!pos) { in phar_detect_phar_fname_ext()
2026 slash = memchr(pos, '/', filename_len - (pos - filename)); in phar_detect_phar_fname_ext()
2030 *ext_str = pos; in phar_detect_phar_fname_ext()
2031 *ext_len = strlen(pos); in phar_detect_phar_fname_ext()
2044 *ext_str = pos; in phar_detect_phar_fname_ext()
2045 *ext_len = slash - pos; in phar_detect_phar_fname_ext()
2052 pos = strchr(pos + 1, '.'); in phar_detect_phar_fname_ext()
2053 if (pos) { in phar_detect_phar_fname_ext()
2507 char *pos, has_dirs = 0; in phar_flush() local
2608 if ((pos = php_stristr(tmp, halt_stub, len, sizeof(halt_stub) - 1)) == NULL) { in phar_flush()
2622 pos = user_stub + (pos - tmp); in phar_flush()
2624 len = pos - user_stub + 18; in phar_flush()