there are old questions with same content, but I want to know the facts today.
So my question is: is pdo escpaing "%" and "_" in the meantime?
And if not: how did you solve the escaping in querys with a LIKE.
Thank you in advance.
Does PDO escape “%” and “_” today
No. And won't be doing so in the future. Simply because there is no reason to escape such useful wildcard characters.
how did you solve the escaping in querys with a LIKE.
Not in the query you mean but in the supplied string, to avoid incorrect results from LIKE operator?
addCslashes($data, '%_');