php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #62608 Documentation examples use printf(), not sprintf()
Submitted: 2012-07-19 09:11 UTC Modified: 2012-07-20 02:15 UTC
From: kristo at waher dot net Assigned: aharvey (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
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: kristo at waher dot net
New email:
PHP Version: OS:

 

 [2012-07-19 09:11 UTC] kristo at waher dot net
Description:
------------
Documentation examples use printf(), not sprintf(), thus the examples do not work.
---
From manual page: http://www.php.net/function.sprintf#refsect1-function.sprintf-
parameters
---



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-07-20 02:15 UTC] aharvey@php.net
Automatic comment from SVN on behalf of aharvey
Revision: http://svn.php.net/viewvc/?view=revision&revision=326717
Log: Fix doc bug #62608 (Documentation examples use printf(), not sprintf()).
 [2012-07-20 02:15 UTC] aharvey@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: aharvey
 [2012-07-20 02:15 UTC] aharvey@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

Technically correct; the best kind of correct. This was a bit of weirdness caused by whenever the printf() and sprintf() examples were originally merged, clearly.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 23:00:01 2026 UTC