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

/PHP_5_5/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.c1714 char *real_path; local
1756 real_path = emalloc(new_state.cwd_length + 1);
1757 memcpy(real_path, new_state.cwd, new_state.cwd_length + 1);
1759 return real_path;
/PHP_5_5/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_5_5/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...]
/PHP_5_5/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);
1190 char *real_path = NULL; local
1235 (real_path = tsrm_realpath(script_path_translated, NULL TSRMLS_CC)) == NULL)
1399 free(real_path);
[all...]
/PHP_5_5/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_5_5/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
1178 (real_path = tsrm_realpath(script_path_translated, NULL TSRMLS_CC)) == NULL)
1369 free(real_path);

Completed in 42 milliseconds