【发布时间】:2015-12-03 19:47:31
【问题描述】:
我有 10000 行代码概述了使用 Slim 框架实现的 API 的路由。但是,我收到一条错误消息preg_match(): Compilation failed: two named subpatterns have the same name at offset 89。问题是,我在 Slim Route.php 中获得了引用此语句 preg_match('/cost-centers...', '/overview/funds...', NULL) 的堆栈跟踪。现在我的 URL 很长,我无法确定哪些 URL 具有相同的名称。
有什么方法可以得到更详细的堆栈跟踪而不是显示这些缩短的格式?
【问题讨论】:
-
我自己没有尝试过,但是 custom error handler 和 stackoverflow.com/questions/1949345/… 应该可以做你想做的事情。
标签: slim