[PHP-DEV] english documentation list?

2021-01-04 Thread j adams
Hello! I apologize for troubling this list. I found a problem with the english language documentation on mysqli_query and have attempted to send an email to php...@lists.php.net but am totally unsure if anyone will ever receive it. In any case, I expect the documentation people may need some help c

Re: [PHP-DEV] [RFC] Enumerations, Round 2

2021-01-04 Thread Mike Schinkel
> On Jan 4, 2021, at 9:05 AM, Rowan Tommins wrote: > > On 04/01/2021 11:15, Markus Fischer wrote: >> On 03.01.21 12:01, Mike Schinkel wrote: >>> So in my perfect world this: >>> >>> enum BookingStatus { >>> case PENDING; >>> case CONFIRMED; >>> case CANCELLED; >>> } >>> >>> Wo

Re: [PHP-DEV] Re: [RFC] Add is_list(mixed $value): bool to check for list-like arrays

2021-01-04 Thread Theodore Brown
On Sun, Jan 3, 2021 at 8:56 PM Larry Garfield wrote: > On Sun, Jan 3, 2021, at 12:17 PM, tyson andre wrote: > > > I've created the RFC https://wiki.php.net/rfc/is_list > > > > > > This adds a new function `is_list(mixed $value): bool` that will > > > return true if the type of $value is array and

Re: [PHP-DEV] Straw poll: Naming for `*any()` and `*all()` on iterables

2021-01-04 Thread Levi Morrison via internals
On Sat, Dec 26, 2020 at 10:02 AM Niklas Keller wrote: >> >> I want to re-iterate my opinion on this discussion thread: anything >> with a prefix is a hard-no from me. Namespaces are literally designed >> for this, and I will not vote "yes" to `iter_all`, `iterable_all`, >> etc, no matter what the

Re: [PHP-DEV] Proposal: Adding SplFixedArray->push() and SplFixedArray->pop()

2021-01-04 Thread Levi Morrison via internals
On Tue, Dec 29, 2020 at 10:04 AM tyson andre wrote: > > Hi Internals, > > Currently, PHP doesn't have a built in memory-efficient array type with > convenient push, pop, and other operations, similar to a list/vector in other > languages. > The closest built in in SPL is > [SplFixedArray](https

Re: [PHP-DEV] [RFC] Enumerations, Round 2

2021-01-04 Thread Pierre R.
Le 04/01/2021 à 16:12, Markus Fischer a écrit : I can't say whether just `: string` is too much, but in general I like it. I can follow the reasoning having no value by default and opt this in. The opt-in you suggested is very low-overhead (albeit a bit subtle, but maybe someone has a smart

Re: [PHP-DEV] [RFC] Enumerations, Round 2

2021-01-04 Thread Markus Fischer
On 04.01.21 16:12, Markus Fischer wrote: I can't say whether just `: string` is too much, but in general I like it. Apologies, I meant to write "too magic" :} - Markus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] [RFC] Enumerations, Round 2

2021-01-04 Thread Markus Fischer
Hi, On 04.01.21 15:05, Rowan Tommins wrote: On 04/01/2021 11:15, Markus Fischer wrote: On 03.01.21 12:01, Mike Schinkel wrote: So in my perfect world this: enum BookingStatus {   case PENDING;   case CONFIRMED;   case CANCELLED; } Would be equivalent to: enum BookingStatus {    

Re: [PHP-DEV] [RFC] Enumerations, Round 2

2021-01-04 Thread Rowan Tommins
On 04/01/2021 11:15, Markus Fischer wrote: On 03.01.21 12:01, Mike Schinkel wrote: So in my perfect world this: enum BookingStatus {   case PENDING;   case CONFIRMED;   case CANCELLED; } Would be equivalent to: enum BookingStatus {   case PENDING = "PENDING";   case CONFIR

Re: [PHP-DEV] [RFC] Enumerations, Round 2

2021-01-04 Thread Markus Fischer
Hi, On 03.01.21 12:01, Mike Schinkel wrote: So in my perfect world this: enum BookingStatus { case PENDING; case CONFIRMED; case CANCELLED; } Would be equivalent to: enum BookingStatus { case PENDING = "PENDING"; case CONFIRMED = "CONFIRMED"; case CANCELLED

Re: [PHP-DEV] Does PHP ever stack allocate?

2021-01-04 Thread Olle Härstedt
2021-01-03 17:43 GMT, tyson andre : > Hi Olle, > >> Thanks Sara! I realize I should have been more precise: Can PHP >> allocate non-reference counted memory that automatically is freed when >> leaving scope, similar to what Go does with escape analysis? >> >> Article describing the Go mechanism: >>

Re: [PHP-DEV] [RFC] Configurable callback to dump results of expressions in `php -a`

2021-01-04 Thread Rowan Tommins
On 03/01/2021 20:45, tyson andre wrote: I was saying that I'd planned to propose defaults if this passed. Then I guess my feedback can be summarised as: propose these default implementations first, rather than last. Start by improving the out-of-the-box experience, and then look at what hook

Re: [PHP-DEV] Travis CI migration?

2021-01-04 Thread Christoph M. Becker
On 03.01.2021 at 03:51, Stanislav Malyshev wrote: >> The exception being the PHP-7.3 branch, which in security mode.  Unless >> we add GH CI for that branch as well, switching to travis-ci.com seems >> to be useful.  Maybe we get enough free credits for the relatively rare >> builds? > > I don't t