I think the way that Kloxo finds the PHP version is
bad. With this corrected, ION Cube and Zend work just find with PHP 5.3,
though one little error with the extension manager. Any
thoughts?
php -v
Cannot load Zend Extension Manager - it
was built with configuration 1.2.0, whereas running engine is
API220090626,NTS
PHP 5.3.10 (cli) (built: Feb 2 2012
17:34:38)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0,
Copyright (c) 1998-2012 Zend Technologies
with the ionCube
PHP Loader v4.0.14, Copyright (c) 2002-2011, by ionCube Ltd.
Here is my suggested change:
function
find_php_version()
{
global
$global_dontlogshell;
$global_dontlogshell = true;
//Can't use lxshell_output because of the
STDERR
$ret = shell_exec('php -r
\'echo phpversion();\' 2>nul');
$ver = substr($ret, 0, 3);
$global_dontlogshell = false;
return $ver;
}
ORIGINAL:
/usr/local/lxlabs/kloxo/httpdocs/htmllib/lib/lib.php
function
find_php_version()
{
global
$global_dontlogshell;
$global_dontlogshell = true;
$ret
= lxshell_output("rpm", "-q",
"php");
$ver = substr($ret,
strlen("php-"), 3);
$global_dontlogshell = false;
return $ver;
}