php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45347 Search results which link to gcov cause an error message.
Submitted: 2008-06-24 10:36 UTC Modified: 2009-05-22 08:28 UTC
From: RQuadling at GMail dot com Assigned:
Status: Closed Package: Website problem
PHP Version: Irrelevant OS: n/a
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: RQuadling at GMail dot com
New email:
PHP Version: OS:

 

 [2008-06-24 10:36 UTC] RQuadling at GMail dot com
Description:
------------
http://docs.php.net/results.php?q=splfileinfo&start=10&p=all&l=en

See error message above unknown index.

On http://www.php.net/results.php?q=splfileinfo&start=10&p=all&l=en, no message (most likely due to suppression of errors).

I couldn't find an icon for this, so fixed code to not generate the error instead.

Patch below.

Reproduce code:
---------------
Index: results.php
===================================================================
RCS file: /repository/phpweb/results.php,v
retrieving revision 1.45
diff -u -u -r1.45 results.php
--- results.php   21 Jun 2008 12:21:41 -0000   1.45
+++ results.php   24 Jun 2008 10:35:07 -0000
@@ -119,6 +119,9 @@
   if($type=='smarty') continue;
   $display_title = str_replace(array('PHP:', '&'), array('', '&'), $hit['Title']);
 
+  // Empty string for unknown types.
+  $types[$type] = !array_key_exists($type, $types) ? '' : $types[$type];
+
   // Fix > double escaping
   $summary = str_replace('&', '&', $hit['Summary']);
   echo <<<EOB



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-05-22 08:28 UTC] bjori@php.net
This bug has been fixed in CVS. Since the websites are not directly
updated from the CVS server, the fix might need some time to spread
across the globe to all mirror sites, including PHP.net itself.

Thank you for the report, and for helping us make PHP.net better.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Jun 14 19:00:01 2026 UTC