使用此簡單紡織品標記時,紡織品類似乎會產生編譯錯誤。這似乎與鏈接發生:紡織錯誤:在編譯錯誤中使用url結果
"linktext":http://www.nu.nl
["linktext":http://www.nu.nl]
編譯錯誤:
Warning: preg_match() [function.preg-match]: Compilation failed: unrecognized character after (?< at offset 5 in /var/www/vhosts/sturb.nl/subdomains/bu/httpdocs/lib/textile.php on line 1355
所有其他標記顯示正常人一樣。
順便說一句:我使用netcarver's紡織php類。
編輯: 這是錯誤被觸發的函數。 1355 線是$ok = preg_match($r, $uri, $m);
function parseURI($uri, &$m)
{
$r = "@^((?<scheme>[^:/?#]+):)?(//(?<authority>[^/?#]*))?(?<path>[^?#]*)(\?(?<query>[^#]*))?(#(?<fragment>.*))[email protected]";
# 12 3 4 5 6 7 8 9
#
# scheme = $2
# authority = $4
# path = $5
# query = $7
# fragment = $9
$ok = preg_match($r, $uri, $m);
return $ok;
}
'preg_match'在哪裏? – hjpotter92 2012-04-16 14:11:06
我添加了觸發錯誤的preg_match函數 – stUrb 2012-04-16 14:13:44