Skip to content

#455 - cleverage:process:execute: replace the invalid UTF-8 of the json-stream output file - #456

Merged
njoubert-cleverage merged 4 commits into
mainfrom
455
Nov 4, 2026
Merged

njoubert-cleverage merged 4 commits into
mainfrom
455

Conversation

@njoubert-cleverage

Copy link
Copy Markdown
Member

Description

Fixes #455: cleverage:process:execute -o <file> -t json-stream writes the output with JSON_INVALID_UTF8_SUBSTITUTE, as on STDOUT (#226): the invalid UTF-8 sequences are replaced by U+FFFD, instead of a JsonException (also for the buffer of process_launcher). An output that cannot be encoded (e.g. NAN) is reported on the error output ("Output not stored ...: it cannot be encoded as JSON"). The quick start documentation of the option is updated.

Checked locally: highest dependencies (PHP 8.5), with pcov coverage: all tests OK, no risky; PHPStan, PHP-CS-Fixer and Rector OK.

Requirements

  • Documentation updates
    • Reference
    • Cookbooks
    • Changelog
  • Unit tests

Breaking changes

None.

🤖 Generated with Claude Code

…on-stream output file

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@njoubert-cleverage
njoubert-cleverage requested a review from a team as a code owner November 4, 2026 14:47
@njoubert-cleverage
njoubert-cleverage merged commit 331f1d7 into main Nov 4, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cleverage:process:execute: invalid UTF-8 in the json-stream output file throws a JsonException

1 participant