不要在php5.3上運行dedecms5.6版本

來源:互聯網
上載者:User
不要在php5.3下運行dedecms5.6版本
今天在利用dedecms結合ecshop幫公司製作分銷同盟,發覺dedecms5.6在php5.3的環境下連續出錯
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 


根據報告,發現原來php5.3已經不在支援eregi和eregi_replace
技術比較好的,可以下載dedecms5.7,我有些檔案也是直接從dedecms5.7抄過來的,因為5.7版本已經開始支援php5.3了

解決方案如下:
* call_user_method() 可以用 call_user_func() 替代
* call_user_method_array() 可以用 call_user_func_array() 替代define_syslog_variables()
* dl() 反對在使用DL載入擴充,php5.3 以後應用php.ini配製
* ereg() 可以用 preg_match() 替代
* ereg_replace() 可以用 preg_replace() 替代
* eregi() 用 preg_match() i 參數替代
* eregi_replace() 用 preg_replace() i 參數替代
* set_magic_quotes_runtime() 用 magic_quotes_runtime() 替代
* session_register() session_unregister() session_is_registered()
* 以上三個統一用 $_SESSION 替代
* set_socket_blocking() 用 stream_set_blocking() 替代
* split() 用 preg_split() 替代
* spliti() 用 preg_split() 模式 ‘i’ 替代
* sql_regcase()
* mysql_db_query() 用 mysql_select_db() mysql_query() 替代mysql_escape_string() 用 use mysql_real_escape_string() 替代
* 關於時區處理,統一用Timezone對像


  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    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.