开发者

Deprecated functions and methods in php update

I have updated PHP version on my serv开发者_StackOverflower and i get many 'Deprecated' message on displaying website pages.I have set display_errors to off in php.ini setting not they've gone.But I want to know how can i fix these Deprecated issue ?

Edited: the most seen error is this:

" Deprecated: Assigning the return value of new by reference is deprecated in .... "


Deprecated features are documented in the appendices of the PHP manual (see the "Migrating from..." chapters). Meanwhile, you can get them ignored in legacy code by setting an appropriate error_reporting level (one that does not include the E_DEPRECATED flag).


Look up the documentation for each of the functions on php.net. It usually tells you what other function(s) replace the deprecated function.


you need to find out which functions it is and replace them with their new equivalents. Most likely it'll be ereg stuff; which you can replace with the preg versions


Those messages are telling you that you are using methods that are likely to be removed at some point, so it is best to not use those methods any longer. You can fix it by changing it so those methods are removed from your code.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜