..:: La。琉光 ::..
關於部落格
粼粼波光
反映心靈閃爍的跳動靈魂

在沒有三角、菱形、方塊的dynamic block

交織而成的

只有盈滿戀戀
我的琉光
  • 66837

    累積人氣

  • 0

    今日人氣

    0

    訂閱人氣

[ PHP ] PHP 5.2.X 升級 PHP 5.3.X 後不宜使用的function

 

PHP 5.3.0 introduces two new error levels: E_DEPRECATED and E_USER_DEPRECATED. The E_DEPRECATED error level is used to indicate that a function or feature has been deprecated. The E_USER_DEPRECATED level is intended for indicating deprecated features in user code, similarly to the E_USER_ERROR and E_USER_WARNING levels.

The following is a list of deprecated INI directives. Use of any of these INI directives will cause an E_DEPRECATED error to be thrown at startup.

Deprecated functions:

Deprecated features:

  • Assigning the return value of new by reference is now deprecated.
  • Call-time pass-by-reference is now deprecated.
  • The use of {} to access string offsets is deprecated. Use [] instead.

document source from (資料來源) : http://www.php.net/manual/en/migration53.deprecated.php



若在更新的過程中,發現以下的錯誤訊息,解決方法如下:
Deprecated: Function split() is deprecated in ....... 將split 改為 preg_split
Deprecated: Function ereg_replace() is deprecated in.........
 
將ereg_replace 換成preg_replace
Deprecated: Function ereg() is deprecated in ........將ereg換成preg_match
Deprecated: Assigning the return value of new by reference is deprecated in ........把"&" 移掉
Warning: preg_match() [function.preg-match]: Empty regular expression in.......patten的前後要用『/』包起來
Warning: preg_split() [function.preg-split]: Delimiter must not be alphanumeric or backslash in.......將""移掉,若為"n"換成chr(13)
SYSTEM WARNING: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslashpatten的前後要用『/』包起來
SYSTEM WARNING: preg_match() [function.preg-match]: No ending delimiter '^' foundpatten的前後要用『/』包起來
SYSTEM WARNING: preg_replace() [function.preg-replace]: No ending delimiter '^' foundpatten的前後要用『/』包起來
Warning: preg_replace() [function.preg-replace]: No ending delimiter '/' found in D:wwwmantis118_newcorestring_api.php on line 464patten的後面要用『/』包起來
SYSTEM WARNING: preg_split() [function.preg-split]: Empty regular expressionpatten的前後要用『/』包起來
SYSTEM WARNING: preg_match() [function.preg-match]: Unknown modifier '/'patten若是使用類似http://的雙斜線 要寫成 http://
 

Function magic_quotes_runtime() is deprecated in

改使用
ini_set(
'magic_quotes_runtime', 0);
相簿設定
標籤設定
相簿狀態