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

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: Sat Dec 21 16:01:28 2024 UTC