php升级到5.0后朋友的网站出现如下错误,这是怎么回事,如何改?谢谢

it_zl 2005-04-27 09:01:36
详情请看 http://www.ofchina.com.cn

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 8 in E:\www\php\www.ofchina.com.cn\class\logger.php on line 51

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 8 in E:\www\php\www.ofchina.com.cn\class\logger.php on line 52

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 8 in E:\www\php\www.ofchina.com.cn\class\logger.php on line 53

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 8 in E:\www\php\www.ofchina.com.cn\class\logger.php on line 54

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 8 in E:\www\php\www.ofchina.com.cn\class\logger.php on line 55

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 8 in E:\www\php\www.ofchina.com.cn\class\errorhandler.php on line 196

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 8 in E:\www\php\www.ofchina.com.cn\class\database\databasefactory.php on line 30

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 8 in E:\www\php\www.ofchina.com.cn\class\database\databasefactory.php on line 59

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 8 in E:\www\php\www.ofchina.com.cn\class\errorhandler.php on line 196

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 8 in E:\www\php\www.ofchina.com.cn\class\database\mysqldatabase.php on line 61

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 8 in E:\www\php\www.ofchina.com.cn\class\database\database.php on line 59

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 8 in E:\www\php\www.ofchina.com.cn\class\database\database.php on line 65

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 8 in E:\www\php\www.ofchina.com.cn\class\errorhandler.php on line 196

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 8 in E:\www\php\www.ofchina.com.cn\kernel\object.php on line 72

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 8 in E:\www\php\www.ofchina.com.cn\kernel\object.php on line 80

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 8 in E:\www\php\www.ofchina.com.cn\kernel\object.php on line 88

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 8 in E:\www\php\www.ofchina.com.cn\kernel\object.php on line 96

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 8 in E:\www\php\www.ofchina.com.cn\kernel\object.php on line 104

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 8 in E:\www\php\www.ofchina.com.cn\kernel\object.php on line 111

Parse error: parse error, unexpected T_CLONE, expecting T_STRING in E:\www\php\www.ofchina.com.cn\kernel\object.php on line 528

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 8 in E:\www\php\www.ofchina.com.cn\class\errorhandler.php on line 196
...全文
195 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
-神仙- 2005-04-28
  • 打赏
  • 举报
回复
把XOOPS_ROOT_PATH里的\改成/
it_zl 2005-04-28
  • 打赏
  • 举报
回复
没人回答吗?
uuq 2005-04-27
  • 打赏
  • 举报
回复
看看这个php5函数preg-replace是不是不支持
satans18 2005-04-27
  • 打赏
  • 举报
回复
LOOK
it_zl 2005-04-27
  • 打赏
  • 举报
回复
没人回答吗?
it_zl 2005-04-27
  • 打赏
  • 举报
回复
E:\www\php\www.ofchina.com.cn\class\errorhandler.php on line 196

这个代码是这个
function XoopsErrorHandler_HandleError($errNo, $errStr, $errFile, $errLine)
{
// NOTE: we only store relative pathnames
$new_error = array(
'errno' => $errNo,
'errstr' => $errStr,
这是196行 'errfile' => preg_replace("|^" . XOOPS_ROOT_PATH . "/|", '', $errFile),
'errline' => $errLine
);
$error_handler =& XoopsErrorHandler::getInstance();
$error_handler->handleError($new_error);
}
it_zl 2005-04-27
  • 打赏
  • 举报
回复
51行 var $queries = array();
52行 var $blocks = array();
53行 var $extra = array();
54行 var $logstart = array();
55行 var $logend = array();


E:\www\php\www.ofchina.com.cn\class\logger.php

这是部分代码
xuzuning 2005-04-27
  • 打赏
  • 举报
回复
贴出代码
SuperBJack 2005-04-27
  • 打赏
  • 举报
回复
PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 8 in

展示些附近代码来看看

21,891

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧