errorInfo()[0] == "22018") { echo "PDO param type $pdoParamType is incompatible with encrypted $dataType\n"; } else { var_dump($stmt->errorInfo()); } }