[php-src] PR #14822: Fix GH-14553: Bug in phpdbg8.3 (also 8.1 and 8.2) echo output - trimmed at NULL byte (?)
| From: | nielsdos | Date: | Thu, 04 Jul 2024 16:07:50 +0000 |
| Subject: | [php-src] PR #14822: Fix GH-14553: Bug in phpdbg8.3 (also 8.1 and 8.2) echo output - trimmed at NULL byte (?) | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-27038@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/14822
Author: nielsdos
This broke in 6318040df2b6c6f4824b99fd27369179d29ee93b when phpdbg stopped using its custom printing
routines. By relying on standard printing routines, the embedded NUL bytes are causing the strings
to be cut off, even when using %.*s. Solve this by going straight to the output routine, which is
what the printf routine would've done anyway.