mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
e78b64d1cc
commit
b37762aa55
1 changed files with 12 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue