douxian3828 2015-05-29 11:55
浏览 34

Laravel 4.2 - PHP错误报告已关闭

My Laravel 4.2 application runs happily with undefined variables or array indexes.

I have placed

ini_set('display_errors',1);
error_reporting(E_ALL|E_STRICT);

in many places in my code in an attempt to get this happen.

The php.ini contains

error_reporting = E_ALL

Debugging is true in app.php.

I have grep'd all of the Laravel and vendor code and my code to look for locations where error reporting may have been turned off, but none seems relevant.

Non-Laravel web applications on the same server crash and/or report properly for these kinds of errors.

PHP is 5.6.8 on Fedora and 5.5. on Centos.

Why do I not see any notices, warnings? With this level of error, PHP should be throwing exceptions on undefined variables and array element accesses.

E.g. for something like $object['member'] where the array "$object" has no key "member" should cause an error.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 yolov8边框坐标
    • ¥15 matlab中使用gurobi时报错
    • ¥15 这个主板怎么能扩出一两个sata口
    • ¥15 不是,这到底错哪儿了😭
    • ¥15 2020长安杯与连接网探
    • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
    • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
    • ¥16 mybatis的代理对象无法通过@Autowired装填
    • ¥15 可见光定位matlab仿真
    • ¥15 arduino 四自由度机械臂