Note that PDO parser supports backslash escapes

Cf. bug #79276.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349240 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Christoph Michael Becker 2020-02-20 08:22:39 +00:00
parent e78b64d1cc
commit b37762aa55

View file

@ -54,6 +54,18 @@
style parameter markers to something more appropriate, if the driver
supports one style but not the other.
</para>
<note>
<simpara>
As of PHP 5.3.0, the parser used for emulated prepared statements and for
rewriting named or question mark style parameters supports the non standard
backslash escapes for single- and double quotes. That means that terminating
quotes immediately preceeded by a backslash are not recognized as such, which
may result in wrong detection of parameters causing the prepared statement to
fail when it is executed. A work-around is to not use emulated prepares for
such SQL queries, and to avoid rewriting of parameters by using a parameter style
which is natively supported by the driver.
</simpara>
</note>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;