Lines Matching refs:fname_len
249 || zend_hash_str_del(&(PHAR_G(phar_fname_map)), phar->fname, phar->fname_len) != SUCCESS) { in phar_archive_delref()
272 if (zend_hash_str_del(&(PHAR_G(phar_fname_map)), phar->fname, phar->fname_len) != SUCCESS) { in phar_archive_delref()
487 int phar_open_parsed_phar(char *fname, size_t fname_len, char *alias, size_t alias_len, bool is_dat… in phar_open_parsed_phar() argument
500 if (memchr(fname, '\\', fname_len)) { in phar_open_parsed_phar()
501 fname = do_alloca(fname_len + 1, fname_use_heap); in phar_open_parsed_phar()
502 memcpy(fname, save_fname, fname_len); in phar_open_parsed_phar()
503 fname[fname_len] = '\0'; in phar_open_parsed_phar()
504 phar_unixify_path_separators(fname, fname_len); in phar_open_parsed_phar()
507 if (SUCCESS == phar_get_archive(&phar, fname, fname_len, alias, alias_len, error) in phar_open_parsed_phar()
508 && ((alias && fname_len == phar->fname_len in phar_open_parsed_phar()
509 && !strncmp(fname, phar->fname, fname_len)) || !alias) in phar_open_parsed_phar()
731 static int phar_parse_pharfile(php_stream *fp, char *fname, size_t fname_len, char *alias, size_t a… in phar_parse_pharfile() argument
1116 mydata->fname = pestrndup(fname, fname_len, mydata->is_persistent); in phar_parse_pharfile()
1118 phar_unixify_path_separators(mydata->fname, fname_len); in phar_parse_pharfile()
1120 mydata->fname_len = fname_len; in phar_parse_pharfile()
1237 mydata->ext = memchr(endbuffer, '.', (mydata->fname + fname_len) - endbuffer); in phar_parse_pharfile()
1239 mydata->ext = memchr(endbuffer + 1, '.', (mydata->fname + fname_len) - endbuffer - 1); in phar_parse_pharfile()
1242 mydata->ext_len = (mydata->fname + mydata->fname_len) - mydata->ext; in phar_parse_pharfile()
1248 pestrndup(mydata->fname, fname_len, mydata->is_persistent); in phar_parse_pharfile()
1249 mydata->alias_len = alias ? alias_len : fname_len; in phar_parse_pharfile()
1287 str = zend_string_init_interned(mydata->fname, fname_len, 1); in phar_parse_pharfile()
1289 str = zend_string_init(mydata->fname, fname_len, 0); in phar_parse_pharfile()
1306 int phar_open_or_create_filename(char *fname, size_t fname_len, char *alias, size_t alias_len, bool… in phar_open_or_create_filename() argument
1320 if (phar_detect_phar_fname_ext(fname, fname_len, &ext_str, &ext_len, !is_data, 0, 1) == SUCCESS) { in phar_open_or_create_filename()
1325 if (FAILURE == phar_detect_phar_fname_ext(fname, fname_len, &ext_str, &ext_len, !is_data, 1, 1)) { in phar_open_or_create_filename()
1336 …if (phar_open_parsed_phar(fname, fname_len, alias, alias_len, is_data, options, test, &my_error) =… in phar_open_or_create_filename()
1371 …return phar_open_or_create_zip(fname, fname_len, alias, alias_len, is_data, options, pphar, error); in phar_open_or_create_filename()
1376 …return phar_open_or_create_tar(fname, fname_len, alias, alias_len, is_data, options, pphar, error); in phar_open_or_create_filename()
1379 …return phar_create_or_parse_filename(fname, fname_len, alias, alias_len, is_data, options, pphar, … in phar_open_or_create_filename()
1383 int phar_create_or_parse_filename(char *fname, size_t fname_len, char *alias, size_t alias_len, boo… in phar_create_or_parse_filename() argument
1402 fname_len = ZSTR_LEN(actual); in phar_create_or_parse_filename()
1406 …if (phar_open_from_fp(fp, fname, fname_len, alias, alias_len, options, pphar, is_data, error) == S… in phar_create_or_parse_filename()
1443 fname_len = strlen(mydata->fname); in phar_create_or_parse_filename()
1445 phar_unixify_path_separators(mydata->fname, fname_len); in phar_create_or_parse_filename()
1450 mydata->ext = memchr(p, '.', (mydata->fname + fname_len) - p); in phar_create_or_parse_filename()
1452 mydata->ext = memchr(p + 1, '.', (mydata->fname + fname_len) - p - 1); in phar_create_or_parse_filename()
1455 mydata->ext_len = (mydata->fname + fname_len) - mydata->ext; in phar_create_or_parse_filename()
1469 mydata->fname_len = fname_len; in phar_create_or_parse_filename()
1477 zend_hash_str_add_ptr(&(PHAR_G(phar_fname_map)), mydata->fname, fname_len, mydata); in phar_create_or_parse_filename()
1494 zend_hash_str_del(&(PHAR_G(phar_fname_map)), mydata->fname, fname_len); in phar_create_or_parse_filename()
1504 mydata->alias = alias ? estrndup(alias, alias_len) : estrndup(mydata->fname, fname_len); in phar_create_or_parse_filename()
1505 mydata->alias_len = alias ? alias_len : fname_len; in phar_create_or_parse_filename()
1516 zend_hash_str_del(&(PHAR_G(phar_fname_map)), mydata->fname, fname_len); in phar_create_or_parse_filename()
1537 int phar_open_from_filename(char *fname, size_t fname_len, char *alias, size_t alias_len, uint32_t … in phar_open_from_filename() argument
1551 …if (phar_open_parsed_phar(fname, fname_len, alias, alias_len, is_data, options, pphar, error) == S… in phar_open_from_filename()
1576 fname_len = ZSTR_LEN(actual); in phar_open_from_filename()
1579 ret = phar_open_from_fp(fp, fname, fname_len, alias, alias_len, options, pphar, is_data, error); in phar_open_from_filename()
1623 static int phar_open_from_fp(php_stream* fp, char *fname, size_t fname_len, char *alias, size_t ali… in phar_open_from_fp() argument
1771 return phar_parse_zipfile(fp, fname, fname_len, alias, alias_len, pphar, error); in phar_open_from_fp()
1777 …return phar_parse_tarfile(fp, fname, fname_len, alias, alias_len, pphar, is_data, compression, err… in phar_open_from_fp()
1784 …return phar_parse_pharfile(fp, fname, fname_len, alias, alias_len, halt_offset, pphar, compression… in phar_open_from_fp()
2323 size_t fname_len; in phar_open_executed_filename() local
2332 fname_len = strlen(fname); in phar_open_executed_filename()
2334 …if (phar_open_parsed_phar(fname, fname_len, alias, alias_len, 0, REPORT_ERRORS, NULL, 0) == SUCCES… in phar_open_executed_filename()
2370 fname_len = ZSTR_LEN(actual); in phar_open_executed_filename()
2373 ret = phar_open_from_fp(fp, fname, fname_len, alias, alias_len, REPORT_ERRORS, NULL, 0, error); in phar_open_executed_filename()