Warning: preg_match() [function.preg-match]: Compilation failed: subpattern name is too long (maximum 32 characters) at offset 71 in ......\lib\vendor\symfony\lib\routing\sfRoute.class.php on line 100
在打开利用symfony自动生成的后台某模块的list页面时报错了,奇怪的是有些页面有问题,有些页面是正常的,难道这个问题跟数据库表的字段有关(MySql)?
有没有高手遇到这种问题?。
在打开利用symfony自动生成的后台某模块的list页面时报错了,奇怪的是有些页面有问题,有些页面是正常的,难道这个问题跟数据库表的字段有关(MySql)?
有没有高手遇到这种问题?。
lib\vendor\symfony\lib\routing\sfRoute.class.php on line 100
我贴这个warning的错误位置出来吧。public function matchesUrl($url, $context = array())
{
if (!$this->compiled)
{
$this->compile();
} if (!preg_match($this->regex, $url, $matches)) //////第100行在这里!!!!
{
return false;
} $defaults = array_merge($this->getDefaultParameters(), $this->defaults);
$parameters = array(); // *
if (isset($matches['_star']))
{
$parameters = $this->parseStarParameter($matches['_star']);
unset($matches['_star']);
} // defaults
$parameters = $this->mergeArrays($parameters, $defaults); // variables
foreach ($matches as $key => $value)
{
if (!is_int($key))
{
$parameters[$key] = urldecode($value);
}
} return $parameters;
}
http://localhost/backend_dev.php/city
唉,很郁闷,上面两个链接都会报那个warning,真奇怪。报warning的module页面不只一个,是很多个呢。
感觉国内用symfony的人还是很少。T^T