]> granicus.if.org Git - php/commit
Fix for #35332.
authorWez Furlong <wez@php.net>
Fri, 25 Nov 2005 00:29:04 +0000 (00:29 +0000)
committerWez Furlong <wez@php.net>
Fri, 25 Nov 2005 00:29:04 +0000 (00:29 +0000)
commitc2d53719c2ad50d354c186c439c2c7e4528e0ccc
tree1181c861287012353b00f78558a15795b5a0cd9a
parentbb2f034eff184e230c0e6d5b9f1fc3be396cff50
Fix for #35332.
The problem is caused by the user mixing positional and named parameters.
PDO was blindly adding the parameters, unaware that the same parameters were
already allocated by position.

What we do now is register the parameter with the driver before adding it to
any hash.  This gives the driver an opportunity to normalize the name and
parameter number.  PDO can then ensure that only one entry is occupied in the
hash for a given parameter.
ext/pdo/pdo_stmt.c