Home
last modified time | relevance | path

Searched refs:DEFAULT_SLASH (Results 1 – 23 of 23) sorted by relevance

/PHP-8.0/main/
H A Dphp_open_temporary_file.c216 if (len >= 2 && sys_temp_dir[len - 1] == DEFAULT_SLASH) { in php_get_temporary_directory()
219 } else if (len >= 1 && sys_temp_dir[len - 1] != DEFAULT_SLASH) { in php_get_temporary_directory()
257 if (s[len - 1] == DEFAULT_SLASH) { in php_get_temporary_directory()
H A Dphp_ini.c350 spprintf(&libpath, 0, "%s%c%s", extension_dir, DEFAULT_SLASH, filename); /* SAFE */ in php_load_zend_extension_cb()
361 …0, "%s%c" PHP_SHLIB_EXT_PREFIX "%s." PHP_SHLIB_SUFFIX, extension_dir, DEFAULT_SLASH, filename); /*… in php_load_zend_extension_cb()
511 separator_location = strrchr(binary_location, DEFAULT_SLASH); in php_init_config()
681 snprintf(ini_file, MAXPATHLEN, "%s%c%s", debpath, DEFAULT_SLASH, namelist[i]->d_name); in php_init_config()
769 snprintf(ini_file, MAXPATHLEN, "%s%c%s", dirname, DEFAULT_SLASH, ini_filename); in php_parse_user_ini_file()
H A Dfopen_wrappers.c180 path_file = strrchr(path_tmp, DEFAULT_SLASH);
185 path_file = strrchr(path_tmp, DEFAULT_SLASH);
/PHP-8.0/ext/standard/
H A Ddl.c121 if (strchr(filename, '/') != NULL || strchr(filename, DEFAULT_SLASH) != NULL) { in php_load_extension()
134 spprintf(&libpath, 0, "%s%c%s", extension_dir, DEFAULT_SLASH, filename); /* SAFE */ in php_load_extension()
148 …0, "%s%c" PHP_SHLIB_EXT_PREFIX "%s." PHP_SHLIB_SUFFIX, extension_dir, DEFAULT_SLASH, filename); /*… in php_load_extension()
H A Ddir.c124 dirsep_str[0] = DEFAULT_SLASH; in PHP_MINIT_FUNCTION()
442 snprintf(work_pattern, MAXPATHLEN, "%s%c%s", cwd, DEFAULT_SLASH, pattern); in PHP_FUNCTION()
/PHP-8.0/Zend/
H A Dzend_virtual_cwd.c263 retval[0] = DEFAULT_SLASH; in virtual_getcwd_ex()
277 retval[*length-1] = DEFAULT_SLASH; in virtual_getcwd_ex()
554 path[5] = DEFAULT_SLASH; in tsrm_realpath_r()
562 path[j] = DEFAULT_SLASH; in tsrm_realpath_r()
569 path[2] = DEFAULT_SLASH; in tsrm_realpath_r()
868 path[i-1] = DEFAULT_SLASH; in tsrm_realpath_r()
925 path[i-1] = DEFAULT_SLASH; in tsrm_realpath_r()
954 path[j++] = DEFAULT_SLASH; in tsrm_realpath_r()
1110 resolved_path[0] = DEFAULT_SLASH; in virtual_file_ex()
1111 resolved_path[1] = DEFAULT_SLASH; in virtual_file_ex()
[all …]
H A Dzend_virtual_cwd.h73 #define DEFAULT_SLASH '\\' macro
92 #define DEFAULT_SLASH '/' macro
H A Dzend_compile.c1970 path[0] = DEFAULT_SLASH; in zend_dirname()
1991 path[0] = DEFAULT_SLASH; in zend_dirname()
/PHP-8.0/main/streams/
H A Dplain_wrapper.c1337 if ((p = memchr(buf, DEFAULT_SLASH, dir_len))) { in php_plain_files_mkdir()
1346 …while ( (p = strrchr(buf + offset, DEFAULT_SLASH)) || (offset != 1 && (p = strrchr(buf, DEFAULT_SL… in php_plain_files_mkdir()
1350 while (p > buf && *(p-1) == DEFAULT_SLASH) { in php_plain_files_mkdir()
1357 *p = DEFAULT_SLASH; in php_plain_files_mkdir()
1376 *p = DEFAULT_SLASH; in php_plain_files_mkdir()
/PHP-8.0/ext/session/
H A Dmod_mm.c290 if (save_path_len && PS(save_path)[save_path_len - 1] != DEFAULT_SLASH) { in PHP_MINIT_FUNCTION()
291 ps_mm_path[save_path_len] = DEFAULT_SLASH; in PHP_MINIT_FUNCTION()
/PHP-8.0/sapi/litespeed/
H A Dlsapi_main.c573 path[path_len++] = DEFAULT_SLASH; in sapi_lsapi_activate()
845 path[len-1] == DEFAULT_SLASH) in pathlen_without_trailing_slash()
854 while (*s == DEFAULT_SLASH) { in skip_slash()
894 pos = strchr(pos, DEFAULT_SLASH); in walk_down_the_path()
/PHP-8.0/ext/spl/
H A Dphp_spl.c252 #if DEFAULT_SLASH != '\\' in spl_autoload()
258 *ptr = DEFAULT_SLASH; in spl_autoload()
H A Dspl_directory.c205 char slash = SPL_HAS_FLAG(intern->flags, SPL_FILE_DIR_UNIXPATHS) ? '/' : DEFAULT_SLASH; in spl_filesystem_object_get_file_name()
1499 char slash = SPL_HAS_FLAG(intern->flags, SPL_FILE_DIR_UNIXPATHS) ? '/' : DEFAULT_SLASH; in PHP_METHOD()
1550 char slash = SPL_HAS_FLAG(intern->flags, SPL_FILE_DIR_UNIXPATHS) ? '/' : DEFAULT_SLASH; in PHP_METHOD()
/PHP-8.0/ext/xmlreader/
H A Dphp_xmlreader.c1071 if (resolved_path[resolved_path_len - 1] != DEFAULT_SLASH) { in PHP_METHOD()
1072 resolved_path[resolved_path_len] = DEFAULT_SLASH; in PHP_METHOD()
/PHP-8.0/sapi/cli/
H A Dphp_cli_server.c1388 *p++ = DEFAULT_SLASH; in php_cli_server_request_translate_vpath()
1413 if (q[-1] != DEFAULT_SLASH) { in php_cli_server_request_translate_vpath()
1414 *q++ = DEFAULT_SLASH; in php_cli_server_request_translate_vpath()
1437 *q = DEFAULT_SLASH; in php_cli_server_request_translate_vpath()
1439 while (q > buf && *(--q) != DEFAULT_SLASH); in php_cli_server_request_translate_vpath()
/PHP-8.0/sapi/fpm/fpm/
H A Dfpm_main.c668 while ((ptr = strchr(ptr, DEFAULT_SLASH)) != NULL) { in php_cgi_ini_activate_user_config()
721 path[path_len++] = DEFAULT_SLASH; in sapi_cgi_activate()
/PHP-8.0/win32/
H A Dglob.c99 #define SEP DEFAULT_SLASH
/PHP-8.0/ext/zip/
H A Dphp_zip.c643 snprintf(work_pattern, MAXPATHLEN, "%s%c%s", cwd, DEFAULT_SLASH, pattern); in php_zip_glob()
735 snprintf(work_path, MAXPATHLEN, "%s%c%s", cwd, DEFAULT_SLASH, path); in php_zip_pcre()
793 snprintf(fullpath, MAXPATHLEN, "%s%c%s", path, DEFAULT_SLASH, ZSTR_VAL(namelist[i])); in php_zip_pcre()
/PHP-8.0/sapi/phpdbg/
H A Dphpdbg_prompt.c1237 if (strchr(*path, '/') != NULL || strchr(*path, DEFAULT_SLASH) != NULL) { in phpdbg_load_module_or_extension()
1245 spprintf(&libpath, 0, "%s%c%s", extension_dir, DEFAULT_SLASH, *path); /* SAFE */ in phpdbg_load_module_or_extension()
/PHP-8.0/ext/dom/
H A Ddocument.c1228 if (resolved_path[resolved_path_len - 1] != DEFAULT_SLASH) { in dom_document_parser()
1229 resolved_path[resolved_path_len] = DEFAULT_SLASH; in dom_document_parser()
/PHP-8.0/sapi/cgi/
H A Dcgi_main.c837 while ((ptr = strchr(ptr, DEFAULT_SLASH)) != NULL) {
901 path[path_len++] = DEFAULT_SLASH;
/PHP-8.0/ext/phar/
H A Dphar_object.c1458 fname_len = spprintf(&fname, 0, "%s%c%s", test, DEFAULT_SLASH, intern->u.dir.entry.d_name); in phar_build()
4123 new_state.cwd[0] = DEFAULT_SLASH; in phar_extract_file()
/PHP-8.0/ext/sqlite3/
H A Dsqlite3.c426 spprintf(&lib_path, 0, "%s%c%s", extension_dir, DEFAULT_SLASH, extension); in PHP_METHOD()

Completed in 158 milliseconds