The issue was reported in the past:
http://framework.zend.com/issues/browse/ZF-1343
One can reproduce the bug programming directly with PDO extension. It's
a bug in PDO, not Zend Framework. Feel free to log a bug suggesting a
note in the documentation.
The only other workaround I can think of is to use a parameter for the
pattern string in your LIKE predicate. But this doesn't work if PDO is
"emulating" parameters by interpolating the parameter values into the
SQL string at execute time.
Regards,
Bill Karwin
Julian Davchev wrote:
Yep, seems so. If only mysqli wasn't eating resources like crazy. Had
increase memory limit (+32MB) for app to work with mysqli.
Can you think of workaround at this point so I stick to pdo.
Should I create some ticket of this..and what type, maybe perhaps it
should be mentioned in docu....
Regards,
Bill Karwin wrote:
Julian Davchev wrote:
Stuff I put in form text field (including enluding quotes) ->> ';?%>'
It worked fine for me when I used the Mysqli Adapter. However, I get
the
exceptions you described when I changed the adapter to the Pdo_Mysql
Adapter.
Apparently, PDO isn't clever enough about noticing that the parameter
placeholder is inside a quoted string.
Regards,
Bill Karwin