Lines Matching refs:trypath
349 char trypath[MAXPATHLEN]; in phar_find_in_include_path()
451 memcpy(trypath, ptr, end-ptr); in phar_find_in_include_path()
453 trypath[end-ptr] = '/'; in phar_find_in_include_path()
454 memcpy(trypath+(end-ptr)+1, filename, filename_len+1); in phar_find_in_include_path()
463 memcpy(trypath, ptr, len); in phar_find_in_include_path()
464 trypath[len] = '/'; in phar_find_in_include_path()
465 memcpy(trypath+len+1, filename, filename_len+1); in phar_find_in_include_path()
471 for (p = trypath, n = 0; isalnum((int)*p) || *p == '+' || *p == '-' || *p == '.'; ++p, ++n); in phar_find_in_include_path()
474 … < len - 3 && (*p == ':') && (n > 1) && (!strncmp("//", p+1, 2) || !memcmp("data", trypath, 4)))) { in phar_find_in_include_path()
477 wrapper = php_stream_locate_url_wrapper(trypath, &actual, STREAM_OPEN_FOR_INCLUDE TSRMLS_CC); in phar_find_in_include_path()
479 strlcpy(trypath, actual, sizeof(trypath)); in phar_find_in_include_path()
487 if (SUCCESS == wrapper->wops->url_stat(wrapper, trypath, 0, &ssb, NULL TSRMLS_CC)) { in phar_find_in_include_path()
492 ret_len = strlen(trypath); in phar_find_in_include_path()
495 …if (SUCCESS != phar_split_fname(trypath, ret_len, &arch, &arch_len, &entry, &entry_len, 1, 0 TSRML… in phar_find_in_include_path()
496 return estrndup(trypath, ret_len); in phar_find_in_include_path()
508 return estrndup(trypath, ret_len); in phar_find_in_include_path()
510 return estrdup(trypath); in phar_find_in_include_path()
517 if (tsrm_realpath(trypath, resolved_path TSRMLS_CC)) { in phar_find_in_include_path()
533 memcpy(trypath, exec_fname, exec_fname_length + 1); in phar_find_in_include_path()
534 memcpy(trypath+exec_fname_length + 1, filename, filename_len+1); in phar_find_in_include_path()
537 for (p = trypath; isalnum((int)*p) || *p == '+' || *p == '-' || *p == '.'; ++p, ++n); in phar_find_in_include_path()
539 …_length - 3 && (*p == ':') && (n > 1) && (!strncmp("//", p+1, 2) || !memcmp("data", trypath, 4))) { in phar_find_in_include_path()
542 wrapper = php_stream_locate_url_wrapper(trypath, &actual, STREAM_OPEN_FOR_INCLUDE TSRMLS_CC); in phar_find_in_include_path()
546 strlcpy(trypath, actual, sizeof(trypath)); in phar_find_in_include_path()
552 return estrdup(trypath); in phar_find_in_include_path()
556 if (tsrm_realpath(trypath, resolved_path TSRMLS_CC)) { in phar_find_in_include_path()