[PHP-DEV] Re: RFC: CachedIterable (rewindable, allows any key&repeating keys)

2021-02-11 Thread tyson andre
Hi internals, > I've created a new RFC https://wiki.php.net/rfc/cachediterable adding > CachedIterable, > which eagerly evaluates any iterable and contains an immutable copy of the > keys and values of the iterable it was constructed from > > This has the proposed signature: > > ``` > final cl

Re: [PHP-DEV] [RFC] mysqli bind in execute

2021-02-11 Thread Craig Francis
On Thu, 11 Feb 2021 at 7:43 pm, Kamil Tekiela wrote: > https://wiki.php.net/rfc/mysqli_bind_in_execute > > I'd be happy to hear your comments. Please let this pass. The current approach is absolutely horrible and causes so many developers using mysqli to do things incorrectly (like trying to

[PHP-DEV] [RFC] mysqli bind in execute

2021-02-11 Thread Kamil Tekiela
Hi internals, I am proposing the next change to improve mysqli extension. This RFC's goal is to add a new optional parameter to mysqli_stmt:execute() that will take an array of parameters. The RFC is located at https://wiki.php.net/rfc/mysqli_bind_in_execute I'd be happy to hear your comments.

Re: [PHP-DEV] Re: Proposal: namespace the SPL

2021-02-11 Thread Chase Peeler
On Thu, Feb 11, 2021 at 1:08 PM Lynn wrote: > > > On Thu, Feb 11, 2021 at 6:55 PM Levi Morrison via internals < > internals@lists.php.net> wrote: > >> I don't know the answer to that question. However, I don't think we >> should add a deprecation on the very first version that we add the >> alias

Re: [PHP-DEV] Proposal: namespace the SPL

2021-02-11 Thread Rowan Tommins
On 11/02/2021 16:39, Levi Morrison wrote: 2. Any new types going into `ext/spl` use the `Spl` namespace. New types added to `ext/spl` should be either related to data structures or iterators, which is the bulk of what the SPL is. a. This rule is to help prevent the SPL from becoming the d

Re: [PHP-DEV] Re: Proposal: namespace the SPL

2021-02-11 Thread Lynn
On Thu, Feb 11, 2021 at 6:55 PM Levi Morrison via internals < internals@lists.php.net> wrote: > I don't know the answer to that question. However, I don't think we > should add a deprecation on the very first version that we add the > aliases anyway. I think that would make for a bad upgrade exper

Re: [PHP-DEV] Re: Proposal: namespace the SPL

2021-02-11 Thread Levi Morrison via internals
On Thu, Feb 11, 2021 at 10:48 AM Chase Peeler wrote: > > > > On Thu, Feb 11, 2021 at 12:23 PM Levi Morrison via internals > wrote: >> >> On Thu, Feb 11, 2021 at 9:57 AM Mark Randall wrote: >> > >> > On 11/02/2021 16:39, Levi Morrison wrote: >> > > Let me know what you think. I am hopeful this a

Re: [PHP-DEV] Re: Proposal: namespace the SPL

2021-02-11 Thread Chase Peeler
On Thu, Feb 11, 2021 at 12:23 PM Levi Morrison via internals < internals@lists.php.net> wrote: > On Thu, Feb 11, 2021 at 9:57 AM Mark Randall wrote: > > > > On 11/02/2021 16:39, Levi Morrison wrote: > > > Let me know what you think. I am hopeful this approach will work > because: > > > 1. It is

Re: [PHP-DEV] Re: Proposal: namespace the SPL

2021-02-11 Thread Levi Morrison via internals
On Thu, Feb 11, 2021 at 9:57 AM Mark Randall wrote: > > On 11/02/2021 16:39, Levi Morrison wrote: > > Let me know what you think. I am hopeful this approach will work because: > > 1. It is focused on a specific area which already has an established > > "namespace", but in name-only (not technica

[PHP-DEV] Re: Proposal: namespace the SPL

2021-02-11 Thread Mark Randall
On 11/02/2021 16:39, Levi Morrison wrote: Let me know what you think. I am hopeful this approach will work because: 1. It is focused on a specific area which already has an established "namespace", but in name-only (not technically). 2. It does not try to solve the larger problem, which has a

[PHP-DEV] Proposal: namespace the SPL

2021-02-11 Thread Levi Morrison
Hello, everyone, There has been a lot of disagreement about namespacing, and people seem to have different viewpoints. I am not sure how to reconcile this broader discussion. However, there are certain names in the global namespace which I am hopeful we can revolve. For instance, `SplObserver`, `

Re: [PHP-DEV] Requesting RFC karma for your wiki account.

2021-02-11 Thread G. P. B.
On Thu, 11 Feb 2021 at 02:03, Russell Stuart < russell+lists.php@stuart.id.au> wrote: > I'm created a branch to php-src that makes pdo_firebird::getColumnMeta() > return "native_type" in addition to "pdo_type". It also fixes a bug in > the current getColumnMeta() (of the SIG_SEGV variety), an

Re: [PHP-DEV] [VOTE]: Change Default mysqli Error Mode

2021-02-11 Thread Christian Schneider
Am 11.02.2021 um 00:35 schrieb Kamil Tekiela : > I have started voting on https://wiki.php.net/rfc/mysqli_default_errmode > The voting period is 2020-02-11 -- 2020-02-28 For the record: I do not think the wording fo the "Backward Incompatible Changes" section is appropriate, especially the *only*

[PHP-DEV] Re: Changes to finfo and imap functions

2021-02-11 Thread Christoph M. Becker
On 11.02.2021 at 05:57, Brent Roose wrote: > The chagelog for PHP 8.1 lists the two following changes: > > > - Fileinfo: > . The fileinfo functions now accept and return, respectively, finfo objects > instead of resources. > > - IMAP: > . The IMAP functions now accept and return, respectiv