PHP 4.4.0対策
どうしてもいそいでPHP 4.4.0で動かさないといけない方は以下の修正をお願いします。
- 全てのクラスのコンストラクターの「&」をはずす
- 「core/DIContainer.class.php」のDIContainer#createの「&」をはずす
- 「core/DIContainer.class.php」のDIContainer#getComponentを修正
3つ目に関しては以下のような修正をお願いします。
【修正前】
function &getComponent($name) { if (isset($this->_components[$name])) { return $this->_components[$name]; } }
【修正後】
function &getComponent($name) { $component = NULL; if (isset($this->_components[$name])) { $component =& $this->_components[$name]; } return $component; }