最近のcodeigniter 2014.06.19
DESCRIPTION
FuelPHP & CodeIgniterユーザの集い #5 発表資料です。TRANSCRIPT
最近のCodeIgniter
宮川 貴子(@NEKOGET) CodeIgniter® The CodeIgniter mark is owned and may be registered by EllisLab, Inc .
ひさびさのリリース 2014年6月5日リリースされました!
2.2.0
その前のバージョン 2.1.4 2013年7月8日以来11ヶ月ぶり!
2.1.4から2.2.0へのアップグレード
暗号化クラスは、現在mcrypt拡張モジュールが必要です。 これは互換性に影響する変更点です。 mcryptを使用せずに暗号化クラスを使用していた場合は、アップグレードするために、mcrypt拡張モジュールをインストールする必要があります。 mcryptはインストールの詳細については、PHPマニュアル参照してください。 アップデートを実行する前に、静的なものにindex.phpファイルを置き換えて、オフラインにする必要があります。
アップグレード
ステップ1:CodeIgniterのファイルを更新
あなたの “system”フォルダ内のすべてのファイルおよびディレクトリを交換し、index.phpファイルを置き換えます。 index.phpを変更されている場合は、新しいindex.phpにその変更を実装する必要があります。
“system”フォルダ内のファイルを更新している場合は、最初にコピーを取っておいてください。
全般的な変更 2件
• セキュリティ:暗号化クラスでのxor_encode()メソッドが削除されました。暗号化クラスは、インストールするmcrypt拡張モジュールが必要です。
• セキュリティ:セッションライブラリは今HMAC認証の代わりに、単純なMD5チェックサムを使用しています。
hVp://ja.wikipedia.org/wiki/HMAC
バグ修正 5件
• Email Libraryの修正 – バグ報告 : hVps://github.com/EllisLab/CodeIgniter/issues/2583 – Suhosinについて:hVp://d.hatena.ne.jp/hnw/20090101
• oci_execute() トランザクションの処理 – oci_execute()について:hVp://www.php.net//manual/ja/func^on.oci-‐execute.php – バグ報告 : hVps://github.com/EllisLab/CodeIgniter/issues/696
• Database Forge Class – Pull request: hVps://github.com/EllisLab/CodeIgniter/pull/2689
• PDO Database driver – Pull request: hVps://github.com/EllisLab/CodeIgniter/pull/2427
• Session Library
Email Libraryの修正
• Email Libraryの修正 – バグ報告 : hVps://github.com/EllisLab/CodeIgniter/issues/2583 – Suhosinについて:hVp://d.hatena.ne.jp/hnw/20090101
• 修正内容 – hVps://github.com/EllisLab/CodeIgniter/commit/c5b0a27eda0a6681d247a89c7c56f49e27c0f304
oci_execute() トランザクションの処理
• oci_execute()について:hVp://www.php.net//manual/ja/func^on.oci-‐execute.php • バグ報告 : hVps://github.com/EllisLab/CodeIgniter/issues/696 • 修正されたコード :
hVps://github.com/EllisLab/CodeIgniter/commit/c1ee5a02e6bac4547e5b52e1dba4d39285fafe87
Database Forge Class • Pull request: hVps://github.com/EllisLab/CodeIgniter/pull/2689 • 変更されたコード :
hVps://github.com/EllisLab/CodeIgniter/commit/9c5c490bdc61ebd27593577480ec484f0b0f6367
PDO Database driver • Pull request: hVps://github.com/EllisLab/CodeIgniter/pull/2427 • 変更されたコード :
hVps://github.com/EllisLab/CodeIgniter/commit/92f62b03812c6079fc5e73d865d727627e533e63
Session Library • CI_Session用バックポートHMAC認証 • HMAC認証について hVps://www.ipa.go.jp/security/rfc/RFC2104JA.html
• セッションクラスの変更履歴 hVps://github.com/EllisLab/CodeIgniter/commits/2.2-‐stable/system/libraries/Session.php
• 変更されたコード – hVps://github.com/EllisLab/CodeIgniter/commit/
916b176594bcf175417423f33711ac0cbb4082e7#diff-‐5348eda7812c749beedca7dfd8b0d086
– hVps://github.com/EllisLab/CodeIgniter/commit/0d0376807ffe27f08bfe36149ec732d84f05762c#diff-‐5348eda7812c749beedca7dfd8b0d086
ご清聴ありがとうございました
参考資料 reference data
• Github – hVps://github.com/EllisLab/CodeIgniter/
• ElisLab Blog – hVp://ellislab.com/blog/entry/codeigniter-‐2.2.0-‐released
• ユーザーガイド Upgrading from 2.1.4 to 2.2.0 – hVp://ellislab.com/codeigniter/user-‐guide/installa^on/
upgrade_220.html • ユーザーガイド : Change Log
– hVp://ellislab.com/codeigniter/user-‐guide/changelog.html