<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/ME2.2.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>CILab - CodeIgniter日本語情報・TIPS</title>
	<link>http://www.cilab.info</link>
	<description>オープンソースでライトウェイトなPHPフレームワーク「CodeIgniter」の日本語情報・TIPについてのサイトです。</description>
	<pubDate>Tue, 19 Feb 2008 17:12:50 +0900</pubDate>
	<generator>http://wordpress.org/?v=ME2.2.3</generator>
	<language>ja</language>
			<item>
		<title>OSS 2008Tokyo/Spring にCIが登場</title>
		<link>http://www.cilab.info/archives/9</link>
		<comments>http://www.cilab.info/archives/9#comments</comments>
		<pubDate>Wed, 20 Feb 2008 02:12:50 +0900</pubDate>
		<dc:creator>cilab</dc:creator>
		
		<category><![CDATA[未分類]]></category>

		<guid isPermaLink="false">http://www.cilab.info/archives/9</guid>
		<description><![CDATA[オープンソースカンファレンス2008 Tokyo/Spring （2008年2月29日(金)・3月1日(土)に東京で開催）に
日本CodeIgniterユーザ会が出展いたします。この機会にぜひご参加ください。
●詳しくはこちら
http://www.ospn.jp/osc2008-spring/modules/eguide/event.php?eid=41
]]></description>
		<wfw:commentRss>http://www.cilab.info/archives/9/feed</wfw:commentRss>
		</item>
		<item>
		<title>CodeIgniterユーザ会 in Japan</title>
		<link>http://www.cilab.info/archives/8</link>
		<comments>http://www.cilab.info/archives/8#comments</comments>
		<pubDate>Mon, 03 Dec 2007 00:25:42 +0900</pubDate>
		<dc:creator>cilab</dc:creator>
		
		<category><![CDATA[未分類]]></category>

		<guid isPermaLink="false">http://www.cilab.info/archives/8</guid>
		<description><![CDATA[すでにご存じの方も多いと思いますが、CodeIgniterユーザ会が準備されています。
今後に期待です。私も参加しました。
http://codeigniter.biz/
http://codeigniter.jp/
]]></description>
		<wfw:commentRss>http://www.cilab.info/archives/8/feed</wfw:commentRss>
		</item>
		<item>
		<title>CodeIgniter ユーザガイド日本語版 1.5.4</title>
		<link>http://www.cilab.info/archives/7</link>
		<comments>http://www.cilab.info/archives/7#comments</comments>
		<pubDate>Fri, 20 Jul 2007 07:23:27 +0900</pubDate>
		<dc:creator>cilab</dc:creator>
		
		<category><![CDATA[CodeIgniter日本語化]]></category>

		<guid isPermaLink="false">http://www.cilab.info/archives/7</guid>
		<description><![CDATA[CodeIgniter ユーザガイド日本語版です。
バージョン1.5.4に対応しました。
CodeIgniterユーザガイド 日本語版 1.5.4

バージョン1.5.3のユーザガイドはこちらに移動しました。
追記：2007/07/28更新    1.5.4のガイドで、全体に誤字・細かい誤訳の修正をしました。
2007/09/23更新 1.5.4のガイドで、いくつかの未訳部分を翻訳。誤字・細かい誤訳の修正をしました。
]]></description>
		<wfw:commentRss>http://www.cilab.info/archives/7/feed</wfw:commentRss>
		</item>
		<item>
		<title>CI日本語言語パック（修正版）</title>
		<link>http://www.cilab.info/archives/6</link>
		<comments>http://www.cilab.info/archives/6#comments</comments>
		<pubDate>Fri, 29 Jun 2007 22:17:55 +0900</pubDate>
		<dc:creator>cilab</dc:creator>
		
		<category><![CDATA[未分類]]></category>

		<guid isPermaLink="false">http://www.cilab.info/archives/6</guid>
		<description><![CDATA[言語パックのエラー画面のHTMLでタグが2重になっているところがあったので
修正しました。

日本語言語パックダウンロードはこちら

ご指摘くださった goungoun さんありがとうございます！

]]></description>
		<wfw:commentRss>http://www.cilab.info/archives/6/feed</wfw:commentRss>
		</item>
		<item>
		<title>CodeIgniter+MySQLでデータ全件が更新される?!</title>
		<link>http://www.cilab.info/archives/5</link>
		<comments>http://www.cilab.info/archives/5#comments</comments>
		<pubDate>Tue, 29 May 2007 21:38:14 +0900</pubDate>
		<dc:creator>cilab</dc:creator>
		
		<category><![CDATA[CodeIgniterTIPS]]></category>

		<guid isPermaLink="false">http://www.cilab.info/archives/5</guid>
		<description><![CDATA[少し前にの公式フォーラムで話題になっていましたが、CodeIgniterのActiveRecordには、うっかりすると恐ろしい結果を招く仕様（バグ？）があるようです。
PHP Community Magazine に関連記事がありました。
その記事の内容の要約です：
こんな列のテーブル（テーブル名：users）があったとします。

user_id
username
password
email

ここで、以下のようなコードを実行したとします。
$data = array('password' =&#62;$new_password);
$this-&#62;db-&#62;where('user_id', $user_id);
$this-&#62;db-&#62;update('users', $data);

実行されるSQLは、こんな感じになります。

UPDATE users set password='{$new_password}' where user_id='{$user_id}';
ところで、$user_id が null だった場合、どんなSQLが生成されるでしょうか？
UPDATE users set password='{$new_password}' where user_id='';
UPDATE users set password='{$new_password}' where user_id Is Null;
おそらく上記のどちらかのような感じになると期待することが多いのではないでしょうか。ところが、実際には、下記のようなSQLが生成されてしまいます。

UPDATE users set password='{$new_password}' where user_id;
user_id の後に何もつかないSQL文になります。PostgreSQLなどのDBMSでは、エラーになり、これは実行されません。ところが、MySQLの場合、悲惨なことに、全件のデータ（ここではパスワード）が、更新されてしまうという恐ろしい結果になります…
CodeIgniter1.5.3で実際にテストして動かしてみましたが、指摘の通りの結果になりました。
普通は、ActiveRecordクラスに渡す前に値のチェックを行っていることが多いと思うので、起こりにくい現象ではありますが、うっかりnullチェックが抜けると、大変なことになってしまうので、皆さんも注意してください。
PHP Community Magazineの記事：
http://community.phpmagazine.net/2007/04/bad_experience_with_codeignite.html
寄稿者のブログ:
http://hasin.wordpress.com/2007/04/18/vulnerable-bug-in-codeigniter-which-took-us-hours-to-fix-our-corrupted-database/
]]></description>
		<wfw:commentRss>http://www.cilab.info/archives/5/feed</wfw:commentRss>
		</item>
		<item>
		<title>CI日本語言語パック</title>
		<link>http://www.cilab.info/archives/4</link>
		<comments>http://www.cilab.info/archives/4#comments</comments>
		<pubDate>Mon, 28 May 2007 18:54:03 +0900</pubDate>
		<dc:creator>cilab</dc:creator>
		
		<category><![CDATA[CodeIgniter日本語化]]></category>

		<guid isPermaLink="false">http://www.cilab.info/archives/4</guid>
		<description><![CDATA[CodeIgniterの日本語言語パックを公開します。AsIsベースでの提供になります。動作報告などありましたらコメントください。

CodeIgniter日本語言語パック1.5 をダウンロード

CodeIgniter 1.5.3 で動作簡単な動作確認をしました。
Scaffoldingですが、MySQL4.1以降を使っている場合、文字コードが合わなくて文字化けを起こす可能性があるかもしれません（未検証）。その場合は、CIのMySQLドライバでクエリを発行する直前に
set names '文字コード' 
とするといいかもしれません。
]]></description>
		<wfw:commentRss>http://www.cilab.info/archives/4/feed</wfw:commentRss>
		</item>
		<item>
		<title>CodeIgniter ユーザガイド日本語版</title>
		<link>http://www.cilab.info/archives/1</link>
		<comments>http://www.cilab.info/archives/1#comments</comments>
		<pubDate>Sun, 27 May 2007 18:59:34 +0900</pubDate>
		<dc:creator>cilab</dc:creator>
		
		<category><![CDATA[CodeIgniter日本語化]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[CodeIgniterユーザガイドを日本語訳したので公開します。
CodeIgniterユーザガイド日本語版
できるかぎり正しい情報を提供できるように努めていますが、AsIsベースので提供ですので正確性などについては十分ご注意ください。意訳で英語を素直に訳していないところもあります。
]]></description>
		<wfw:commentRss>http://www.cilab.info/archives/1/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
