Opened 14 years ago
Closed 14 years ago
#7755 closed defect (fixed)
hostname lookup failed in mythweb
Reported by: | Owned by: | Rob Smith | |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | Plugin - MythWeb | Version: | 0.21 |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
Hostname lookup failed in includes\defines.php when using:
#27: $uname = php_uname('n');
it returns a string instead of an array. so :
#31: define('hostname', empty($_SERVER['hostname']) ? trim($uname['nodename']) : $_SERVER['hostname']);
doesn't work. (it returns just only the first character of the hostname) Better to check if its an array :
#31: define('hostname', empty($_SERVER['hostname']) ? trim((is_array($uname) ? $uname['nodename'] : $uname)) : $_SERVER['hostname']);
php version: 5.2.11
Change History (3)
Note: See
TracTickets for help on using
tickets.
Is this fixed by [22983] ?