Bug #19801 [Fbk->NoF]: Undefined HTTP_HOST
| From: | cweiske@php.net | Date: | Fri, 20 Feb 2015 13:32:26 +0000 |
| Subject: | Bug #19801 [Fbk->NoF]: Undefined HTTP_HOST | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-11252@lists.php.net to get a copy of this message | ||
Edit report at https://pear.php.net/bugs/bug.php?id=19801&edit=1
ID: 19801
Updated by: cweiske@php.net
Reported By: mick at deafzone dot ch
Summary: Undefined HTTP_HOST
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: Pager
Operating System: Ubuntu 12.10
Package Version: 2.4.8
PHP Version: 5.4.6
Roadmap Versions:
New Comment:
-Status: Feedback
+Status: No Feedback
Previous Comments:
------------------------------------------------------------------------
[2014-05-14 10:33:38] cweiske
-Status: Open
+Status: Feedback
Which web server is that? HTTP_HOST should be always around.
What could we use as replacement variable?
------------------------------------------------------------------------
[2013-01-27 22:12:59] hartkore
Description:
------------
Hi there
I'm getting a "Notice: Undefined index: HTTP_HOST" from time to time.
You can't rely on this variable alone and must include an isset() check
before using it.
Error happens at:
File: /usr/share/php/Pager/Common.php
Line: 47
Called from:
require_once in file /usr/share/php/Pager/Sliding.php on line 42
Hope you can solve that soon? It's polluting my log files.
Cheers
Michael
------------------------------------------------------------------------
--
Edit this bug report at https://pear.php.net/bugs/bug.php?id=19801&edit=1