Re: [RFC] path_join function

From: Date: Wed, 17 May 2023 15:36:25 +0000
Subject: Re: [RFC] path_join function
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-120327@lists.php.net to get a copy of this message
Hi On 5/17/23 16:54, php@shyim.de wrote:
When you concat just the paths you have to think about: - normalize string part to strip ending slash
Why is it necessary to strip the ending slash?
- for windows compatibility you have to use DIRECTORY_SEPERATOR
I don't use Windows, but to the best of my knowledge, using the '/' is equivalent to the backslash. Is there a case where the difference matters?
I am really looking for your feedback, right now I have no “karma points” to create a RFC in the wiki :)
If you want to proceed with an actual RFC, the folks handing out the RFC karma would need your Wiki name. Best regards Tim Düsterhus

« previous php.internals (#120327) next »