mirror of
https://github.com/php/php-src.git
synced 2026-04-26 09:28:21 +02:00
95889979f2
This broke in 6318040df2 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.
Closes GH-14822.
15 lines
245 B
PHP
15 lines
245 B
PHP
--TEST--
|
|
GH-14553 (Bug in phpdbg8.3 (also 8.1 and 8.2) echo output - trimmed at NULL byte (?))
|
|
--PHPDBG--
|
|
r
|
|
q
|
|
--FILE--
|
|
<?php
|
|
echo "hello\0world";
|
|
?>
|
|
--EXPECTF--
|
|
[Successful compilation of %s]
|
|
prompt> hello%0world
|
|
[Script ended normally]
|
|
prompt>
|