Home
last modified time | relevance | path

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

/PHP-7.4/main/
H A Dfopen_wrappers.h27 PHPAPI char *expand_filepath(const char *filepath, char *real_path);
28 PHPAPI char *expand_filepath_ex(const char *filepath, char *real_path, const char *relative_to, siz…
29 PHPAPI char *expand_filepath_with_mode(const char *filepath, char *real_path, const char *relative_…
H A Dfopen_wrappers.c759 return expand_filepath_ex(filepath, real_path, NULL, 0);
810 if (real_path) {
811 memcpy(real_path, filepath, copy_len);
812 real_path[copy_len] = '\0';
814 real_path = estrndup(filepath, copy_len);
817 return real_path;
834 if (real_path) {
836 memcpy(real_path, new_state.cwd, copy_len);
837 real_path[copy_len] = '\0';
839 real_path = estrndup(new_state.cwd, new_state.cwd_length);
[all …]
/PHP-7.4/ext/opcache/
H A Dzend_accelerator_blacklist.c239 char buf[MAXPATHLEN + 1], real_path[MAXPATHLEN + 1], *blacklist_path = NULL; in zend_accel_blacklist_loadone() local
256 memset(real_path, 0, sizeof(real_path)); in zend_accel_blacklist_loadone()
292 expand_filepath_ex(path_dup, real_path, blacklist_path, blacklist_path_length); in zend_accel_blacklist_loadone()
294 expand_filepath(path_dup, real_path); in zend_accel_blacklist_loadone()
296 path_length = strlen(real_path); in zend_accel_blacklist_loadone()
309 memcpy(blacklist->entries[blacklist->pos].path, real_path, path_length + 1); in zend_accel_blacklist_loadone()
/PHP-7.4/Zend/
H A Dzend_virtual_cwd.h169 CWD_API char *virtual_realpath(const char *path, char *real_path);
200 CWD_API char *tsrm_realpath(const char *path, char *real_path);
266 #define VCWD_REALPATH(path, real_path) virtual_realpath(path, real_path) argument
325 #define VCWD_REALPATH(path, real_path) tsrm_realpath(path, real_path) argument
H A Dzend_virtual_cwd.c1241 CWD_API char *virtual_realpath(const char *path, char *real_path) /* {{{ */ in virtual_realpath() argument
1266 memcpy(real_path, new_state.cwd, len); in virtual_realpath()
1267 real_path[len] = '\0'; in virtual_realpath()
1268 retval = real_path; in virtual_realpath()
1712 CWD_API char *tsrm_realpath(const char *path, char *real_path) /* {{{ */ in tsrm_realpath() argument
1740 if (real_path) { in tsrm_realpath()
1742 memcpy(real_path, new_state.cwd, copy_len); in tsrm_realpath()
1743 real_path[copy_len] = '\0'; in tsrm_realpath()
1745 return real_path; in tsrm_realpath()
/PHP-7.4/TSRM/
H A Dtsrm_win32.c208 char real_path[MAXPATHLEN] = {0}; in tsrm_win32_access() local
211 if(tsrm_realpath(pathname, real_path) == NULL) { in tsrm_win32_access()
215 pathname = real_path; in tsrm_win32_access()
278 if(bucket == NULL && !real_path[0]) { in tsrm_win32_access()
281 if(tsrm_realpath(pathname, real_path) != NULL) { in tsrm_win32_access()
282 pathname = real_path; in tsrm_win32_access()
/PHP-7.4/sapi/fpm/fpm/
H A Dfpm_main.c641 char * real_path; in php_cgi_ini_activate_user_config() local
650 real_path = tsrm_realpath(path, NULL); in php_cgi_ini_activate_user_config()
651 if (real_path == NULL) { in php_cgi_ini_activate_user_config()
654 real_path_len = strlen(real_path); in php_cgi_ini_activate_user_config()
655 path = real_path; in php_cgi_ini_activate_user_config()
1065 char *real_path = NULL; in init_request_info() local
1108 (real_path = tsrm_realpath(script_path_translated, NULL)) == NULL) in init_request_info()
1298 efree(real_path); in init_request_info()
/PHP-7.4/sapi/litespeed/
H A Dlsapi_main.c976 char *real_path; in lsapi_activate_user_ini_mk_realpath() local
981 real_path = tsrm_realpath(ctx->path, NULL); in lsapi_activate_user_ini_mk_realpath()
982 if (!real_path) { in lsapi_activate_user_ini_mk_realpath()
985 ctx->path = real_path; in lsapi_activate_user_ini_mk_realpath()
988 real_path = NULL; in lsapi_activate_user_ini_mk_realpath()
995 if (real_path) in lsapi_activate_user_ini_mk_realpath()
996 efree(real_path); in lsapi_activate_user_ini_mk_realpath()
/PHP-7.4/sapi/cgi/
H A Dcgi_main.c801 char *real_path = NULL; local
810 real_path = tsrm_realpath(path, NULL);
811 if (real_path == NULL) {
814 real_path_len = strlen(real_path);
815 path = real_path;
853 if (real_path) {
854 efree(real_path);
1229 char *real_path = NULL; local
1274 (real_path = tsrm_realpath(script_path_translated, NULL)) == NULL)
1437 efree(real_path);
/PHP-7.4/sapi/cli/
H A Dphp_cli.c905 char real_path[MAXPATHLEN]; in do_cli() local
906 if (VCWD_REALPATH(script_file, real_path)) { in do_cli()
907 translated_path = strdup(real_path); in do_cli()

Completed in 46 milliseconds