Lines Matching refs:alias_len

531 int phar_open_parsed_phar(char *fname, int fname_len, char *alias, int alias_len, int is_data, int …  argument
545 if (SUCCESS == phar_get_archive(&phar, unixfname, fname_len, alias, alias_len, error TSRMLS_CC)
552 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
993 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) {
1197 pestrndup(alias, alias_len, mydata->is_persistent) :
1199 mydata->alias_len = alias ? alias_len : fname_len;
1211 if (!phar_validate_alias(mydata->alias, mydata->alias_len)) {
1217 …if (SUCCESS == zend_hash_find(&(PHAR_GLOBALS->phar_alias_map), alias, alias_len, (void **)&fd_ptr)…
1218 if (SUCCESS != phar_free_alias(*fd_ptr, alias, alias_len TSRMLS_CC)) {
1225 …zend_hash_add(&(PHAR_GLOBALS->phar_alias_map), alias, alias_len, (void*)&mydata, sizeof(phar_archi…
1244 int phar_open_or_create_filename(char *fname, int fname_len, char *alias, int alias_len, int is_dat… argument
1274 …if (phar_open_parsed_phar(fname, fname_len, alias, alias_len, is_data, options, test, &my_error TS…
1309 …return phar_open_or_create_zip(fname, fname_len, alias, alias_len, is_data, options, pphar, error …
1314 …return phar_open_or_create_tar(fname, fname_len, alias, alias_len, is_data, options, pphar, error …
1317 …return phar_create_or_parse_filename(fname, fname_len, alias, alias_len, is_data, options, pphar, …
1321 int phar_create_or_parse_filename(char *fname, int fname_len, char *alias, int alias_len, int is_da… argument
1348 …if (phar_open_from_fp(fp, fname, fname_len, alias, alias_len, options, pphar, is_data, error TSRML…
1419 alias_len = 0;
1426 …if (alias && SUCCESS == zend_hash_find(&(PHAR_GLOBALS->phar_alias_map), alias, alias_len, (void **…
1427 if (SUCCESS != phar_free_alias(*fd_ptr, alias, alias_len TSRMLS_CC)) {
1442 mydata->alias = alias ? estrndup(alias, alias_len) : estrndup(mydata->fname, fname_len);
1443 mydata->alias_len = alias ? alias_len : fname_len;
1446 if (alias_len && alias) {
1447 …if (FAILURE == zend_hash_add(&(PHAR_GLOBALS->phar_alias_map), alias, alias_len, (void*)&mydata, si…
1475 int phar_open_from_filename(char *fname, int fname_len, char *alias, int alias_len, int options, ph… argument
1489 …if (phar_open_parsed_phar(fname, fname_len, alias, alias_len, is_data, options, pphar, error TSRML…
1522 …ret = phar_open_from_fp(fp, fname, fname_len, alias, alias_len, options, pphar, is_data, error TS…
1566 static int phar_open_from_fp(php_stream* fp, char *fname, int fname_len, char *alias, int alias_len argument
1705 return phar_parse_zipfile(fp, fname, fname_len, alias, alias_len, pphar, error TSRMLS_CC);
1711 …return phar_parse_tarfile(fp, fname, fname_len, alias, alias_len, pphar, is_data, compression, err…
1718 …return phar_parse_pharfile(fp, fname, fname_len, alias, alias_len, halt_offset, pphar, compression…
2329 int phar_open_executed_filename(char *alias, int alias_len, char **error TSRMLS_DC) /* {{{ */ argument
2345 …if (phar_open_parsed_phar(fname, fname_len, alias, alias_len, 0, REPORT_ERRORS, NULL, 0 TSRMLS_CC)…
2395 …ret = phar_open_from_fp(fp, fname, fname_len, alias, alias_len, REPORT_ERRORS, NULL, 0, error TSRM…
2932 restore_alias_len = phar->alias_len;
2934 phar->alias_len = 0;
2937 manifest_len = offset + phar->alias_len + sizeof(manifest) + main_metadata_str.len;
2948 phar_set_32(manifest+14, phar->alias_len);
2952 || (size_t)phar->alias_len != php_stream_write(newfile, phar->alias, phar->alias_len)) {
2959 phar->alias_len = restore_alias_len;
2968 phar->alias_len = restore_alias_len;
2980 phar->alias_len = restore_alias_len;