You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using an up-to-date arch Linux which currently has PHP 8.3.15.
I would propose to either only add the JSON_TRHOW_ON_ERROR flag to prevent silently failing or to also add JSON_INVALID_UTF8_IGNORE flag. I have made a PR for the latter proposal, as this fixes my immediate issue.
The text was updated successfully, but these errors were encountered:
When trying to work with encoded strings in a php file I am having trouble getting json to work:
proofOcConcept.php
Dumping Json:
Dumping Nodes:
Diving deeper into the issue and adding the the
JSON_THROW_ON_ERROR
flag in line 85 ofbin/php-parse
results in:also at the same line adding the
JSON_INVALID_UTF8_IGNORE
seems to fix the issue and produce the expected output:I am using an up-to-date arch Linux which currently has PHP
8.3.15
.I would propose to either only add the
JSON_TRHOW_ON_ERROR
flag to prevent silently failing or to also addJSON_INVALID_UTF8_IGNORE
flag. I have made a PR for the latter proposal, as this fixes my immediate issue.The text was updated successfully, but these errors were encountered: