Lines Matching refs:path_len
441 size_t path_len; in spl_filesystem_info_set_filename() local
447 path_len = ZSTR_LEN(path); in spl_filesystem_info_set_filename()
448 if (path_len > 1 && IS_SLASH_AT(ZSTR_VAL(path), path_len-1)) { in spl_filesystem_info_set_filename()
450 path_len--; in spl_filesystem_info_set_filename()
451 } while (path_len > 1 && IS_SLASH_AT(ZSTR_VAL(path), path_len - 1)); in spl_filesystem_info_set_filename()
452 intern->file_name = zend_string_init(ZSTR_VAL(path), path_len, 0); in spl_filesystem_info_set_filename()
456 while (path_len > 1 && !IS_SLASH_AT(ZSTR_VAL(path), path_len-1)) { in spl_filesystem_info_set_filename()
457 path_len--; in spl_filesystem_info_set_filename()
459 if (path_len) { in spl_filesystem_info_set_filename()
460 path_len--; in spl_filesystem_info_set_filename()
466 intern->path = zend_string_init(ZSTR_VAL(path), path_len, 0); in spl_filesystem_info_set_filename()
886 size_t path_len = ZSTR_LEN(path) + 1; in PHP_METHOD() local
887 RETVAL_STRINGL(ZSTR_VAL(intern->file_name) + path_len, ZSTR_LEN(intern->file_name) - path_len); in PHP_METHOD()
2023 size_t path_len; in PHP_METHOD() local
2049 path_len = strlen(intern->u.file.stream->orig_path); in PHP_METHOD()
2051 if (path_len > 1 && IS_SLASH_AT(intern->u.file.stream->orig_path, path_len-1)) { in PHP_METHOD()
2052 path_len--; in PHP_METHOD()
2055 while (path_len > 1 && !IS_SLASH_AT(intern->u.file.stream->orig_path, path_len-1)) { in PHP_METHOD()
2056 path_len--; in PHP_METHOD()
2059 if (path_len) { in PHP_METHOD()
2060 path_len--; in PHP_METHOD()
2063 intern->path = zend_string_init(intern->u.file.stream->orig_path, path_len, 0); in PHP_METHOD()