Home
last modified time | relevance | path

Searched refs:trypath (Results 1 – 3 of 3) sorted by relevance

/PHP-5.4/main/
H A Dfopen_wrappers.c476 char trypath[MAXPATHLEN]; local
529 memcpy(trypath, ptr, end-ptr);
530 trypath[end-ptr] = '/';
539 memcpy(trypath, ptr, len);
540 trypath[len] = '/';
541 memcpy(trypath+len+1, filename, filename_length+1);
544 actual_path = trypath;
554 return estrdup(trypath);
577 actual_path = trypath;
590 return estrdup(trypath);
[all …]
/PHP-5.4/ext/phar/
H A Dutil.c349 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()
463 memcpy(trypath, ptr, len); in phar_find_in_include_path()
464 trypath[len] = '/'; in phar_find_in_include_path()
479 strlcpy(trypath, actual, sizeof(trypath)); in phar_find_in_include_path()
492 ret_len = strlen(trypath); 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()
546 strlcpy(trypath, actual, sizeof(trypath)); in phar_find_in_include_path()
[all …]
/PHP-5.4/main/streams/
H A Dplain_wrapper.c1368 char trypath[MAXPATHLEN]; in _php_stream_fopen_with_path() local
1423 if (snprintf(trypath, MAXPATHLEN, "%s%s", cwd, filename) >= MAXPATHLEN) { in _php_stream_fopen_with_path()
1429 if (((options & STREAM_DISABLE_OPEN_BASEDIR) == 0) && php_check_open_basedir(trypath TSRMLS_CC)) { in _php_stream_fopen_with_path()
1433 return php_stream_fopen_rel(trypath, mode, opened_path, options); in _php_stream_fopen_with_path()
1477 if (snprintf(trypath, MAXPATHLEN, "%s/%s", ptr, filename) >= MAXPATHLEN) { in _php_stream_fopen_with_path()
1481 …if (((options & STREAM_DISABLE_OPEN_BASEDIR) == 0) && php_check_open_basedir_ex(trypath, 0 TSRMLS_… in _php_stream_fopen_with_path()
1485 stream = php_stream_fopen_rel(trypath, mode, opened_path, options); in _php_stream_fopen_with_path()

Completed in 17 milliseconds