How to eliminate php5 Strict standards errors?

后端 未结 7 1253
后悔当初
后悔当初 2020-12-02 23:40

After upgrading my PHP to 5.4.3 (WAMP server 2.2), my web app made in CakePHP 1.3, is showing the following errors in my index:

Strict standards: Rede

7条回答
  •  无人及你
    2020-12-02 23:40

    You are using newer php version. in php 5.4, E_STRICT is part of E_ALL

    in cake 1.3, open file /cake/bootstrap.php and change the error_reporting like this

    error_reporting(E_ALL & ~E_STRICT & ~E_DEPRECATED);
    

提交回复
热议问题