Re: [PHP-DEV] Making mysqli easier to use with parameterised queries

2020-12-26 Thread Craig Francis
Hi Aran, I'll need someone else to comment, but I don't think the underlying MySQL libraries support named parameters, so that would be a bigger change (and probably should be under its own RFC). Maybe one day, but for now, I'd simply use PDO, which has its own qwerks (like emulated prepared stat

Re: [PHP-DEV] Making mysqli easier to use with parameterised queries

2020-12-26 Thread Craig Francis
Hi Kamil, Thank you for your initial thoughts, adding the syntax highlighting, and the suggestion to use the splat operator, it's really appreciated. Good to know about mysqli_execute() not actually being deprecated, I'll try to think of a different name, maybe mysql::run(), to keep it short (sug

Re: [PHP-DEV] Making mysqli easier to use with parameterised queries

2020-12-26 Thread Kamil Tekiela
Hi Craig, This is a great proposal, and I am delighted that someone is still interested in mysqli and wants to improve it. I will discuss the proposal below, but first some notes about the RFC itself: 1. mysqli_execute() is not deprecated despite what the PHP manual said for the past 14 years. It