Home
last modified time | relevance | path

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

/php-src/ext/openssl/
H A Dphp_openssl.h98 const char *file_path, size_t file_path_len, char *real_path, uint32_t arg_num,
103 const char *file_path, size_t file_path_len, char *real_path, uint32_t arg_num) in php_openssl_check_path() argument
106 file_path, file_path_len, real_path, arg_num, false, false, NULL); in php_openssl_check_path()
111 zend_string *file_path, char *real_path, uint32_t arg_num, in php_openssl_check_path_str_ex() argument
115 ZSTR_VAL(file_path), ZSTR_LEN(file_path), real_path, arg_num, contains_file_protocol, in php_openssl_check_path_str_ex()
121 zend_string *file_path, char *real_path, uint32_t arg_num) in php_openssl_check_path_str() argument
123 return php_openssl_check_path_str_ex(file_path, real_path, arg_num, true, false, NULL); in php_openssl_check_path_str()
H A Dopenssl.c555 const char *file_path, size_t file_path_len, char *real_path, uint32_t arg_num, in php_openssl_check_path_ex() argument
564 real_path[0] = '\0'; in php_openssl_check_path_ex()
583 } else if (expand_filepath(fs_file_path, real_path) == NULL) { in php_openssl_check_path_ex()
604 } else if (!php_check_open_basedir(real_path)) { in php_openssl_check_path_ex()
/php-src/main/
H A Dfopen_wrappers.h25 PHPAPI char *expand_filepath(const char *filepath, char *real_path);
26 PHPAPI char *expand_filepath_ex(const char *filepath, char *real_path, const char *relative_to, siz…
27 PHPAPI char *expand_filepath_with_mode(const char *filepath, char *real_path, const char *relative_…
H A Dfopen_wrappers.c769 return expand_filepath_ex(filepath, real_path, NULL, 0);
818 if (real_path) {
819 memcpy(real_path, filepath, copy_len);
820 real_path[copy_len] = '\0';
822 real_path = estrndup(filepath, copy_len);
825 return real_path;
842 if (real_path) {
844 memcpy(real_path, new_state.cwd, copy_len);
845 real_path[copy_len] = '\0';
847 real_path = estrndup(new_state.cwd, new_state.cwd_length);
[all …]
/php-src/ext/opcache/
H A Dzend_accelerator_blacklist.c242 char buf[MAXPATHLEN + 1], real_path[MAXPATHLEN + 1], *blacklist_path = NULL; in zend_accel_blacklist_loadone() local
259 memset(real_path, 0, sizeof(real_path)); in zend_accel_blacklist_loadone()
295 expand_filepath_ex(path_dup, real_path, blacklist_path, blacklist_path_length); in zend_accel_blacklist_loadone()
297 expand_filepath(path_dup, real_path); in zend_accel_blacklist_loadone()
299 path_length = strlen(real_path); in zend_accel_blacklist_loadone()
312 memcpy(blacklist->entries[blacklist->pos].path, real_path, path_length + 1); in zend_accel_blacklist_loadone()
/php-src/Zend/
H A Dzend_virtual_cwd.h179 CWD_API char *virtual_realpath(const char *path, char *real_path);
211 CWD_API char *tsrm_realpath(const char *path, char *real_path);
277 #define VCWD_REALPATH(path, real_path) virtual_realpath(path, real_path) argument
336 #define VCWD_REALPATH(path, real_path) tsrm_realpath(path, real_path) argument
H A Dzend_virtual_cwd.c1245 CWD_API char *virtual_realpath(const char *path, char *real_path) /* {{{ */ in virtual_realpath() argument
1270 memcpy(real_path, new_state.cwd, len); in virtual_realpath()
1271 real_path[len] = '\0'; in virtual_realpath()
1272 retval = real_path; in virtual_realpath()
1717 CWD_API char *tsrm_realpath(const char *path, char *real_path) /* {{{ */ in tsrm_realpath() argument
1745 if (real_path) { in tsrm_realpath()
1747 memcpy(real_path, new_state.cwd, copy_len); in tsrm_realpath()
1748 real_path[copy_len] = '\0'; in tsrm_realpath()
1750 return real_path; in tsrm_realpath()
/php-src/TSRM/
H A Dtsrm_win32.c205 char real_path[MAXPATHLEN] = {0}; in tsrm_win32_access() local
208 if(tsrm_realpath(pathname, real_path) == NULL) { in tsrm_win32_access()
212 pathname = real_path; in tsrm_win32_access()
275 if(bucket == NULL && !real_path[0]) { in tsrm_win32_access()
278 if(tsrm_realpath(pathname, real_path) != NULL) { in tsrm_win32_access()
279 pathname = real_path; in tsrm_win32_access()
/php-src/sapi/litespeed/
H A Dlsapi_main.c961 char *real_path; in lsapi_activate_user_ini_mk_realpath() local
966 real_path = tsrm_realpath(ctx->path, NULL); in lsapi_activate_user_ini_mk_realpath()
967 if (!real_path) { in lsapi_activate_user_ini_mk_realpath()
970 ctx->path = real_path; in lsapi_activate_user_ini_mk_realpath()
973 real_path = NULL; in lsapi_activate_user_ini_mk_realpath()
980 if (real_path) in lsapi_activate_user_ini_mk_realpath()
981 efree(real_path); in lsapi_activate_user_ini_mk_realpath()
/php-src/sapi/fpm/fpm/
H A Dfpm_main.c652 char * real_path; in php_cgi_ini_activate_user_config() local
661 real_path = tsrm_realpath(path, NULL); in php_cgi_ini_activate_user_config()
662 if (real_path == NULL) { in php_cgi_ini_activate_user_config()
665 real_path_len = strlen(real_path); in php_cgi_ini_activate_user_config()
666 path = real_path; in php_cgi_ini_activate_user_config()
1071 char *real_path = NULL; in init_request_info() local
1114 (real_path = tsrm_realpath(script_path_translated, NULL)) == NULL) in init_request_info()
1324 efree(real_path); in init_request_info()
/php-src/sapi/cgi/
H A Dcgi_main.c800 char *real_path = NULL; local
809 real_path = tsrm_realpath(path, NULL);
810 if (real_path == NULL) {
813 real_path_len = strlen(real_path);
814 path = real_path;
852 if (real_path) {
853 efree(real_path);
1217 char *real_path = NULL; local
1262 (real_path = tsrm_realpath(script_path_translated, NULL)) == NULL)
1425 efree(real_path);
/php-src/sapi/cli/
H A Dphp_cli.c876 char real_path[MAXPATHLEN]; in do_cli() local
877 if (VCWD_REALPATH(script_file, real_path)) { in do_cli()
878 translated_path = strdup(real_path); in do_cli()

Completed in 54 milliseconds