Ticket #854 (closed バグ指摘: 修正済)

Opened 10 years ago

Last modified 10 years ago

PHP4 対応

Reported by: nanasess Owned by: nanasess
Priority: Milestone: EC-CUBE2.11.1
Component: その他 Version: 2.5-dev
Keywords: Cc:
修正済み:

Description (last modified by nanasess) (diff)

source:branches/version-2_5-dev にて, PHP4.3.11 では動作しない箇所の修正

検証環境

OSSunOS unknown 5.10 Generic_142910-17 i86pc
DBサーバMySQL 5.1.52-log
WEBサーバApache/1.3.41 (Unix) PHP/4.3.11 mod_perl/1.31
PHP4.3.11

注意すべきこと

PHP5 の構文

instanceof や, public 修飾子 など, PHP5 の構文は, プリコンパイル時に parse error になる. 下記のような型指定も不可

  function setParam(String $params) {
      // some logics...
  }

引数での参照渡し

参照渡しの場合は, 初期値を代入できない

  // この関数はエラーになります
  function calculate($productTypeId, &$objCustomer = null) {
      // some logics...
  }

Change History

comment:1 Changed 10 years ago by nanasess

  • Owner changed from somebody to nanasess
  • Status changed from new to assigned

r19675 で暫定対応しました. PHP4.3.3 で動作確認済みです.

comment:2 Changed 10 years ago by nanasess

comment:3 Changed 10 years ago by nanasess

  • Milestone changed from EC-CUBE2.5.0beta to EC-CUBE2.5.1(仮)

comment:4 Changed 10 years ago by nanasess

  • Description modified (diff)

Solaris 10 09/10 で, PHP4.3.10 はビルドできなかったため, PHP4.3.11 を使用して検証

comment:5 Changed 10 years ago by nanasess

  • Description modified (diff)

comment:6 Changed 10 years ago by nanasess

EC-CUBE 2.11.0 ベータにて, PHP4 未対応だった箇所を r20024 で修正しました.

comment:7 Changed 10 years ago by kotani

  • Status changed from assigned to closed
  • Resolution set to 修正済
Note: See TracTickets for help on using tickets.