#45347 [Opn->Csd]: Search results which link to gcov cause an error message.
| From: | bjori@php.net | Date: | Fri, 22 May 2009 08:28:51 +0000 |
| Subject: | #45347 [Opn->Csd]: Search results which link to gcov cause an error message. | ||
| References: | 1 | Groups: | php.webmaster |
| Request: | Send a blank email to php-webmaster+get-4833@lists.php.net to get a copy of this message | ||
ID: 45347
Updated by: bjori@php.net
Reported By: RQuadling at GMail dot com
-Status: Open
+Status: Closed
Bug Type: Website problem
Operating System: n/a
PHP Version: Irrelevant
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2008-06-24 10:36:55] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45347&edit=1