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
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.
Password:
Status:
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: Fri Mar 29 13:01:29 2024 UTC