Re: [PHP-DEV] Filesystem path APIs

2023-12-08 Thread Dusk
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

Re: [PHP-DEV] Filesystem path APIs

2023-12-08 Thread Pierre Joye
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

Re: [PHP-DEV] Filesystem path APIs

2023-12-08 Thread Niels Dossche
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

Re: [PHP-DEV] PHP test coverage

2023-12-08 Thread Niels Dossche
Hi On 08/12/2023 17:04, Vinicius Dias wrote: >> The code coverage report can be found at >> https://app.codecov.io/github/php/php-src > > Ah, perfect. Thank you for sharing. I will take a closer look after > work, but something seems weird to me. Here[1] you see that > ctype_alpha seems to be un

Re: [PHP-DEV] PHP test coverage

2023-12-08 Thread Vinicius Dias
> The code coverage report can be found at > https://app.codecov.io/github/php/php-src Ah, perfect. Thank you for sharing. I will take a closer look after work, but something seems weird to me. Here[1] you see that ctype_alpha seems to be uncovered, but here[2] we can see that it's tested. [1]:

Re: [PHP-DEV] Re: [RFC][Under discussion] RFC1867 for non-POST HTTP verbs

2023-12-08 Thread Ilija Tovilo
Hi Sam >> On Fri, Oct 6, 2023 at 3:44 PM Ilija Tovilo wrote: >> > https://wiki.php.net/rfc/rfc1867-non-post On Thu, Dec 7, 2023 at 6:04 PM Sam I wrote: > > Hey, I'm not sure if this is bikeshedding, but the concept of parsing bodies > for non-POST requests lands really close to a proposal for a

Re: [PHP-DEV] Proposal: Arbitrary precision native scalar type

2023-12-08 Thread Alexander Pravdin
On Thu, Dec 7, 2023 at 11:36 PM G. P. B. wrote: - Objects are always casted to true, GMP(0) will equal to true. >> > > This is incorrect, GMP object do _not_ support casts to bool > See https://3v4l.org/LHpD1 > This is weird. Any PHP user would expect that a zero number can be easily casted to b

Re: [PHP-DEV] Proposal: Arbitrary precision native scalar type

2023-12-08 Thread Alexander Pravdin
On Thu, Dec 7, 2023 at 11:27 PM Jordan LeDoux wrote: You are going to run into some very difficult corners on this one. For the > last... 8 years i guess? I have been working on an arbitrary precision > library for PHP in userland. It utilizes BCMath, ext-decimal, and GMP, > depending on what is

Re: [PHP-DEV] Filesystem path APIs

2023-12-08 Thread David CARLIER
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

Re: [PHP-DEV] Filesystem path APIs

2023-12-08 Thread Max Semenik
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

Re: [PHP-DEV] Filesystem path APIs

2023-12-08 Thread Lanre Waju
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

Re: [PHP-DEV] Filesystem path APIs

2023-12-08 Thread Max Semenik
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