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

/PHP_TRUNK/TSRM/
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...]
/PHP_TRUNK/Zend/
H A Dzend_virtual_cwd.c1427 CWD_API char *virtual_realpath(const char *path, char *real_path TSRMLS_DC) /* {{{ */
1460 memcpy(real_path, new_state.cwd, len);
1461 real_path[len] = '\0';
1462 retval = real_path;
1954 CWD_API char *tsrm_realpath(const char *path, char *real_path TSRMLS_DC) /* {{{ */
1988 if (real_path) {
1990 memcpy(real_path, new_state.cwd, copy_len);
1991 real_path[copy_len] = '\0';
1993 return real_path;
H A Dzend_virtual_cwd.h162 CWD_API char *virtual_realpath(const char *path, char *real_path TSRMLS_DC);
208 CWD_API char *tsrm_realpath(const char *path, char *real_path TSRMLS_DC);
269 #define VCWD_REALPATH(path, real_path) virtual_realpath(path, real_path TSRMLS_CC)
320 #define VCWD_REALPATH(path, real_path) tsrm_realpath(path, real_path TSRMLS_CC)
/PHP_TRUNK/ext/opcache/
H A Dzend_accelerator_blacklist.c246 char buf[MAXPATHLEN + 1], real_path[MAXPATHLEN + 1], *blacklist_path = NULL; local
268 memset(real_path, 0, sizeof(real_path));
304 expand_filepath_ex(path_dup, real_path, blacklist_path, blacklist_path_length TSRMLS_CC);
306 expand_filepath(path_dup, real_path TSRMLS_CC);
308 path_length = strlen(real_path);
321 memcpy(blacklist->entries[blacklist->pos].path, real_path, path_length + 1);
H A DZendAccelerator.c1727 char *real_path; local
1769 real_path = emalloc(new_state.cwd_length + 1);
1770 memcpy(real_path, new_state.cwd, new_state.cwd_length + 1);
1772 return real_path;
/PHP_TRUNK/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 use_realpath TSRMLS_DC);
/PHP_TRUNK/sapi/cli/
H A Dphp_cli.c937 char real_path[MAXPATHLEN]; local
938 if (VCWD_REALPATH(script_file, real_path)) {
939 translated_path = strdup(real_path);
/PHP_TRUNK/sapi/cgi/
H A Dcgi_main.c772 char *real_path = NULL; local
781 real_path = tsrm_realpath(path, NULL TSRMLS_CC);
782 if (real_path == NULL) {
785 real_path_len = strlen(real_path);
786 path = real_path;
820 if (real_path) {
821 efree(real_path);
1193 char *real_path = NULL; local
1238 (real_path = tsrm_realpath(script_path_translated, NULL TSRMLS_CC)) == NULL)
1402 efree(real_path);
[all...]
/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_main.c713 char * real_path; local
722 real_path = tsrm_realpath(path, NULL TSRMLS_CC);
723 if (real_path == NULL) {
726 real_path_len = strlen(real_path);
727 path = real_path;
1136 char *real_path = NULL; local
1168 (real_path = tsrm_realpath(script_path_translated, NULL TSRMLS_CC)) == NULL)
1336 efree(real_path);

Completed in 36 milliseconds