警告的含义是什么?任何人都可以解释此警告?
Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N{name}, \U, or \u at offset 1 in
它被此功能触发:
file_put_contents($file,preg_replace('(\uid=\d+)', 'uid=' . $uid, file_get_contents($file)));
即这种模式:
'(\uid=\d+)'
它本地工作,但不在线,这意味着它可能是PHP的我的主机的版本。我试图谷歌解决方法,但找不到任何东西。
这是一个无效的模式。您忘记了分隔符,例如'/(\ uid ....'。 – 2013-03-12 16:20:24
@MarcB - '()'实际上是有效的分隔符 – 2013-03-12 16:21:33
@Marc B:'('和')'也是有效的分隔符AFAIK。但它阻止你使用括号 – 2013-03-12 16:21:57