6.0.0-beta1
7/5/25

[#13893] PHP ERROR: Undefined index: host [pid 23625 on line 412 of "/usr/share/php/Horde.php"]
Summary PHP ERROR: Undefined index: host [pid 23625 on line 412 of "/usr/share/php/Horde.php"]
Queue Horde Base
Queue Version FRAMEWORK_5_2
Type Bug
State Not A Bug
Priority 1. Low
Owners
Requester skhorde (at) smail (dot) inf (dot) fh-bonn-rhein-sieg (dot) de
Created 03/03/2015 (3777 days ago)
Due
Updated 03/04/2015 (3776 days ago)
Assigned
Resolved 03/04/2015 (3776 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
03/04/2015 09:41:29 PM Michael Slusarz Comment #4
State ⇒ Not A Bug
Reply to this comment
I assume this is also related to
https://bugs.horde.org/ticket/13342
with the same fix to update PHP.
Agreed.  This is a bug in PHP itself - we are not going to rewrite the 
parse_url() component to workaround this bug for a long outdated PHP 
release when the correct/simple fix is to upgrade PHP to a non-broken 
version.
03/04/2015 04:24:35 PM Jasper (dot) Olbrich (at) students (dot) uni-marburg (dot) de Comment #3 Reply to this comment
I assume this is also related to
https://bugs.horde.org/ticket/13342
with the same fix to update PHP.
03/03/2015 11:42:47 AM arjen+horde (at) de-korte (dot) org Comment #2 Reply to this comment
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.

[Show Quoted Text - 12 lines]
03/03/2015 10:01:43 AM skhorde (at) smail (dot) inf (dot) fh-bonn-rhein-sieg (dot) de Comment #1
Priority ⇒ 1. Low
Patch ⇒ No
Milestone ⇒
Queue ⇒ Horde Base
Summary ⇒ PHP ERROR: Undefined index: host [pid 23625 on line 412 of "/usr/share/php/Horde.php"]
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
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 */


Saved Queries