split()在生产中抛出异常而不是开发。为什么呢?

时间:2015-12-17 01:14:13

标签: php

split()在生产(exception 'yii\base\ErrorException' with message 'Function split() is deprecated' in /app/controllers/NegativeKeywordController.php:128)中抛出异常但不是开发。如何在开发中启用异常?

1 个答案:

答案 0 :(得分:0)

我必须将error_reporting更改为E_ALL并重启Apache。

;error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT # old
error_reporting = E_ALL