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

/PHP_TRUNK/TSRM/
H A Dtsrm_win32.c212 char * real_path = NULL; local
219 real_path = (char *)malloc(MAX_PATH);
220 if(tsrm_realpath(pathname, real_path) == NULL) {
223 pathname = real_path;
227 free(real_path);
233 free(real_path);
285 if(bucket == NULL && real_path == NULL) {
288 real_path = (char *)malloc(MAX_PATH);
289 if(tsrm_realpath(pathname, real_path) != NULL) {
290 pathname = real_path;
[all...]
/PHP_TRUNK/main/
H A Dfopen_wrappers.h29 PHPAPI char *expand_filepath(const char *filepath, char *real_path);
30 PHPAPI char *expand_filepath_ex(const char *filepath, char *real_path, const char *relative_to, size_t relative_to_len);
31 PHPAPI char *expand_filepath_with_mode(const char *filepath, char *real_path, const char *relative_to, size_t relative_to_len, int use_realpath);
H A Dfopen_wrappers.c740 PHPAPI char *expand_filepath(const char *filepath, char *real_path) argument
742 return expand_filepath_ex(filepath, real_path, NULL, 0);
748 PHPAPI char *expand_filepath_ex(const char *filepath, char *real_path, const char *relative_to, size_t relative_to_len) argument
750 return expand_filepath_with_mode(filepath, real_path, relative_to, relative_to_len, CWD_FILEPATH);
756 PHPAPI char *expand_filepath_with_mode(const char *filepath, char *real_path, const char *relative_to, size_t relative_to_len, int realpath_mode) argument
793 if (real_path) {
794 memcpy(real_path, filepath, copy_len);
795 real_path[copy_len] = '\0';
797 real_path = estrndup(filepath, copy_len);
800 return real_path;
[all...]
/PHP_TRUNK/ext/opcache/
H A Dzend_accelerator_blacklist.c230 char buf[MAXPATHLEN + 1], real_path[MAXPATHLEN + 1], *blacklist_path = NULL; local
247 memset(real_path, 0, sizeof(real_path));
283 expand_filepath_ex(path_dup, real_path, blacklist_path, blacklist_path_length);
285 expand_filepath(path_dup, real_path);
287 path_length = strlen(real_path);
300 memcpy(blacklist->entries[blacklist->pos].path, real_path, path_length + 1);
/PHP_TRUNK/sapi/cli/
H A Dphp_cli.c910 char real_path[MAXPATHLEN]; local
911 if (VCWD_REALPATH(script_file, real_path)) {
912 translated_path = strdup(real_path);
/PHP_TRUNK/Zend/
H A Dzend_virtual_cwd.c1423 CWD_API char *virtual_realpath(const char *path, char *real_path) /* {{{ */ argument
1456 memcpy(real_path, new_state.cwd, len);
1457 real_path[len] = '\0';
1458 retval = real_path;
1901 CWD_API char *tsrm_realpath(const char *path, char *real_path) /* {{{ */ argument
1935 if (real_path) {
1937 memcpy(real_path, new_state.cwd, copy_len);
1938 real_path[copy_len] = '\0';
1940 return real_path;
H A Dzend_virtual_cwd.h162 CWD_API char *virtual_realpath(const char *path, char *real_path);
208 CWD_API char *tsrm_realpath(const char *path, char *real_path);
269 #define VCWD_REALPATH(path, real_path) virtual_realpath(path, real_path)
320 #define VCWD_REALPATH(path, real_path) tsrm_realpath(path, real_path)
/PHP_TRUNK/sapi/cgi/
H A Dcgi_main.c748 char *real_path = NULL; local
757 real_path = tsrm_realpath(path, NULL);
758 if (real_path == NULL) {
761 real_path_len = strlen(real_path);
762 path = real_path;
796 if (real_path) {
797 efree(real_path);
1169 char *real_path = NULL; local
1214 (real_path = tsrm_realpath(script_path_translated, NULL)) == NULL)
1378 efree(real_path);
[all...]
/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_main.c688 char * real_path; local
697 real_path = tsrm_realpath(path, NULL);
698 if (real_path == NULL) {
701 real_path_len = strlen(real_path);
702 path = real_path;
1105 char *real_path = NULL; local
1153 (real_path = tsrm_realpath(script_path_translated, NULL)) == NULL)
1344 efree(real_path);

Completed in 46 milliseconds