diff --git a/reference/pdo/pdo/prepare.xml b/reference/pdo/pdo/prepare.xml index a41f137dc1..1803ffa647 100644 --- a/reference/pdo/pdo/prepare.xml +++ b/reference/pdo/pdo/prepare.xml @@ -54,6 +54,18 @@ style parameter markers to something more appropriate, if the driver supports one style but not the other. + + + 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. + + &reftitle.parameters;