Searched refs:real_path (Results 1 - 8 of 8) sorted by relevance

/PHP_5_4/main/
H A Dfopen_wrappers.c730 PHPAPI char *expand_filepath(const char *filepath, char *real_path TSRMLS_DC)
732 return expand_filepath_ex(filepath, real_path, NULL, 0 TSRMLS_CC);
738 PHPAPI char *expand_filepath_ex(const char *filepath, char *real_path, const char *relative_to, size_t relative_to_len TSRMLS_DC) argument
740 return expand_filepath_with_mode(filepath, real_path, relative_to, relative_to_len, CWD_FILEPATH TSRMLS_CC);
746 PHPAPI char *expand_filepath_with_mode(const char *filepath, char *real_path, const char *relative_to, size_t relative_to_len, int realpath_mode TSRMLS_DC) argument
778 if (real_path) {
779 memcpy(real_path, filepath, copy_len);
780 real_path[copy_len] = '\0';
782 real_path = estrndup(filepath, copy_len);
785 return real_path;
[all...]
H A Dfopen_wrappers.h29 PHPAPI char *expand_filepath(const char *filepath, char *real_path TSRMLS_DC);
30 PHPAPI char *expand_filepath_ex(const char *filepath, char *real_path, const char *relative_to, size_t relative_to_len TSRMLS_DC);
31 PHPAPI char *expand_filepath_with_mode(const char *filepath, char *real_path, const char *relative_to, size_t relative_to_len, int realpath_mode TSRMLS_DC);
/PHP_5_4/sapi/cgi/
H A Dcgi_main.c769 char *real_path = NULL; local
778 real_path = tsrm_realpath(path, NULL TSRMLS_CC);
779 if (real_path == NULL) {
782 real_path_len = strlen(real_path);
783 path = real_path;
817 if (real_path) {
818 free(real_path);
1191 char *real_path = NULL; local
1236 (real_path = tsrm_realpath(script_path_translated, NULL TSRMLS_CC)) == NULL)
1400 free(real_path);
[all...]
/PHP_5_4/sapi/cli/
H A Dphp_cli.c932 char real_path[MAXPATHLEN]; local
933 if (VCWD_REALPATH(script_file, real_path)) {
934 translated_path = strdup(real_path);
/PHP_5_4/sapi/fpm/fpm/
H A Dfpm_main.c709 char * real_path; local
718 real_path = tsrm_realpath(path, NULL TSRMLS_CC);
719 if (real_path == NULL) {
722 real_path_len = strlen(real_path);
723 path = real_path;
1130 char *real_path = NULL; local
1175 (real_path = tsrm_realpath(script_path_translated, NULL TSRMLS_CC)) == NULL)
1353 free(real_path);
/PHP_5_4/TSRM/
H A Dtsrm_virtual_cwd.c1399 CWD_API char *virtual_realpath(const char *path, char *real_path TSRMLS_DC) /* {{{ */
1432 memcpy(real_path, new_state.cwd, len);
1433 real_path[len] = '\0';
1434 retval = real_path;
1925 CWD_API char *tsrm_realpath(const char *path, char *real_path TSRMLS_DC) /* {{{ */
1959 if (real_path) {
1961 memcpy(real_path, new_state.cwd, copy_len);
1962 real_path[copy_len] = '\0';
1964 return real_path;
H A Dtsrm_virtual_cwd.h160 CWD_API char *virtual_realpath(const char *path, char *real_path TSRMLS_DC);
206 CWD_API char *tsrm_realpath(const char *path, char *real_path TSRMLS_DC);
267 #define VCWD_REALPATH(path, real_path) virtual_realpath(path, real_path TSRMLS_CC)
318 #define VCWD_REALPATH(path, real_path) tsrm_realpath(path, real_path TSRMLS_CC)
H A Dtsrm_win32.c209 char * real_path = NULL; local
216 real_path = (char *)malloc(MAX_PATH);
217 if(tsrm_realpath(pathname, real_path TSRMLS_CC) == NULL) {
220 pathname = real_path;
224 free(real_path);
230 free(real_path);
283 if(bucket == NULL && real_path == NULL) {
286 real_path = (char *)malloc(MAX_PATH);
287 if(tsrm_realpath(pathname, real_path TSRMLS_CC) != NULL) {
288 pathname = real_path;
[all...]

Completed in 16 milliseconds