Lines Matching refs:fname_len
254 || zend_hash_str_del(&(PHAR_G(phar_fname_map)), phar->fname, phar->fname_len) != SUCCESS) { in phar_archive_delref()
277 if (zend_hash_str_del(&(PHAR_G(phar_fname_map)), phar->fname, phar->fname_len) != SUCCESS) { in phar_archive_delref()
489 static zend_result phar_open_parsed_phar(char *fname, size_t fname_len, char *alias, size_t alias_l… in phar_open_parsed_phar() argument
502 if (memchr(fname, '\\', fname_len)) { in phar_open_parsed_phar()
503 fname = do_alloca(fname_len + 1, fname_use_heap); in phar_open_parsed_phar()
504 memcpy(fname, save_fname, fname_len); in phar_open_parsed_phar()
505 fname[fname_len] = '\0'; in phar_open_parsed_phar()
506 phar_unixify_path_separators(fname, fname_len); in phar_open_parsed_phar()
509 if (SUCCESS == phar_get_archive(&phar, fname, fname_len, alias, alias_len, error) in phar_open_parsed_phar()
510 && ((alias && fname_len == phar->fname_len in phar_open_parsed_phar()
511 && !strncmp(fname, phar->fname, fname_len)) || !alias) in phar_open_parsed_phar()
733 static zend_result phar_parse_pharfile(php_stream *fp, char *fname, size_t fname_len, char *alias, … in phar_parse_pharfile() argument
1121 mydata->fname = pestrndup(fname, fname_len, mydata->is_persistent); in phar_parse_pharfile()
1123 phar_unixify_path_separators(mydata->fname, fname_len); in phar_parse_pharfile()
1125 mydata->fname_len = fname_len; in phar_parse_pharfile()
1241 mydata->ext = memchr(endbuffer, '.', (mydata->fname + fname_len) - endbuffer); in phar_parse_pharfile()
1243 mydata->ext = memchr(endbuffer + 1, '.', (mydata->fname + fname_len) - endbuffer - 1); in phar_parse_pharfile()
1246 mydata->ext_len = (mydata->fname + mydata->fname_len) - mydata->ext; in phar_parse_pharfile()
1252 pestrndup(mydata->fname, fname_len, mydata->is_persistent); in phar_parse_pharfile()
1253 mydata->alias_len = alias ? alias_len : fname_len; in phar_parse_pharfile()
1291 str = zend_string_init_interned(mydata->fname, fname_len, 1); in phar_parse_pharfile()
1293 str = zend_string_init(mydata->fname, fname_len, 0); in phar_parse_pharfile()
1310 zend_result phar_open_or_create_filename(char *fname, size_t fname_len, char *alias, size_t alias_l… in phar_open_or_create_filename() argument
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()
1340 …if (phar_open_parsed_phar(fname, fname_len, alias, alias_len, is_data, options, test, &my_error) =… in phar_open_or_create_filename()
1375 …return phar_open_or_create_zip(fname, fname_len, alias, alias_len, is_data, options, pphar, error); in phar_open_or_create_filename()
1380 …return phar_open_or_create_tar(fname, fname_len, alias, alias_len, is_data, options, pphar, error); in phar_open_or_create_filename()
1383 …return phar_create_or_parse_filename(fname, fname_len, alias, alias_len, is_data, options, pphar, … in phar_open_or_create_filename()
1387 static zend_result phar_open_from_fp(php_stream* fp, char *fname, size_t fname_len, char *alias, si…
1389 zend_result phar_create_or_parse_filename(char *fname, size_t fname_len, char *alias, size_t alias_… in phar_create_or_parse_filename() argument
1408 fname_len = ZSTR_LEN(actual); in phar_create_or_parse_filename()
1412 if (phar_open_from_fp(fp, fname, fname_len, alias, alias_len, options, pphar, error) == SUCCESS) { in phar_create_or_parse_filename()
1449 fname_len = strlen(mydata->fname); in phar_create_or_parse_filename()
1451 phar_unixify_path_separators(mydata->fname, fname_len); in phar_create_or_parse_filename()
1456 mydata->ext = memchr(p, '.', (mydata->fname + fname_len) - p); in phar_create_or_parse_filename()
1458 mydata->ext = memchr(p + 1, '.', (mydata->fname + fname_len) - p - 1); in phar_create_or_parse_filename()
1461 mydata->ext_len = (mydata->fname + fname_len) - mydata->ext; in phar_create_or_parse_filename()
1475 mydata->fname_len = fname_len; in phar_create_or_parse_filename()
1482 zend_hash_str_add_ptr(&(PHAR_G(phar_fname_map)), mydata->fname, fname_len, mydata); in phar_create_or_parse_filename()
1499 zend_hash_str_del(&(PHAR_G(phar_fname_map)), mydata->fname, fname_len); in phar_create_or_parse_filename()
1510 mydata->alias = alias ? estrndup(alias, alias_len) : estrndup(mydata->fname, fname_len); in phar_create_or_parse_filename()
1511 mydata->alias_len = alias ? alias_len : fname_len; in phar_create_or_parse_filename()
1522 zend_hash_str_del(&(PHAR_G(phar_fname_map)), mydata->fname, fname_len); in phar_create_or_parse_filename()
1543 zend_result phar_open_from_filename(char *fname, size_t fname_len, char *alias, size_t alias_len, u… in phar_open_from_filename() argument
1557 …if (phar_open_parsed_phar(fname, fname_len, alias, alias_len, is_data, options, pphar, error) == S… in phar_open_from_filename()
1582 fname_len = ZSTR_LEN(actual); in phar_open_from_filename()
1585 zend_result ret = phar_open_from_fp(fp, fname, fname_len, alias, alias_len, options, pphar, error); in phar_open_from_filename()
1629 static zend_result phar_open_from_fp(php_stream* fp, char *fname, size_t fname_len, char *alias, si… in phar_open_from_fp() argument
1777 return phar_parse_zipfile(fp, fname, fname_len, alias, alias_len, pphar, error); in phar_open_from_fp()
1783 return phar_parse_tarfile(fp, fname, fname_len, alias, alias_len, pphar, compression, error); in phar_open_from_fp()
1790 …return phar_parse_pharfile(fp, fname, fname_len, alias, alias_len, halt_offset, pphar, compression… in phar_open_from_fp()