糟糕\异常\错误异常(E_WARNING)preg_match():JIT编译失败:没有更多内存

时间:2019-07-15 17:51:10

标签: php

$regex = $compiledRoute->getRegex();

if ($supportsTrailingSlash && $pos = strpos($regex, '/$')) {
    $regex = substr($regex, 0, $pos).'/?$'.substr($regex, $pos + 2);
    $hasTrailingSlash = true;
} else {
    $hasTrailingSlash = false;
}

if (!preg_match($regex, $pathinfo, $matches)) { 
    continue;
 }

if ($hasTrailingSlash && '/' !== substr($pathinfo, -1)) {
    if ((!$requiredMethods || \in_array('GET', $requiredMethods)) && 'GET' === $method) {
        return $this->allow = array();
    }
    continue;
}

 $hostMatches = array();
if ($compiledRoute->getHostRegex() && !preg_match($compiledRoute->getHostRegex(), $this->context->getHost(), $hostMatches)) {
  

Whoops \ Exception \ ErrorException(E_WARNING)   preg_match():JIT编译失败:没有更多内存

0 个答案:

没有答案