|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
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-2022 The PHP Group
All rights reserved.
Last updated: Wed May 25 00:03:38 2022 UTC