Public bug reported:

OS: Ubuntu 16.04.2 LTS
Package : ltsp-cluster-control, version : 2.0.3-0ubuntu3
Further packages : apache2, PHP7

The script "ltsp-cluster-control/Admin/util/functions.php" uses the PHP-
function "ereg_replace" (lines 82 and 84), which doesn't exist in PHP7.

--- snip ---
if($CONFIG["use_https"]=="false"){
  header("Location: 
http://".$prefix.ereg_replace('/[^/]*\.php$','/',$_SERVER['PHP_SELF']).$page.$param);
}else{
  header("Location: 
https://".$prefix.ereg_replace('/[^/]*\.php$','/',$_SERVER['PHP_SELF']).$page.$param);
}
--- snap ---

This error avoids "admin.php" to be executed.

Using the CLI and callig the admin.php manually, I get the error message
(some warnings omitted here) :

--- snip ---
php /usr/share/ltsp-cluster-control/Admin/admin.php
...
PHP Fatal error:  Uncaught Error: Call to undefined function ereg_replace() in 
/usr/share/ltsp-cluster-control/Admin/util/functions.php:82
Stack trace:
#0 /usr/share/ltsp-cluster-control/Admin/util/functions.php(206): ltsp_goto()
#1 /usr/share/ltsp-cluster-control/Admin/util/check.php(31): isSession()
#2 /usr/share/ltsp-cluster-control/Admin/admin.php(23): 
include('/usr/share/ltsp...')
#3 {main}
  thrown in /usr/share/ltsp-cluster-control/Admin/util/functions.php on line 82
--- snap ---

** Affects: ltsp-cluster-control (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1667244

Title:
  ltsp-cluster-control not working with PHP7

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ltsp-cluster-control/+bug/1667244/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to