请帮忙。我收到此错误:
( ! ) 警告:preg_match(): Unknown modifier 'b' in C:\wamp\www\pmd\install\ioncube_checker.php 第 22 行
当我运行以下代码时:
function system_info($php_info) {
$server_info = array();
$server_info['thread_safe'] = 'false';
$server_info['debug_build'] = 'false';
$server_info['php_ini_path'] = '';
foreach (explode("\n",$php_info) as $line) {
if (preg_match('/command/',$line)) {
continue;
}
if (preg_match('/thread safety.*(enabled|yes)/Ui',$line)) {
$server_info['thread_safe'] = 'true';
}
if (preg_match('/debug.*(enabled|yes)/Ui',$line)) {
$server_info['debug_build'] = 'true';
}
if (preg_match("/configuration file.*(</b></td><TD ALIGN=\"left\">| => |v\">)([^ <]*)(.*</td>*)?/",$line,$match)) {
$server_info['php_ini_path'] = $match[2];
if (!@file_exists($php_ini_path)) {
$server_info['php_ini_path'] = '';
}
}
$cgi_cli = ((strpos(php_sapi_name(),'cgi') !== false) || (strpos(php_sapi_name(),'cli') !== false));
$cgi_cli ? $server_info['cgi_cli'] = 'true' : $server_info['cgi_cli'] = 'false';
}
return $server_info;
}