6.0.0-git
2019-07-20

[#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 2015-03-03 (1600 days ago)
Due
Updated 2015-03-04 (1599 days ago)
Assigned
Resolved 2015-03-04 (1599 days ago)
Milestone
Patch No

History
2015-03-04 21:41:29 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.
2015-03-04 16:24:35 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.
2015-03-03 11:42:47 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]
2015-03-03 10:01:43 skhorde (at) smail (dot) inf (dot) fh-bonn-rhein-sieg (dot) de Comment #1
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Summary ⇒ PHP ERROR: Undefined index: host [pid 23625 on line 412 of "/usr/share/php/Horde.php"]
Queue ⇒ Horde Base
Milestone ⇒
Patch ⇒ No
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