php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56389 Package search printing a warning message
Submitted: 2005-05-12 11:55 UTC Modified: 2005-05-12 13:35 UTC
From: georgefarley at gmail dot com Assigned: dufuz (profile)
Status: Closed Package: PECL website (PECL)
PHP Version: Irrelevant OS: Irrelevant
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.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: georgefarley at gmail dot com
New email:
PHP Version: OS:

 

 [2005-05-12 11:55 UTC] georgefarley at gmail dot com
Description:
------------
While I was searching for 'MDB' on this site using the package search feature, I noticed a warning being printed at the top of the search page:

Warning: sprintf(): Too few arguments in /usr/local/www/pearweb/public_html/package-search.php on line 216

It appears to happen only when search results are found. While it is only a minor issue in Firefox, it completely breaks in IE6 (and possibly older versions as well).

---Start of IE6 output---

The XML page cannot be displayed 
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. 

------------------------------------------------------------

Only one top level element is allowed in an XML document. Error processing resource 'http://pear.php.net/package-search.php...

<b>Warning</b>:  sprintf(): Too few arguments in <b>/usr/local/www/pearweb/public_html/package-search.php&...

---End of IE6 output---


Reproduce code:
---------------
Do a search for a valid package, like "MDB", in the "Packages" category.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-12 13:22 UTC] helgi at trance dot is
Can't reproduce this on my test server but I'll look into this
 [2005-05-12 13:35 UTC] helgi at trance dot is
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pear.php.net.

In case this was a pear.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PEAR better.

I could reproduce it after all, sprintf requires one to add extra % after 100%, that is if it's html.

The CVS server will be synced to production very soon.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 04:01:32 2024 UTC