Do not run dedecms5.6 on php5.3

Source: Internet
Author: User
Do not run dedecms5.6 in php5.3. Today, dedecms and ecshop are used to help the company create a distribution alliance, and deprecatedininclude \ dedesql is continuously incorrect in php5.3. class. phponline516Deprecated: do not run dedecms5.6 in php5.3.
Using dedecms and ecshop to help the company create a distribution alliance today, we found that the dedecms5.6 encountered continuous errors in the php5.3 environment.
deprecated in include\dedesql.class.php on line 516 Deprecated: Function eregi() is deprecated in include\memberlogin.class.php on line 45 Deprecated: Function eregi() is deprecated in include\memberlogin.class.php on line 45 Deprecated: Function eregi() is deprecated in include\memberlogin.class.php on line 45 Deprecated: Function eregi() is deprecated in include\dedesql.class.php on line 270 Deprecated: Function eregi_replace() is deprecated in include\dedesql.class.php on line 270 Deprecated: Function eregi() is deprecated in include\dedesql.class.php on line 516 


According to the report, it is found that php5.3 does not support eregi and eregi_replace.
For better technology, you can download dedecms5.7. some of my files are also copied directly from dedecms5.7, because php5.3 is already supported in version 5.7.

The solution is as follows:
* Call_user_method () can be replaced by call_user_func ().
* Call_user_method_array () can replace define_syslog_variables () with call_user_func_array ()
* Dl () is opposed to using DL to load extensions. php. ini will be used after php5.3.
* Ereg () can be replaced by preg_match ().
* Ereg_replace () can be replaced by preg_replace ().
* Eregi () is replaced by the preg_match () I parameter.
* Eregi_replace () is replaced by the preg_replace () I parameter.
* Set_magic_quotes_runtime () is replaced by magic_quotes_runtime ().
* Session_register () session_unregister () session_is_registered ()
* Replace the preceding three values with $ _ SESSION.
* Set_socket_blocking () is replaced by stream_set_blocking ().
* Use preg_split () to replace split ().
* Replace spliti () with preg_split () mode 'I
* SQL _regcase ()
* Replace mysql_escape_string () with mysql_db_query () with mysql_select_db () mysql_query () with mysql_real_escape_string ()
* For time zone processing, use Timezone


Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.