After PHP is upgraded to php5.3, some programs often find the function eregi () is deprecated error message.Why?This is because the eregi () function is no longer supported in php5.3 and is replaced by the preg_match () function.The solution is to
After PHP upgrade to php5.3, in the process of use often found that some programs will appear function eregi () is deprecated error message.
What is the reason?This is because the eregi () function is no longer supported in php5.3 and is replaced
First of all, the difference between ereg () and eregi ():
Ereg () string contrast matching function, which distinguishes string capitalization;
Eregi () string contrast matching functions, which do not distinguish between string capitalization.
After PHP has been upgraded to php5.3, the procedure that is used frequently discovers that a function eregi () is deprecated error message.
What's the reason?This is because the eregi () function is no longer supported in php5.3, and the
After PHP is upgraded to 5.3,ProgramThe error "function split () is deprecated" is returned.This is because of various reasons (mainly for the reason of regular expressions, see below for details). The split function is not supported in the new
Discover deprecated problems
Recently completed a project, the basic functions are normal, published to the online. As a result, a large number of errors have been found in the online
A look at PHP's deprecated error, is the lowest level of the
Php5.3x does not support ereg and eregi any more. The solution is for PHP programmers and websites. many PHP functions have been discarded before, mainly due to PHP version issues (PHP5.3.x). in order to better transition to PHP's future version
Today in the use of a regular prompt deprecated:function eregi () is the deprecated in error, and later queried for one reason is that we php5.3, in 5.3 has not supported eregi function, you can directly use Preg_ Match to replace.
Pre-change:
Running oscommerce in php5.3 often causes deprecated: function ereg () is deprecated in... and deprecated: function ereg_replace () is deprecated in... error messages of these types.
The reason is that php5.3 and later versions do not support the
Php5.3x no longer supports Ereg and Eregi, solutions
I am currently engaged in PHP programmers, Web site direction. The functions that have encountered PHP before have been deprecated, mainly the PHP version problem (php5.3.x), in order to better
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.