Re: [RFC] path_join function

From: Date: Wed, 17 May 2023 18:51:54 +0000
Subject: Re: [RFC] path_join function
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-120330@lists.php.net to get a copy of this message
On Wed, 17 May 2023 at 18:24, Gunnard engebreth <gunnard@gunnard.org> wrote: > > > Maybe im missing something here but the already available > > dirname() > does this. right? > https://www.php.net/manual/en/function.dirname.php > > dirname just traverses up the directory, it doesn't join paths. For example, this example won't be possible with dirname: path_join('/root', '/foo\\bar/baz', '../test', 'file.json'); // => /foo/bar/test/file.json

« previous php.internals (#120330) next »