added check for PHP version >= 5.0.0 and mbstring.func_overload == 0

This commit is contained in:
Lars Kneschke 2006-04-07 08:09:42 +00:00
parent 4794146748
commit 8941ccbc23

13
rpc.php
View File

@ -30,6 +30,18 @@ if($GLOBALS['egw_info']['server']['sessions_type'] == 'db')
exit;
}
if(ini_get('mbstring.func_overload') != 0)
{
error_log('You need to disable mbstring.func_overload for rpc.php.');
exit;
}
if(version_compare(PHP_VERSION, '5.0.0') < 0)
{
error_log('SyncML requires PHP5. Please update to PHP5 if you want to make use of SyncML.');
exit;
}
$config =& CreateObject('phpgwapi.config','syncml');
$config->read_repository();
$GLOBALS['config_syncml'] =& $config->config_data;
@ -92,6 +104,7 @@ $server->authorize();
if ($input === null) {
$input = $server->getInput();
}
$out = $server->getResponse($input, $params);
/* Return the response to the client. */