Skip to content

var_dumper exception #50648

@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy