Modified: phpdoc/ja/trunk/language/basic-syntax.xml =================================================================== --- phpdoc/ja/trunk/language/basic-syntax.xml 2014-05-09 07:37:03 UTC (rev 333506) +++ phpdoc/ja/trunk/language/basic-syntax.xml 2014-05-09 22:51:11 UTC (rev 333507) @@ -1,6 +1,6 @@ - + @@ -118,10 +118,10 @@ 3. - This is a shortcut for "" + これは、"" のショートカットです。 4. <% echo 'オプションでASP形式のタグを使用可能です'; %> - <%= $variable; # これは、"<%echo .." のショートカットです。%> + <%= $variable; %> これは、"<% echo $variable; %>" のショートカットです。 ]]> Modified: phpdoc/ja/trunk/language/context.xml =================================================================== --- phpdoc/ja/trunk/language/context.xml 2014-05-09 07:37:03 UTC (rev 333506) +++ phpdoc/ja/trunk/language/context.xml 2014-05-09 22:51:11 UTC (rev 333507) @@ -1,6 +1,6 @@ - + コンテキストオプションとパラメータ @@ -22,6 +22,7 @@ &language.context.ssl; &language.context.curl; &language.context.phar; + &language.context.mongodb; &language.context.parameters; Modified: phpdoc/ja/trunk/language/types/boolean.xml =================================================================== --- phpdoc/ja/trunk/language/types/boolean.xml 2014-05-09 07:37:03 UTC (rev 333506) +++ phpdoc/ja/trunk/language/types/boolean.xml 2014-05-09 22:51:11 UTC (rev 333507) @@ -1,6 +1,6 @@ - + 論理型 (boolean) @@ -13,7 +13,7 @@ 構文 - boolean リテラルを指定するには、キーワード &true; + boolean リテラルを指定するには、定数 &true; または &false; を指定してください。 両方とも大文字小文字に依存しません。 Modified: phpdoc/ja/trunk/language-snippets.ent =================================================================== --- phpdoc/ja/trunk/language-snippets.ent 2014-05-09 07:37:03 UTC (rev 333506) +++ phpdoc/ja/trunk/language-snippets.ent 2014-05-09 22:51:11 UTC (rev 333507) @@ -1,6 +1,6 @@ - + 4.2.0 @@ -1803,15 +1803,20 @@ w が整数値あるいは文字列でない場合に E_WARNING が発生します。'> この関数は、書き込み確認を表す配列を返します。w の値はサーバーの台数を表す整数値かモードを表す文字列、そして wtimeout の値はサーバーが書き込み確認を待つ最大ミリ秒数です。'> "maxTimeMS"操作を行う累積時間の制限 (アイドル時間を含まない) を、ミリ秒単位で指定します。この時間内に操作が完了しなければ、MongoExecutionTimeoutException をスローします。'> +"background"Builds the index in the background so that building an index does not block other database activities. Specify &true; to build in the background. The default value is &false;.Prior to MongoDB 2.6.0, index builds on secondaries were executed as foreground operations, irrespective of this option. See Building Indexes with Replica Sets for more information.'> + +"dropDups"Specify &true; to force creation of a unique index that may have duplicates. MongoDB will index the first occurrence of a key and delete all documents from the collection that contain subsequent occurrences of that key. The default value is &false;."dropDups" may delete data from your database. Use with extreme caution.'> +"expireAfterSeconds"The value of this option should specify the number of seconds after which a document should be considered expired and automatically removed from the collection. This option is only compatible with single-field indexes where the field will contain MongoDate values.This feature is available in MongoDB 2.2+. See Expire Data from Collections by Setting TTL for more information.'> +"name"A optional name that uniquely identifies the index.By default, the driver will generate an index name based on the index's field(s) and ordering or type. For example, a compound index array("x" => 1, "y" => -1) would be named "x_1_y_-1" and a geospatial index array("loc" => "2dsphere") would be named "loc_2dsphere". For indexes with many fields, it is possible that the generated name might exceed MongoDB's limit for index names. The "name" option may be used in that case to supply a shorter name.'> +"sparse"Specify &true; to create a sparse index, which only indexes documents containing a specified field. The default value is &false;.'> +"unique"Specify &true; to create a unique index. The default value is &false;. This option applies only to ascending/descending indexes.When MongoDB indexes a field, if a document does not have a value for the field, a &null; value is indexed. If multiple documents do not contain a field, a unique index will reject all but the first of those documents. The "sparse" option may be used to overcome this, since it will prevent documents without the field from being indexed.'> + "w" WriteConcerns を参照ください。MongoClient でのデフォルト値は 1 です。 '> -"wtimeout" -WriteConcern の確認をいつまで待つか。 -MongoClient のデフォルトは 10000 ミリ秒です。 -非推奨です。かわりに "wTimeoutMS" オプションを使いましょう。'> -"wTimeoutMS"WriteConcern の確認をいつまで待つか。MongoClient のデフォルトは 10000 ミリ秒です。'> +"wtimeout"廃止予定。"wTimeoutMS" のエイリアスです。'> +"wTimeoutMS"write concern の確認をいつまで待つか。MongoClient でのデフォルトは 10000 ミリ秒です。'> "fsync" Boolean 型で、デフォルトは &false; です。 ジャーナリングが有効な場合、これは "j" とまったく同じ動きをします。 @@ -1821,16 +1826,18 @@ ジャーナリングが有効な場合は、"fsync" のかわりに "j" を使いましょう。 "fsync" と "j" を同時に指定すると、エラーになります。 '> -整数で、デフォルトは MongoCursor::$timeout です。確認付き書き込みを使っている場合、これはクライアントがデータベースからのレスポンスを待ち続ける時間 (ミリ秒) を表します。この時間内にデータベースからの反応がなければ、MongoCursorTimeoutException をスローします。"socketTimeoutMS"'> +"socketTimeoutMS"整数で、デフォルトは MongoCursor::$timeout です。確認付き書き込みを使っている場合、これはクライアントがデータベースからのレスポンスを待ち続ける時間 (ミリ秒) を表します。この時間内にデータベースからの反応がなければ、MongoCursorTimeoutException をスローします。'> "j"デフォルトは &false; です。これを指定すると、追加をジャーナルに同期させるまで成功したと見なさないようになります。&true; にすると確認付き書き込みと見なされ、"w" の設定を 0 に上書きします。このオプションを使っているときにジャーナリングを無効にすると、MongoDB 2.6 以降ではエラーが発生して書き込みに失敗します。古いバージョンのサーバーでは、単純にオプションの師弟を無視します。'> -"safe"非推奨。WriteConcern の w オプションを使いましょう。'> -"timeout"整数で、デフォルトは MongoCursor::$timeout です。確認付き書き込みを使っている場合、これはクライアントがデータベースからのレスポンスを待ち続ける時間 (ミリ秒) を表します。この時間内にデータベースからの反応がなければ、MongoCursorTimeoutException をスローします。非推奨です。かわりに "socketTimeoutMS" オプションを使いましょう。'> -"w" オプションが設定されていて書き込みが失敗した場合に MongoCursorException をスローします。"w" オプションの値が 1 より大きく設定されていて、操作の完了までの時間が MongoCursor::$timeout ミリ秒をこえた場合に MongoCursorTimeoutException をスローします。サーバー上での操作は止めません。これはクライアント側でのタイムアウトです。MongoCollection::$wtimeout はミリ秒です。'> +"safe"非推奨。write concern の w オプションを使いましょう。'> +"timeout"非推奨。"socketTimeoutMS" のエイリアス。'> +"w" オプションが設定されていて書き込みが失敗した場合に MongoCursorException をスローします。"w" オプションの値が 1 より大きく設定されていて、操作の完了までの時間が MongoCursor::$timeout ミリ秒をこえた場合に MongoCursorTimeoutException をスローします。サーバー上での操作は止めません。これはクライアント側でのタイムアウトです。MongoCollection::$wtimeout はミリ秒です。'> E_DEPRECATED が発生します。'> これらのフィールドは、ドライバが自動生成したフィールドも上書きします。詳しい説明は、MongoDB コアドキュメントの files collection を参照ください。この挙動の現実的な使い道としては、ファイルの chunkSize や _id を独自に指定する場合などがあります。'> 格納したファイルドキュメントの _id を返します。extra パラメータで _id を明示的に指定していない場合は、自動生成した MongoId となります。'> 書き込みオプションの配列。キー値w (int|string)WriteConcern の値wtimeout (int)レプリケーションを待つ時間の最大値orderedMongoDB にこのバッチを順番どおりに実行させるのか、あるいは並べ替えを許すのかを指定する。デフォルトは &true;j (bool)プライマリーへのジャーナリングを待つかどうか。これは非推奨なので、かわりに確認付き書き込みを使うことfsync (bool)プライマリーへの fsync を待つかどうか。これは非推奨なので、かわりに確認付き書き込みを使うこと'> -バッチを実行する MongoCollection。確認付き書き込みのデフォルトは WriteConcern をコピーします。$write_options で指定したり、MongoWriteBatch::execute で指定したりすることもできます。'> +バッチを実行する MongoCollection。確認付き書き込み をコピーして、デフォルトとして使います。$write_options で指定したり、MongoWriteBatch::execute で指定したりすることもできます。'> + + server An array containing the basic information about the server that was picked. key value hash server hash, example: localhost:27017;-;X;56052 type Node type (primary/secondary/mongos/arbiter): 2 max_bson_size The maximum BSON Size over the wire this node accepts: 16777216 max_message_size The maximum Message Size over the wire this node accepts: 48000000 request_id The request identifier for this message: 42 '> writeOptions key value ordered boolean, if the operation (in case of batch operation) must be executed sequentually (ordered=true) writeConcern An array of writeConcern options (see below) writeConcern array values key value fsync boolean, force flushing to disk before returning j boolean, force journal write before returning wtimeout integer, milliseconds, maximum time the primary is allowed to wait to verify replication w integer=server count, or string=replication-tag
'> protocolOptions key value message_length The total size (in bytes) of the encoded message being sent over the wire request_id The request identifier for this message: 42 namespace The MongoDB namespace used for the protocol message dbname.collectionname '> リクエストを radius_create_request で作ってからでないと、この関数は呼べません。'> Modified: phpdoc/ja/trunk/reference/array/functions/array-merge.xml =================================================================== --- phpdoc/ja/trunk/reference/array/functions/array-merge.xml 2014-05-09 07:37:03 UTC (rev 333506) +++ phpdoc/ja/trunk/reference/array/functions/array-merge.xml 2014-05-09 22:51:11 UTC (rev 333507) @@ -1,6 +1,6 @@ - + @@ -213,6 +213,7 @@ array_merge_recursive + array_replace array_combine 配列演算子 Modified: phpdoc/ja/trunk/reference/datetime/datetime.xml =================================================================== --- phpdoc/ja/trunk/reference/datetime/datetime.xml 2014-05-09 07:37:03 UTC (rev 333506) +++ phpdoc/ja/trunk/reference/datetime/datetime.xml 2014-05-09 22:51:11 UTC (rev 333507) @@ -1,6 +1,6 @@ - + @@ -46,7 +46,7 @@ const string DateTime::COOKIE - "l, d-M-y H:i:s T" + "l, d-M-Y H:i:s T" const @@ -142,7 +142,7 @@ DATE_COOKIE - HTTP Cookies (例: Monday, 15-Aug-05 15:52:01 UTC) + HTTP Cookies (例: Monday, 15-Aug-2005 15:52:01 UTC) @@ -261,6 +261,13 @@
+ 5.4.24 + + COOKIE 定数が、RFC 1036 に準拠するように (年を4桁で表すように) なりました。 + 以前のバージョンでは、RFC 850 に従って年を2桁で表していました。 + + + 5.2.2 DateTime オブジェクトどうしの Modified: phpdoc/ja/trunk/reference/errorfunc/functions/error-reporting.xml =================================================================== --- phpdoc/ja/trunk/reference/errorfunc/functions/error-reporting.xml 2014-05-09 07:37:03 UTC (rev 333506) +++ phpdoc/ja/trunk/reference/errorfunc/functions/error-reporting.xml 2014-05-09 22:51:11 UTC (rev 333507) @@ -1,6 +1,6 @@ - + @@ -113,8 +113,7 @@ error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE); // E_NOTICE 以外の全てのエラーを表示する -// これは php.ini で設定されているデフォルト値 -error_reporting(E_ALL ^ E_NOTICE); +error_reporting(E_ALL & ~E_NOTICE); // 全ての PHP エラーを表示する (Changelog を参照ください) error_reporting(E_ALL); Modified: phpdoc/ja/trunk/reference/math/functions/min.xml =================================================================== --- phpdoc/ja/trunk/reference/math/functions/min.xml 2014-05-09 07:37:03 UTC (rev 333506) +++ phpdoc/ja/trunk/reference/math/functions/min.xml 2014-05-09 22:51:11 UTC (rev 333507) @@ -1,6 +1,6 @@ - + @@ -117,8 +117,8 @@ ]]> Modified: phpdoc/ja/trunk/reference/mongo/book.xml =================================================================== --- phpdoc/ja/trunk/reference/mongo/book.xml 2014-05-09 07:37:03 UTC (rev 333506) +++ phpdoc/ja/trunk/reference/mongo/book.xml 2014-05-09 22:51:11 UTC (rev 333507) @@ -1,13 +1,13 @@ - + MongoDB Mongo &reference.mongo.setup; - + &reference.mongo.constants; &reference.mongo.manual; &reference.mongo.core; Modified: phpdoc/ja/trunk/reference/mongo/changelog.xml =================================================================== --- phpdoc/ja/trunk/reference/mongo/changelog.xml 2014-05-09 07:37:03 UTC (rev 333506) +++ phpdoc/ja/trunk/reference/mongo/changelog.xml 2014-05-09 22:51:11 UTC (rev 333507) @@ -1,6 +1,6 @@ - + &ChangelogListingTitle; @@ -97,7 +97,7 @@ 既存のメソッドの中で、初期のバージョンから改良が加えられたものをまとめます。 - + Modified: phpdoc/ja/trunk/reference/mongo/connecting.xml =================================================================== --- phpdoc/ja/trunk/reference/mongo/connecting.xml 2014-05-09 07:37:03 UTC (rev 333506) +++ phpdoc/ja/trunk/reference/mongo/connecting.xml 2014-05-09 22:51:11 UTC (rev 333507) @@ -1,6 +1,6 @@ - + 接続 @@ -12,6 +12,140 @@ オプションをまとめましたが、ここではより実用的な使用例とアドバイスをとりあげます。 +
+ Connecting over SSL + + The driver supports connecting to MongoDB over SSL + and can optionally use SSL Stream Context options to provide more details, + such as verifying certificates against specific certificate chain, or authenticate to + MongoDB using X509 certificates. + + + + Connect to MongoDB Instance with SSL Encryption + + true)); +?> +]]> + + + + + Connect to MongoDB Instance with SSL Encryption, verifying it is who we think it is + + array( + /* Optionally verify the server is who he says he is, and has been certified by CA we trust */ + "verify_peer" => true, + "allow_self_signed" => false, + "cafile" => "/vagrant/certs/ca.pem", + ), +)); + +$mc = new MongoClient( + "mongodb://server1", + array("ssl" => true), + array("context" => $ctx) +); +?> +]]> + + + + + + Connect to MongoDB Instance that Requires Client Certificates + + array( + "local_cert" => "/vagrant/certs/client.pem", + /* If the certificate we are providing was passphrase encoded, we need to set it here */ + "passphrase" => "My Passphrase for the local_cert", + + /* Optionally verify the server is who he says he is */ + "verify_peer" => true, + "cafile" => "/vagrant/certs/ca.pem", + ), +)); + +$mc = new MongoClient( + "mongodb://server1/?ssl=true", + array(), + array("context" => $ctx) +); +?> +]]> + + + + + Authenticating with X.509 certificates + + The username is the certificate subject from the X509, which can be extracted like this: + + + + + + array( + "local_cert" => "/vagrant/certs/ca-signed-client.pem", + ) +) ); + +$mc = new MongoClient( + 'mongodb://username@server1/?authSource=$external&authMechanism=MONGODB-X509&ssl=true', + array(), + array("context" => $ctx) +); +?> +]]> + + + Where username is the certificate subject. + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 1.5.0 + + Added support for X509 authentication. + + + + 1.4.0 + + Added support for connecting to SSL enabled MongoDB. + + + + + + + +
+
認証 Modified: phpdoc/ja/trunk/reference/mongo/manual.xml =================================================================== --- phpdoc/ja/trunk/reference/mongo/manual.xml 2014-05-09 07:37:03 UTC (rev 333506) +++ phpdoc/ja/trunk/reference/mongo/manual.xml 2014-05-09 22:51:11 UTC (rev 333507) @@ -1,6 +1,6 @@ - + マニュアル @@ -18,6 +18,7 @@ &reference.mongo.writeconcerns; &reference.mongo.sqltomongo; &reference.mongo.connecting; + &reference.mongo.context; &reference.mongo.writes; &reference.mongo.queries; &reference.mongo.updates; Modified: phpdoc/ja/trunk/reference/mongo/mongoclient/construct.xml =================================================================== --- phpdoc/ja/trunk/reference/mongo/mongoclient/construct.xml 2014-05-09 07:37:03 UTC (rev 333506) +++ phpdoc/ja/trunk/reference/mongo/mongoclient/construct.xml 2014-05-09 22:51:11 UTC (rev 333507) @@ -1,6 +1,6 @@ - + @@ -95,6 +95,55 @@ + "authMechanism" + + + 以下の機構が選べます。 + + + + + 認証機構 + 説明 + 利用可能 + + + + + MONGODB-CR + チャレンジレスポンス方式を使った認証。デフォルトです。 + すべてのバージョンの MongoDB + + + X509 + X509 証明書による認証。 + MongoDB 2.6。 が有効な場合のみ。 + + + PLAIN + 暗号化されていないユーザー名とパスワードによる認証。SSL 接続上でのみ使うこと。サードパーティの LDAP サーバー経由での MongoDB へのログインの際に利用する。 + MongoDB Enterprise 2.4。CyrusSASL2 を使うようにドライバをコンパイルしておく必要がある。 + + + GSSAPI + ケルベロス認証 + MongoDB Enterprise 2.4。CyrusSASL2 を使うようにドライバをコンパイルしておく必要がある。 + + + + + + + + + "authSource" + + + ユーザーが定義されているデータベース名を設定します。 + + + + "connect" @@ -173,6 +222,15 @@ + "gssapiServiceName" + + + Kerberos サービスプリンシパル + を設定します。authMechanism=GSSAPI の場合にのみ用いられるもので、デフォルトは "mongodb" です。 + + + + "password" @@ -224,6 +282,16 @@ + "secondaryAcceptableLatencyMS" + + + セカンダリから (優先読み込みを使って) 読み込むときに、 + secondaryAcceptableLatencyMS 以上はなれているセカンダリからは読み込みません。 + デフォルトは 15 です。 + + + + "socketTimeoutMS" @@ -235,6 +303,7 @@ に達してしまうと、サーバーが実際に書き込みを受信したかどうかを知るすべがなくなります。 + デフォルトは 30 秒です。カーソルごとに設定するには MongoCursor::timeout を使います。 @@ -292,14 +361,22 @@ - The following options are deprecated and should no longer be used: + 以下のオプションは廃止予定です。使ってはいけません。 + "slaveOkay" + + + 非推奨です。優先読み込み のオプションを使いましょう。 + + + + "timeout" - "connectTimeoutMS" へのエイリアス。非推奨です。 + "connectTimeoutMS" へのエイリアス。非推奨です。 @@ -307,7 +384,7 @@ "wTimeout" - "wTimeoutMS" へのエイリアス。非推奨です。 + "wTimeoutMS" へのエイリアス。非推奨です。 @@ -321,19 +398,17 @@ - MongoDB ドライバーへのオプションの配列。SSL 用の接続コンテキストのオプションや、 - ログ出力用のコールバックも含みます。 + MongoDB ドライバーへのオプションの配列。SSL 用の接続コンテキストのオプションや、 + ログ出力用のコールバックも含みます。 "context" - コンテキストオプションを渡す方法。このオプションで、SSL 証明書の設定ができます。 - 詳細は SSL コンテキストオプション を参照ください。 - 詳しい使いかたは この例 を参照ください。 + 新しい接続をアタッチするストリームコンテキスト。このオプションで、SSL 証明書の設定などができます。 + 詳細は SSL コンテキストオプション を参照ください。 + 詳しい使いかたは SSL 接続のチュートリアルを参照ください。 @@ -546,32 +621,6 @@ のページを参照ください。 - - - <function>MongoClient::__construct</function> で SSL 証明書を使って接続する例 - - array( - 'local_cert' => '/vagrant/certs/client.pem', - 'cafile' => '/vagrant/certs/ca.pem', - ) -) ); - -$m = new MongoClient( - "mongodb://mongod/?ssl=true", - array(), - array('context' => $ctx) -); -?> -]]> - - - 詳細な情報は、このマニュアルの 優先読み込み - のページを参照ください。 - - @@ -587,15 +636,36 @@ + 1.5.0 + + + "authMechanism"、"gssapiServiceName" および "secondaryAcceptableLatencyMS" + が追加されました。 + + + + 1.4.0 "wTimeoutMS" オプションが追加されました。これは "wTimeout" の代替です。 + + "slaveOkay" や "timeout" を使うと + E_DEPRECATED が発生します。 + + 1.5.0 + + + "authSource" が追加されました。 + + + + 1.3.4 Modified: phpdoc/ja/trunk/reference/mongo/mongocursor/timeout.xml =================================================================== --- phpdoc/ja/trunk/reference/mongo/mongocursor/timeout.xml 2014-05-09 07:37:03 UTC (rev 333506) +++ phpdoc/ja/trunk/reference/mongo/mongocursor/timeout.xml 2014-05-09 22:51:11 UTC (rev 333507) @@ -1,7 +1,7 @@ - + MongoCursor::timeout @@ -31,7 +31,7 @@ カーソルがレスポンスを待つミリ秒数。 ずっと待ち続ける場合は -1 を指定します。 - デフォルトでは、MongoCursor::$timeout で指定したミリ秒数だけ待ちます。 + デフォルトでは、3000 ミリ秒 (3 秒) だけ待ちます。 @@ -101,6 +101,13 @@ + + &reftitle.seealso; + + MongoClient::__construct の socketTimeoutMS オプション + + + - + セキュリティ @@ -8,9 +8,9 @@
リクエストインジェクション攻撃 - クエリに $_GET パラメータを渡している場合は、 + クエリに $_GET (あるいは $_POST) パラメータを渡している場合は、 まず最初にそれを文字列にキャストすることを忘れないようにしましょう。 - GET リクエストには連想配列を入れることもでき、 + GET リクエストや POST リクエストには連想配列を入れることもでき、 そのまま使うと期待通りのクエリにはなりません。 @@ -32,7 +32,7 @@ - この攻撃を防ぐのはきわめて簡単です。$_GET パラメータが期待通りの型であることを確かめてから + この攻撃を防ぐのはきわめて簡単です。$_GET パラメータや $_POST パラメータが期待通りの型であることを確かめてから データベースにリクエストを送ればよいのです (この場合は、文字列にキャストすることになります)。 Modified: phpdoc/ja/trunk/reference/mysqli/mysqli/commit.xml =================================================================== --- phpdoc/ja/trunk/reference/mysqli/mysqli/commit.xml 2014-05-09 07:37:03 UTC (rev 333506) +++ phpdoc/ja/trunk/reference/mysqli/mysqli/commit.xml 2014-05-09 22:51:11 UTC (rev 333507) @@ -1,6 +1,6 @@ - + @@ -113,8 +113,8 @@ /* トランザクションをコミットします */ if (!$mysqli->commit()) { - print("Transaction commit failed\n"); - exit(); + print("Transaction commit failed\n"); + exit(); } /* テーブルを削除します */ @@ -148,8 +148,8 @@ /* トランザクションをコミットします */ if (!mysqli_commit($link)) { - print("Transaction commit failed\n"); - exit(); + print("Transaction commit failed\n"); + exit(); } /* 接続を閉じます */ Modified: phpdoc/ja/trunk/reference/spl/arrayobject/serialize.xml =================================================================== --- phpdoc/ja/trunk/reference/spl/arrayobject/serialize.xml 2014-05-09 07:37:03 UTC (rev 333506) +++ phpdoc/ja/trunk/reference/spl/arrayobject/serialize.xml 2014-05-09 22:51:11 UTC (rev 333507) @@ -1,6 +1,6 @@ - + @@ -11,7 +11,7 @@ &reftitle.description; - public voidArrayObject::serialize + public stringArrayObject::serialize Modified: phpdoc/ja/trunk/reference/strings/functions/addslashes.xml =================================================================== --- phpdoc/ja/trunk/reference/strings/functions/addslashes.xml 2014-05-09 07:37:03 UTC (rev 333506) +++ phpdoc/ja/trunk/reference/strings/functions/addslashes.xml 2014-05-09 22:51:11 UTC (rev 333507) @@ -1,6 +1,6 @@ - + @@ -28,7 +28,7 @@ (たとえば MySQL 用の mysqli_real_escape_string や、 PostgreSQL 用の pg_escape_literal、pg_escape_string) を使うべきです。 識別子(例: テーブル名やフィールド名)をエスケープするときは、データベースパラメータとは別の仕様をDBMSは使います。 - PostgreSQL の pg_escape_indentifier のように、DBMS によっては識別子用のエスケープ関数を提供しているものもありますが、全ての DBMS が提供しているわけではありません。 + PostgreSQL の pg_escape_identifier のように、DBMS によっては識別子用のエスケープ関数を提供しているものもありますが、全ての DBMS が提供しているわけではありません。 提供されていない場合は、お使いのデータベースシステムのマニュアルを参照し、適切なエスケープ方法を調べるようにしてください。