Home
last modified time | relevance | path

Searched refs:IS_SLASH (Results 1 – 22 of 22) sorted by relevance

/PHP-7.4/Zend/
H A Dzend_virtual_cwd.h77 #define IS_SLASH(c) ((c) == '/' || (c) == '\\') macro
85 (len >= 2 && IS_SLASH(path[0]) && IS_SLASH(path[1]))
87 … is local */isalpha(path[0]) && path[1] == ':' || /* is UNC */IS_SLASH(path[0]) && IS_SLASH(path[1…
102 #define IS_SLASH(c) ((c) == '/') macro
114 (IS_SLASH(path[0]))
H A Dzend_virtual_cwd.c526 while (i > start && !IS_SLASH(path[i-1])) { in tsrm_realpath_r()
550 while (j > start && !IS_SLASH(path[j])) { in tsrm_realpath_r()
557 IS_SLASH(path[2])) { in tsrm_realpath_r()
564 IS_SLASH(path[j+3])) { in tsrm_realpath_r()
1050 if (IS_SLASH(path[0])) { in virtual_file_ex()
1057 while (IS_SLASH(state->cwd[state_cwd_length])) { in virtual_file_ex()
1061 !IS_SLASH(state->cwd[state_cwd_length])) { in virtual_file_ex()
1064 while (IS_SLASH(state->cwd[state_cwd_length])) { in virtual_file_ex()
1068 !IS_SLASH(state->cwd[state_cwd_length])) { in virtual_file_ex()
1119 while (!IS_SLASH(resolved_path[start])) { in virtual_file_ex()
[all …]
/PHP-7.4/main/
H A Dfopen_wrappers.c113 if (ptr[0] == '.' && ptr[1] == '.' && (ptr[2] == '\0' || IS_SLASH(ptr[2]))) { in ZEND_INI_MH()
417 if (!IS_SLASH(filename[length - 1])) { /* length is never 0 */
420 if (IS_SLASH(path_info[0])) {
508 (IS_SLASH(filename[1]) ||
509 ((filename[1] == '.') && IS_SLASH(filename[2])))) ||
516 filename_length >=2 && IS_SLASH(filename[0]) && !IS_SLASH(filename[1]) ||
592 while ((--exec_fname_length < SIZE_MAX) && !IS_SLASH(exec_fname[exec_fname_length]));
674 while ((--exec_fname_length < SIZE_MAX) && !IS_SLASH(exec_fname[exec_fname_length]));
H A Dphp_open_temporary_file.c134 if (IS_SLASH(new_state.cwd[new_state.cwd_length - 1])) { in php_do_open_temporary_file()
H A Dphp_ini.c358 slash_suffix = IS_SLASH(extension_dir[strlen(extension_dir)-1]); in php_load_zend_extension_cb()
694 if (IS_SLASH(debpath[lenpath - 1])) { in php_init_config()
/PHP-7.4/ext/standard/
H A Ddl.c134 slash_suffix = IS_SLASH(extension_dir[strlen(extension_dir)-1]); in php_load_extension()
H A Ddir.c457 if (IS_SLASH(*pattern)) { in PHP_FUNCTION()
/PHP-7.4/sapi/fpm/fpm/
H A Dfpm_main.c724 if (!IS_SLASH(SG(request_info).path_translated[path_len])) { in sapi_cgi_activate()
744 if (doc_root_len > 0 && IS_SLASH(doc_root[doc_root_len - 1])) { in sapi_cgi_activate()
872 if ((p == path || IS_SLASH(*(p-1))) && in is_valid_path()
873 (*(p+2) == 0 || IS_SLASH(*(p+2))) in is_valid_path()
882 if (IS_SLASH(*(p-1)) && in is_valid_path()
883 (*(p+2) == 0 || IS_SLASH(*(p+2))) in is_valid_path()
/PHP-7.4/win32/
H A Dglob.c571 !IS_SLASH(pathend[-1])) && (S_ISDIR(sb.st_mode) ||
587 while (*p != EOS && !IS_SLASH(*p)) {
598 while (IS_SLASH(*pattern)) {
H A Dwinutil.c445 if (name[0] == '.' && IS_SLASH(name[1])) { in is_compatible()
/PHP-7.4/ext/phar/
H A Ddirstream.c619 IS_SLASH(ZSTR_VAL(str_key)[path_len])) { in phar_wrapper_rmdir()
636 IS_SLASH(ZSTR_VAL(str_key)[path_len])) { in phar_wrapper_rmdir()
H A Dstream.c895 IS_SLASH(ZSTR_VAL(str_key)[from_len])) { in phar_wrapper_rename()
920 (ZSTR_LEN(str_key) == from_len || IS_SLASH(ZSTR_VAL(str_key)[from_len]))) { in phar_wrapper_rename()
938 (ZSTR_LEN(str_key) == from_len || IS_SLASH(ZSTR_VAL(str_key)[from_len]))) { in phar_wrapper_rename()
H A Dphar_object.c1545 …e, base, base_len) == 0 && ((ch = fname[base_len - IS_SLASH(base[base_len - 1])]) == '\0' || IS_SL… in phar_build()
/PHP-7.4/main/streams/
H A Dplain_wrapper.c1545 if (*filename == '.' && (IS_SLASH(filename[1]) || filename[1] == '.')) { in _php_stream_fopen_with_path()
1550 if (!IS_SLASH(*ptr)) { /* not a relative path after all */ in _php_stream_fopen_with_path()
1576 if (IS_SLASH(filename[0])) { in _php_stream_fopen_with_path()
1610 while ((--exec_fname_length < SIZE_MAX) && !IS_SLASH(exec_fname[exec_fname_length])); in _php_stream_fopen_with_path()
/PHP-7.4/sapi/cgi/
H A Dcgi_main.c902 if (!IS_SLASH(SG(request_info).path_translated[path_len])) {
930 if (doc_root_len > 0 && IS_SLASH(doc_root[doc_root_len - 1])) {
1075 if (UNEXPECTED(*p == '.') && *(p+1) == '.' && (!*(p+2) || IS_SLASH(*(p+2)))) {
1079 if (IS_SLASH(*p)) {
1085 if (UNEXPECTED(!*p) || UNEXPECTED(IS_SLASH(*p))) {
/PHP-7.4/ext/zip/
H A Dphp_zip.c112 while (i > 0 && !IS_SLASH(path[i])) { in php_zip_make_relative_path()
175 if (path_cleaned_len > 1 && IS_SLASH(path_cleaned[path_cleaned_len - 1])) { in php_zip_extract_file()
541 if (IS_SLASH(*pattern)) { in php_zip_glob()
635 if (IS_SLASH(*path)) { in php_zip_pcre()
/PHP-7.4/sapi/litespeed/
H A Dlsapi_main.c579 if (!IS_SLASH(SG(request_info).path_translated[path_len])) { in sapi_lsapi_activate()
/PHP-7.4/sapi/phpdbg/
H A Dphpdbg_prompt.c1252 if (IS_SLASH(extension_dir[extension_dir_len-1])) { in phpdbg_load_module_or_extension()
/PHP-7.4/ext/opcache/
H A Dzend_file_cache.c179 if (IS_SLASH(*s)) {
H A DZendAccelerator.c1267 while ((--parent_script_len > 0) && !IS_SLASH(ZSTR_VAL(parent_script)[parent_script_len])); in accel_make_persistent_key()
/PHP-7.4/ext/sqlite3/
H A Dsqlite3.c437 if (IS_SLASH(extension_dir[extension_dir_len-1])) { in PHP_METHOD()
/PHP-7.4/ext/spl/
H A Dspl_directory.c245 #define IS_SLASH_AT(zs, pos) (IS_SLASH(zs[pos]))

Completed in 128 milliseconds