8000 var_dumper exception · Issue #50648 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
var_dumper exception #50648
Closed as not planned
Closed as not planned
@remco-pc

Description

@remco-pc

Symfony version(s) affected

6.3

Description

ErrorException

iconv(): Detected an illegal character in input string
file: /Application/vendor/symfony/var-dumper/Dumper/AbstractDumper.php
line: 192

this happens when i want to dd() a gz compressed string:

$url = $dir_name . $file_name . '.' . $page . $object->config('extension.json') . $object->config('extension.gz');
$data = Core::object($data->data(), Core::OBJECT_JSON);
$gz = gzencode($data, 9);
d(strlen($gz)); //same as dump => int 767
ddd($gz); //exception thrown



### How to reproduce

try to gzencode a custom json and probably it will throw this error

### Possible Solution

str_replace those illegal chars with a space or a * or [illegal-char]

### Additional Context

_No response_

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0