|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2021-02-27 04:03 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
-Package: Unknown/Other Function
+Package: Strings related
[2021-02-27 04:03 UTC] requinix@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 07:00:01 2025 UTC |
Description: ------------ When using a character like µ, printf is off by 1 character in length. It is shorter that 15s. printf("%-50s %15s %15s %15s %15s %15s" . PHP_EOL, "Function", "Num Calls", "Avg Time (µs)", "Sum Time (µs)", "Min Time (µs)", "Max Time (µs)"); Test script: --------------- printf("%-50s %15s %15s %15s %15s %15s" . PHP_EOL, "Function", "Num Calls", "Avg Time (µs)", "Sum Time (µs)", "Min Time (µs)", "Max Time (µs)"); Expected result: ---------------- Expect it to be the correct spacing