[DoctrineBridge] Fixed non-utf-8 recognition

This commit is contained in:
Sarah Khalil 2013-03-15 16:06:50 +01:00 committed by Fabien Potencier
parent 6c0d2b92ac
commit 67fbbac877

View File

@ -56,7 +56,7 @@ class DbalLogger implements SQLLogger
}
// non utf-8 strings break json encoding
if (null === preg_match('#[^\p{L}\p{N} ]#u', $params[$index])) {
if (!preg_match('#[\p{L}\p{N} ]#u', $params[$index])) {
$params[$index] = self::BINARY_DATA_VALUE;
continue;
}