Re: [PDO] Fixing bug #44639 for mysql
[email protected] (Johannes Schlüter) Wed, 28 Oct 2009 15:17:03 +0100
| Newsgroups | php.pdo |
|---|---|
| Organization | Sun Microsystems |
| Message-ID | <1256739423.2608.201.camel@guybrush> |
On Tue, 2009-10-27 at 17:51 +0100, Oskar Eisemuth wrote:
> Hello
>
> If a user does bindValue(':limit', $someval, PDO::PARAM_INT), there is a
> problem with the mysql driver. (Bug #44639)
> $someval should be (converted to) integer with PARAM_INT, but when the
> driver creates the query it does quoting instead when it's a string.
>
> mysql_statment.c shows:
> <snip>
> pdo_mysql_stmt_param_hook
> ....
> /* Is it really correct to check the zval's type? - But well, that's
> what the old code below does, too */
> </snip>
I remember playing with that part of the code. There was an issue when
using the passed type. But I don't remember the actual problem.
Will try to look into this.
johannes
--
Johannes Schlüter - MySQL Engineering, Connectors and Client Connectivity
Sun Microsystems GmbH, Sonnenallee 1, 85551 Kirchheim-Heimstetten
Amtsgericht München: HRB161028
Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering