Opened 10 years ago

Closed 10 years ago

#7755 closed defect (fixed)

hostname lookup failed in mythweb

Reported by: sander@… 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)

comment:1 Changed 10 years ago by sphery

Status: newinfoneeded_new

Is this fixed by [22983] ?

comment:2 Changed 10 years ago by sander@…

yes. its fixed. thank you.

comment:3 Changed 10 years ago by Dibblah

Resolution: fixed
Status: infoneeded_newclosed
Note: See TracTickets for help on using tickets.