Ticket #6126: mythweb_posix_uname.patch

File mythweb_posix_uname.patch, 536 bytes (added by l-case@…, 12 years ago)
  • includes/defines.php

     
    2121        define('root', str_replace('//', '/', dirname($_SERVER['SCRIPT_NAME']).'/'));
    2222
    2323// Several sections of this program require the current hostname
    24     $uname = posix_uname();
     24    $uname = php_uname('n');
    2525    define('hostname', empty($_SERVER['hostname']) ? trim($uname['nodename']) : $_SERVER['hostname']);
    2626    unset($uname);
    2727