#45347 [NEW]: Search results which link to gcov cause an error message.

From: Date: Tue, 24 Jun 2008 10:36:55 +0000
Subject: #45347 [NEW]: Search results which link to gcov cause an error message.
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-1994@lists.php.net to get a copy of this message
From: RQuadling at GMail dot com Operating system: n/a PHP version: Irrelevant PHP Bug Type: Website problem Bug description: Search results which link to gcov cause an error message. 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:', '&amp;'), array('', '&'), $hit['Title']); + // Empty string for unknown types. + $types[$type] = !array_key_exists($type, $types) ? '' : $types[$type]; + // Fix &amp;gt; double escaping $summary = str_replace('&amp;', '&', $hit['Summary']); echo <<<EOB -- Edit bug report at http://bugs.php.net/?id=45347&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45347&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45347&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45347&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45347&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45347&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45347&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45347&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45347&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45347&r=support Expected behavior: http://bugs.php.net/fix.php?id=45347&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45347&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45347&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45347&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45347&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45347&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45347&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45347&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45347&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45347&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45347&r=mysqlcfg

« previous php.webmaster (#1994) next »