Skip to content

8.1.4使用view方法,模版页面的错误不显示 #3190

@2606062632

Description

@2606062632

所属功能组件

视图(View)

ThinkPHP 版本

8.1.4

操作系统

ubuntu

错误信息

8.1.4版本在8e7b2b2364047cbf71a38c4e397a9ca0d4ef2b01的提交中Response类的send方法中try-catch了,导致现在页面错误不显示。
我在config/view.php配置文件中使用'type' => 'php'模板引擎,然后在视图中使用不存在的数组下标,应该页面报错的,现在访问这个路由就一片空白,http是还是200。异常应交由ExceptionHandle类进行管理吧?怎么能直接try-catch掉???

完整代码:

Image

页面显示:
Image

其它说明

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions