2013-11-14 101 views
3

我最近將我的專用服務器升​​級到Apache 2.4.6,MySQL 5.5.32和PHP 5.4.21。現在,在我的網站我得到這個錯誤:警告:preg_replace():編譯失敗:未知選項位設置在偏移量-1

Warning: preg_replace(): Compilation failed: unknown option bit(s) set at offset -1 in /home/champion/public_html/wp-includes/shortcodes.php on line 295

這裏是shortcodes.php上線295代碼:

$text = preg_replace("/[\x{00a0}\x{200b}]+/u", " ", $text); 

是preg_replace函數的功能與新的PHP 5.4.21不兼容?

+1

看看這篇文章:http://stackoverflow.com/questions/10338234/php-5-4-after-install-preg-match-compilation-failed-unknown-option-bits-s –

回答

2

將PCRE版本更新到8.21已解決該問題。

相關問題