PHP 禁用 ni_set 之后 Laravel5.5 启动报错

php中禁用ini_set之后,访问首页报错

"ini_set() has been disabled for security reasons"

请问如何,在保持php.ini配置不变的情况下,使网站正常运行?
参考报错代码,设置为testing环境后,可以正常运行,但是其它环境受影响。

/www/htdocs/la-test/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php

        error_reporting(-1);

        set_error_handler([$this, 'handleError']);

        set_exception_handler([$this, 'handleException']);

        register_shutdown_function([$this, 'handleShutdown']);

        if (! $app->environment('testing')) {
            ini_set('display_errors', 'Off');
        }
    }
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 Laravel。
讨论数量: 0
(= ̄ω ̄=)··· 暂无内容!

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!