Re: [PHP-DEV] feat(pdo): add `clearParams` method

2021-05-04 Thread Juanra GM
Hello Kamil, thanks you for your reply. I am going to enumerate the answers. 1. `PDOStatement::clearParams` should reset the statament params ( https://github.com/php/php-src/blob/31c74aaeebf3af3c87e3981703f9f775c65600b9/ext/pdo/pdo_stmt.c#L406-L410 ). 2. Recreate the prepared statement is very c

[PHP-DEV] feat(pdo): add `clearParams` method

2021-05-04 Thread Juanra GM
Hi everybody. Currently it is not possible to clear the PDOStatement params, so it would be useful to add a method for it. Why? `PDOStatement::execute` admits the `$input_parameters` argument, but all values are passed as `PDO::PARAM_STR` and that hit a performance problem at MariaDB. The fix it

[PHP-DEV] Re: Named Parameters

2010-04-13 Thread GM
Personally, I would strongly prefer the caller syntax my_func('a', 'b', 'c' => 'd', $e => $f) just to because 1) it's consistent with array declaration syntax 2) it allows arbitrary names for parameters, which will become the array keys ... and can include funny characters 3) naked

[PHP-DEV] Named Parameters

2010-04-02 Thread GM
I was hoping to start some discussion regarding named parameters. I'm sorry if it's frowned upon to re-post or re-paste something, but I'm thinking that perhaps my email (with the subject Re: Hi) was overlooked on the list in whatever readers, so I'm going to post it again, this time with a

Re: [PHP-DEV] Hi

2010-03-30 Thread GM
ak any PECL extensions? If so, are we planning to maintain compatibility with all PECL extensions written for earlier versions of PHP? Is it worth it to introduce this feature? What do you guys think? I really want PHP 6 to rock and have an even better reputation among businesses, programmers, et

[PHP-DEV] Hi

2010-03-29 Thread GM
Hey guys. I'm glad to be on the internals list -- I just signed up. I've been a PHP developer for many years, and I have a couple ideas that might make PHP 6 better. Is this a good forum to bring up proposals of that kind? Sincerely, Greg Magarshak PS: By the way, I'm wondering what the pr