php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #127 %ld is not handled in printf(). %d works, though
Submitted: 1998-03-01 23:44 UTC Modified: 1998-03-02 16:35 UTC
From: pettern at thule dot no Assigned: ssb (profile)
Status: Closed Package: Parser error
PHP Version: 3.0b5 OS: Linux 2.0.32
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: pettern at thule dot no
New email:
PHP Version: OS:

 

 [1998-03-01 23:44 UTC] pettern at thule dot no
$num = 3;
printf("testing: %ld",$num);
output -> d

Just %d works, but printf() should accept the "standard" behaviour which echo handled and the C printf() handles.

 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-03-02 16:35 UTC] ssb
Fixed.  That is, *printf simply ignores the extra "l".

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Oct 07 18:01:28 2024 UTC