今天调试phalcon的一个接口时候碰到如下提示:

Deprecated: mongogo::mongogo(): The Mongo class is deprecated, please use the MongoClient class in /***/db/mongo.php on line 10

经过一番搜寻,发现只要在出现提示错误语句的前面加上@即可关闭错误提示;

若想要关闭所有的错误提示,可在php文件中加入error_reporting(0);

参照:https://www.godaddy.com/garage/webpro/development/suppressing-warning-messages-php-deprecated-functions/

posted on 2016-06-13 11:34  chimmu  阅读(162)  评论(0编辑  收藏  举报