Skip to content

empty string in DbalLogger::log $params #7012

Closed
@kor3k

Description

@kor3k

when i have a Blob doctrine column type and try to store binary content in it via doctrine orm, then an empty string instead of it's actual value is passed to the logger - as an empty-string item in array $params to Symfony\Bridge\Doctrine\Logger\DbalLogger::log - and json_encode in Monolog\Formatter\NormalizerFormatter on line 96 produces an exception (Warning: json_encode(): Invalid UTF-8 sequence).

the Blob is represented as LONGBLOB in mysql

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions