[Tickets #13893] Re: 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 11:42:47 UTC 2015


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

Ticket URL: https://bugs.horde.org/ticket/13893
------------------------------------------------------------------------------
  Ticket             | 13893
  Updated By         | arjen+horde at de-korte.org
  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             |
------------------------------------------------------------------------------


arjen+horde at de-korte.org (2015-03-03 11:42) 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

Why on earth are you still using a critical component like PHP that is  
almost 5 years old? Please don't tell me you're using an 'enterprise'  
Linux version. You should expect things like this, since the security  
critical bugs may be patched, but usually other bugs and fixes are not  
backported to your dinosaur PHP.

Do your users (and yourself) a favor and upgrade to a more recent PHP version.

> The specified line:
>         /* @todo Fix for PHP < 5.3.6 */

This line pretty much says it all. The below code should work on PHP <  
5.3.6, but apparently some PHP bug is preventing that.

>         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