Home
last modified time | relevance | path

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

/PHP-5.5/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.5/main/streams/
H A Dplain_wrapper.c1394 char trypath[MAXPATHLEN]; in _php_stream_fopen_with_path() local
1449 if (snprintf(trypath, MAXPATHLEN, "%s%s", cwd, filename) >= MAXPATHLEN) { in _php_stream_fopen_with_path()
1455 if (((options & STREAM_DISABLE_OPEN_BASEDIR) == 0) && php_check_open_basedir(trypath TSRMLS_CC)) { in _php_stream_fopen_with_path()
1459 return php_stream_fopen_rel(trypath, mode, opened_path, options); in _php_stream_fopen_with_path()
1503 if (snprintf(trypath, MAXPATHLEN, "%s/%s", ptr, filename) >= MAXPATHLEN) { in _php_stream_fopen_with_path()
1507 …if (((options & STREAM_DISABLE_OPEN_BASEDIR) == 0) && php_check_open_basedir_ex(trypath, 0 TSRMLS_… in _php_stream_fopen_with_path()
1511 stream = php_stream_fopen_rel(trypath, mode, opened_path, options); in _php_stream_fopen_with_path()
/PHP-5.5/ext/opcache/
H A DZendAccelerator.c1748 char trypath[MAXPATHLEN]; local
1772 memcpy(trypath, ptr, len);
1773 trypath[len] = '/';
1774 memcpy(trypath + len + 1, filename, filename_length + 1);
1776 if ((resolved_path = accel_tsrm_realpath(trypath, len + 1 + filename_length TSRMLS_CC)) != NULL) {
1791 memcpy(trypath, exec_fname, exec_fname_length + 1);
1792 memcpy(trypath + exec_fname_length + 1, filename, filename_length + 1);
1793 return accel_tsrm_realpath(trypath, exec_fname_length + 1 + filename_length TSRMLS_CC);

Completed in 21 milliseconds