[php-src] Issue #12290: bug in json_encode

From: Date: Sun, 24 Sep 2023 07:19:19 +0000
Subject: [php-src] Issue #12290: bug in json_encode
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-245426@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/12290 Author: remco-pc ### Description The following code: ```php "class": "ErrorException", "message": "Illegal string offset \"8f967648639b98cd1522867b1c8f9d39f67e685f\"", "line": 563, "file": "/Application/vendor/r3m/framework/src/Module/Autoload.php", "code": 0, <?php ``` Resulted in this output: ``` $write = json_encode($mtime, JSON_PRETTY_PRINT); ``` But I expected this output instead: ``` no exception ``` ### PHP Version php 8.2 ### Operating System Debian 11

« previous php.bugs (#245426) next »