I'm in favor for this. I think that, since you already have a built-in file
API, adding useful functions is always good. I use *\str_starts_with* and
*\str_ends_with* a lot in my code. In Laravel, which is the most used
Framework these days, you have the \Illuminate\Supports\Str::startsWith and
\Il
On 12/9/23 10:40, David CARLIER wrote:
> On Fri, 8 Dec 2023 at 16:10, Niels Dossche wrote:
>
>> Hi David
>>
>> On 08/12/2023 10:08, David CARLIER wrote:
>>> I think these would be great additions to PHP as working with paths
>> and files is a core part of any programming language.
>>>
>>>
>>>
On Fri, 8 Dec 2023 at 16:10, Niels Dossche wrote:
> Hi David
>
> On 08/12/2023 10:08, David CARLIER wrote:
> > I think these would be great additions to PHP as working with paths
> and files is a core part of any programming language.
> >
> >
> > Seems like it, is there an argument to be made
On Dec 8, 2023, at 09:13, Pierre Joye wrote:
> 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.
Are you thinking of realpath()? That also expands symbolic links, wh
On Fri, Dec 8, 2023, 3:44 PM Max Semenik wrote:
> On Wed, Dec 6, 2023 at 10:20 PM Niels Dossche
> 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://gith
Hi David
On 08/12/2023 10:08, David CARLIER wrote:
> I think these would be great additions to PHP as working with paths and
> files is a core part of any programming language.
>
>
> Seems like it, is there an argument to be made to, let's say, in the
> performance side ?
A native implem
Hi Niels,
On Wed, 6 Dec 2023 at 19:20, Niels Dossche 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 i
On Fri, Dec 8, 2023 at 11:45 AM Lanre Waju wrote:
> So your suggestion for simple file stuff is to download composer?
>
Not necessarily, but I'd like to have more discussion of pros and cons.
--
Best regards,
Max Semenik
So your suggestion for simple file stuff is to download composer?
On 2023-12-08 1:43 a.m., Max Semenik wrote:
On Wed, Dec 6, 2023 at 10:20 PM Niels Dossche
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 t
On Wed, Dec 6, 2023 at 10:20 PM Niels Dossche
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 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.
...
> Wha
>
> There could be OOP-style alternatives too, e.g. Rust has a PathBuf struct
> with methods that are used to build paths.
> However if we were to choose this route then we need to be aware that
> interoperability with existing filesystem functions would be much harder
> because they all work di
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
13 matches
Mail list logo