|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56414 Output formatting incorrect
Submitted: 2005-06-10 20:06 UTC Modified: 2015-02-26 07:39 UTC
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: cryptographite at users dot sf dot net Assigned: gschlossnagle (profile)
Status: Suspended Package: apd (PECL)
PHP Version: 5.0.3 OS: FreeBSD
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: cryptographite at users dot sf dot net
New email:
PHP Version: OS:


 [2005-06-10 20:06 UTC] cryptographite at users dot sf dot net
APD 1.0.1 - pprofp

The padding values for the output are incorrect.  printf()'s padding uses the entire value, not just the digits before the decimal.  pprofp is currently using only the number preceding the decimal as the padding value, which yields difficult to read output.

Reproduce code:
Corrected output code:

printf("%5.01f %5.02f %5.02f  %5.02f %5.02f  %5.02f %5.02f  %4d  %7.04f   %7.04f %12d %s\n", $pcnt, $rsecs, $c_rsecs,       
$usecs, $c_usecs, $ssecs, $c_ssecs, $ncalls, $percall, $cpercall, $mem_usage, $name);


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2015-02-26 07:39 UTC]
-Status: Assigned +Status: Suspended
 [2015-02-26 07:39 UTC]
APD hasn't had a release in 10 years, this means it's source code is way out of sync with modern PHP.

I'm going to mark this bug as suspended, the report can still be found if a maintainer for APD comes forward.

Sorry about the wait.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Oct 27 18:01:23 2020 UTC