当使用这个简单的纺织标记时,纺织类似乎给出了编译错误。它似乎发生在链接上:
"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 的纺织 php 类。
编辑:这是触发错误的函数。第 1355 行是$ok = preg_match( $r, $uri, $m );
function parseURI( $uri, &$m )
{
$r = "@^((?<scheme>[^:/?#]+):)?(//(?<authority>[^/?#]*))?(?<path>[^?#]*)(\?(?<query>[^#]*))?(#(?<fragment>.*))?@";
# 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;
}