[Tickets #13893] PHP ERROR: Undefined index: host [pid 23625 on line 412 of "/usr/share/php/Horde.php"]

noreply at bugs.horde.org noreply at bugs.horde.org
Tue Mar 3 10:01:43 UTC 2015


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: https://bugs.horde.org/ticket/13893
------------------------------------------------------------------------------
  Ticket             | 13893
  Created By         | skhorde at smail.inf.fh-bonn-rhein-sieg.de
  Summary            | PHP ERROR: Undefined index: host [pid 23625 on line 412
                     | of "/usr/share/php/Horde.php"]
  Queue              | Horde Base
  Version            | FRAMEWORK_5_2
  Type               | Bug
  State              | Unconfirmed
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


skhorde at smail.inf.fh-bonn-rhein-sieg.de (2015-03-03 10:01) wrote:

I get the error

PHP ERROR: Undefined index: host [pid 23625 on line 412 of  
"/usr/share/php/Horde.php"]

quite often.

I use PHP 5.3.3 & horde                        5.2.4   stable

The specified line:
         /* @todo Fix for PHP < 5.3.6 */
         if (isset($puri['fragment']) && !isset($puri['path'])) {
             $pos = strpos(
                 $uri,
                 '/',
                 strpos($uri, $puri['host']) + strlen($puri['host'])
             );
             $puri['path'] = substr($uri, $pos, strpos($uri, '#',  
$pos) - $pos);
         }
         /* End fix */







More information about the bugs mailing list