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

2021-02-28 Thread Kamil Tekiela
Hi All, I have changed the RFC based on the last suggestion. If the argument is not a list array then a ValueError will be thrown. If anyone is opposed to this change and instead would prefer the previous behaviour please explain your reasoning. Regards, Kamil

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

2021-02-27 Thread Kamil Tekiela
On Thu, 25 Feb 2021 at 08:35, Claude Pache wrote: > > Hi, > > In the paragraph “Difference between PDO and mysqli”, you propose: > > “Array keys are completely ignored. mysqli doesn't have emulated prepares > nor does it have named parameters.” > > Instead of ignoring the keys, I think it is bett

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

2021-02-25 Thread Claude Pache
> Le 11 févr. 2021 à 20:43, Kamil Tekiela a écrit : > > 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.p

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