Project

General

Profile

Actions

Feature #20971

open

Deprecate `rb_path_check`

Added by Earlopain (Earlopain _) 2 days ago. Updated about 3 hours ago.

Status:
Assigned
Target version:
-
[ruby-core:120335]

Description

With #16131, various code around $SAFE, taint, etc. has been deprecated and removed. GH PR https://github.com/ruby/ruby/pull/2476.

Now, rb_path_check still exists as part of the public API, with Ruby itself never using or testing it. I believe it should have been deprecated and was simply missed. Should it be deprecated today or is that not worth the effort?

Docs for it are pretty vague: https://github.com/ruby/ruby/blob/33f95d632dce42fac35da29eaed33f0a5a4f0dcb/include/ruby/internal/intern/hash.h#L289-L297

This function is mysterious. What it does is not immediately obvious. Also what it does seems platform dependent.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0