Re: [PHP-DEV] PDO fetch performance problems with many bindparameters

2020-08-29 Thread Matteo Beccati
Hi Christoph, On 28/08/2020 22:57, Christoph M. Becker wrote: > Can we be certain that the relevant bits of the formerly _reserved_flags > are zero-filled for all existing drivers? We can, that's basically the premise of the PR itself: 1. The flags are in the pdo_dbh_t struct which is the dbh->

Re: [PHP-DEV] Re: Should hash comments be deprecated?

2020-08-29 Thread tyson andre
Hi internals, If it turns out that the impact on legacy applications, legacy libraries, or holding back upgrades is a concern for others (I'm not sure what the most common opinion is), another option would be a system ini setting `hash_comment = 0|1|2` 0 - disable `#comment` support completely w

Re: [PHP-DEV] Re: Should hash comments be deprecated?

2020-08-29 Thread David Rodrigues
I have suggested on past a declare() to help in cases like that: declare(php_version = "8.0"); It could be declared to new PHP files, so old files could supports # as comments and new files will not. Other option is supports escreveu: > Hi internals, > > If it turns out that the impact on lega

Re: [PHP-DEV] Re: Should hash comments be deprecated?

2020-08-29 Thread tyson andre
Hi David, > Other option is supports on. That doesn't work when php-src is compiled with support for short_open_tags. It's treated as `https://externals.io/message/108699 Revisiting my earlier suggestion, starting off by just deprecating them without configuration options in 8.1 might be the

[PHP-DEV] Proposal: Adding functions any(iterable $input, ?callable $cb = null, int $use_flags=0) and all(...)

2020-08-29 Thread tyson andre
Hi internals, The primitives any() and all() are a common part of many programming languages and help in avoiding verbosity or unnecessary abstractions. - https://hackage.haskell.org/package/base-4.14.0.0/docs/Prelude.html#v:any - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Referenc

Re: [PHP-DEV] Proposal: Adding functions any(iterable $input, ?callable $cb = null, int $use_flags=0) and all(...)

2020-08-29 Thread Alex
I like it! What is the $use_flags parameter for? On Sat, Aug 29, 2020 at 10:24 PM tyson andre wrote: > Hi internals, > > The primitives any() and all() are a common part of many programming > languages and help in avoiding verbosity or unnecessary abstractions. > > - > https://hackage.haskell.o

Re: [PHP-DEV] Proposal: Adding functions any(iterable $input, ?callable $cb = null, int $use_flags=0) and all(...)

2020-08-29 Thread Josh Bruce
Hello! I’m still finding my understanding of actual internals, so can only comment from a PHP developer perspective. The “any” check is just to if anything in the itrerable passes the predicate, yeah?? What I find myself doing more often is wanting the first thing to satisfy the predicate - a

Re: [PHP-DEV] Proposal: Adding functions any(iterable $input, ?callable $cb = null, int $use_flags=0) and all(...)

2020-08-29 Thread tyson andre
Hi Alex, > I like it! > > What is the $use_flags parameter for? It's for deciding what parameters to pass to callback, like https://www.php.net/array_filter - the reflection name should probably just be $flag Occasionally, the key might be useful to check against, e.g. the identifier of an i

Re: [PHP-DEV] Proposal: Adding functions any(iterable $input, ?callable $cb = null, int $use_flags=0) and all(...)

2020-08-29 Thread tyson andre
> The “any” check is just to if anything in the iterable passes the predicate, > yeah?? > > What I find myself doing more often is wanting the first thing to satisfy the > predicate - a “first” function, if you will. There's multiple things such a function could return - The key of the entry (

Re: [PHP-DEV] Proposal: Adding functions any(iterable $input, ?callable $cb = null, int $use_flags=0) and all(...)

2020-08-29 Thread Marco Pivetta
Hey Tyson, On Sat, Aug 29, 2020 at 10:24 PM tyson andre wrote: > Hi internals, > > The primitives any() and all() are a common part of many programming > languages and help in avoiding verbosity or unnecessary abstractions. > > - > https://hackage.haskell.org/packa

Re: [PHP-DEV] Proposal: Adding functions any(iterable $input, ?callable $cb = null, int $use_flags=0) and all(...)

2020-08-29 Thread Mike Schinkel
> On Aug 29, 2020, at 7:18 PM, tyson andre wrote: > > Hi Alex, > >> I like it! >> >> What is the $use_flags parameter for? > > It's for deciding what parameters to pass to callback, like > https://www.php.net/array_filter - the reflection name should probably just > be $flag > > Occasional