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 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.
(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

Add a Patch

Pull Requests

Add a Pull Request

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: Sun Mar 03 17:01:27 2024 UTC