Re: Filesystem path APIs

From: Date: Fri, 08 Dec 2023 17:13:55 +0000
Subject: Re: Filesystem path APIs
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-121966@lists.php.net to get a copy of this message
On Fri, Dec 8, 2023, 3:44 PM Max Semenik <maxsem.wiki@gmail.com> wrote: > On Wed, Dec 6, 2023 at 10:20 PM Niels Dossche <dossche.niels@gmail.com> > wrote: > > > Hi internals > > > > I'd like to start a pre-RFC discussion about filesystem path APIs in PHP. > > The reason I bring this up is because of this recent feature request: > > https://github.com/php/php-src/issues/11258 > > > > The feature request is about the following: > > We already have some functions to work with paths in PHP, e.g. basename, > > dirname, realpath. > > We do not have some common path APIs that you can find in other languages > > like: path_join to join paths and path_normalize to normalize paths. > > > > We have a lot of commonly used functionality that's successfully fulfilled > by Composer packages - does this really have to be core functionality? > if any of them could be a easy win, relative path resolver without checking its existence would be one. It is available internally but the existence check option is not exposed. >

« previous php.internals (#121966) next »