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
 [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 Apr 26 15:01:56 2024 UTC