This code here

http://lxr.php.net/source/php-src/ext/pdo/pdo_stmt.c#301

is maybe the point where a solution can be provided checking for

param <http://lxr.php.net/ident?i=param>->paramno == -1 is enough to
detect an incorrect parameter and silently
ignore it or emit a notice.





2006/8/9, Lukas Smith <[EMAIL PROTECTED]>:

Marian Kostadinov wrote:

> Yes, that's my idea - to ignore keys that are not defined as
placeholder.
> And not only for objects but for arrays also.

I do not know the implementation in PDO, but the implementation I made
in MDB2 only tries to parse the placeholders if it has to emulate or
detects that a placeholder type is used that needs to be rewritten for
the given RDBMS. If PDO has a similar implementation it would mean now
that PDO always has to parse the entire query to determine which keys to
ignore. I feel this is suboptimal and therefore I would be opposed to
this change.

regards,
Lukas

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php


Reply via email to