Lines Matching refs:alias_len
529 int phar_open_parsed_phar(char *fname, int fname_len, char *alias, int alias_len, int is_data, int … argument
543 if (SUCCESS == phar_get_archive(&phar, unixfname, fname_len, alias, alias_len, error TSRMLS_CC)
550 if (SUCCESS == phar_get_archive(&phar, fname, fname_len, alias, alias_len, error TSRMLS_CC)
662 …e_pharfile(php_stream *fp, char *fname, int fname_len, char *alias, int alias_len, long halt_offse… argument
994 if (alias && alias_len && (alias_len != (int)tmp_len || strncmp(alias, buffer, tmp_len)))
1010 alias_len = tmp_len;
1014 } else if (!alias_len || !alias) {
1017 alias_len = 0;
1019 } else if (alias_len) {
1204 pestrndup(alias, alias_len, mydata->is_persistent) :
1206 mydata->alias_len = alias ? alias_len : fname_len;
1218 if (!phar_validate_alias(mydata->alias, mydata->alias_len)) {
1224 …if (SUCCESS == zend_hash_find(&(PHAR_GLOBALS->phar_alias_map), alias, alias_len, (void **)&fd_ptr)…
1225 if (SUCCESS != phar_free_alias(*fd_ptr, alias, alias_len TSRMLS_CC)) {
1232 …zend_hash_add(&(PHAR_GLOBALS->phar_alias_map), alias, alias_len, (void*)&mydata, sizeof(phar_archi…
1251 int phar_open_or_create_filename(char *fname, int fname_len, char *alias, int alias_len, int is_dat… argument
1281 …if (phar_open_parsed_phar(fname, fname_len, alias, alias_len, is_data, options, test, &my_error TS…
1316 …return phar_open_or_create_zip(fname, fname_len, alias, alias_len, is_data, options, pphar, error …
1321 …return phar_open_or_create_tar(fname, fname_len, alias, alias_len, is_data, options, pphar, error …
1324 …return phar_create_or_parse_filename(fname, fname_len, alias, alias_len, is_data, options, pphar, …
1328 int phar_create_or_parse_filename(char *fname, int fname_len, char *alias, int alias_len, int is_da… argument
1355 …if (phar_open_from_fp(fp, fname, fname_len, alias, alias_len, options, pphar, is_data, error TSRML…
1426 alias_len = 0;
1433 …if (alias && SUCCESS == zend_hash_find(&(PHAR_GLOBALS->phar_alias_map), alias, alias_len, (void **…
1434 if (SUCCESS != phar_free_alias(*fd_ptr, alias, alias_len TSRMLS_CC)) {
1449 mydata->alias = alias ? estrndup(alias, alias_len) : estrndup(mydata->fname, fname_len);
1450 mydata->alias_len = alias ? alias_len : fname_len;
1453 if (alias_len && alias) {
1454 …if (FAILURE == zend_hash_add(&(PHAR_GLOBALS->phar_alias_map), alias, alias_len, (void*)&mydata, si…
1482 int phar_open_from_filename(char *fname, int fname_len, char *alias, int alias_len, int options, ph… argument
1496 …if (phar_open_parsed_phar(fname, fname_len, alias, alias_len, is_data, options, pphar, error TSRML…
1529 …ret = phar_open_from_fp(fp, fname, fname_len, alias, alias_len, options, pphar, is_data, error TS…
1573 static int phar_open_from_fp(php_stream* fp, char *fname, int fname_len, char *alias, int alias_len… argument
1712 return phar_parse_zipfile(fp, fname, fname_len, alias, alias_len, pphar, error TSRMLS_CC);
1718 …return phar_parse_tarfile(fp, fname, fname_len, alias, alias_len, pphar, is_data, compression, err…
1725 …return phar_parse_pharfile(fp, fname, fname_len, alias, alias_len, halt_offset, pphar, compression…
2319 int phar_open_executed_filename(char *alias, int alias_len, char **error TSRMLS_DC) /* {{{ */ argument
2335 …if (phar_open_parsed_phar(fname, fname_len, alias, alias_len, 0, REPORT_ERRORS, NULL, 0 TSRMLS_CC)…
2385 …ret = phar_open_from_fp(fp, fname, fname_len, alias, alias_len, REPORT_ERRORS, NULL, 0, error TSRM…
2923 restore_alias_len = phar->alias_len;
2925 phar->alias_len = 0;
2928 manifest_len = offset + phar->alias_len + sizeof(manifest) + main_metadata_str.len;
2945 phar_set_32(manifest+14, phar->alias_len);
2949 || (size_t)phar->alias_len != php_stream_write(newfile, phar->alias, phar->alias_len)) {
2956 phar->alias_len = restore_alias_len;
2965 phar->alias_len = restore_alias_len;
2977 phar->alias_len = restore_alias_len;