php.net |  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
Votes:1
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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
9 + 5 = ?
Subscribe to this entry?

 
 [2005-06-10 20:06 UTC] cryptographite at users dot sf dot net
Description:
------------
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);


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-02-26 07:39 UTC] krakjoe@php.net
-Status: Assigned +Status: Suspended
 [2015-02-26 07:39 UTC] krakjoe@php.net
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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 11:01:30 2024 UTC