Modified: phpdoc/ja/trunk/reference/datetime/dateinterval/format.xml
===================================================================
--- phpdoc/ja/trunk/reference/datetime/dateinterval/format.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/datetime/dateinterval/format.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
@@ -198,6 +198,38 @@
+
+
+
+ DateInterval および
+ DateTime::diff での修飾子 %a および %d
+
+
+diff($january);
+
+// %a は総日数を出力します
+echo $interval->format('%a total days')."\n";
+
+// 一方 %d は、月数に含まれない日数のみを出力します
+echo $interval->format('%m month, %d days');
+
+?>
+]]>
+
+ &example.outputs;
+
+
+
+
+
Modified: phpdoc/ja/trunk/reference/dom/domimplementation/createdocument.xml
===================================================================
--- phpdoc/ja/trunk/reference/dom/domimplementation/createdocument.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/dom/domimplementation/createdocument.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
DOMImplementation::createDocument
@@ -12,9 +12,9 @@
&reftitle.description;
DOMDocumentDOMImplementation::createDocument
- stringnamespaceURINULL
- stringqualifiedNameNULL
- DOMDocumentTypedoctypeNULL
+ stringnamespaceURI&null;
+ stringqualifiedName&null;
+ DOMDocumentTypedoctype&null;
指定した型とドキュメント要素の DOMDocument
Modified: phpdoc/ja/trunk/reference/dom/domimplementation/createdocumenttype.xml
===================================================================
--- phpdoc/ja/trunk/reference/dom/domimplementation/createdocumenttype.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/dom/domimplementation/createdocumenttype.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
DOMImplementation::createDocumentType
@@ -12,9 +12,9 @@
&reftitle.description;
DOMDocumentTypeDOMImplementation::createDocumentType
- stringqualifiedNameNULL
- stringpublicIdNULL
- stringsystemIdNULL
+ stringqualifiedName&null;
+ stringpublicId&null;
+ stringsystemId&null;
空の DOMDocumentType オブジェクトを作成します。
Modified: phpdoc/ja/trunk/reference/fileinfo/functions/finfo-open.xml
===================================================================
--- phpdoc/ja/trunk/reference/fileinfo/functions/finfo-open.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/fileinfo/functions/finfo-open.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
finfo_open
@@ -55,6 +55,9 @@
必要に応じて、.mime や .mgc
が追加されます。
+
+ NULL あるいは空文字列は、デフォルト値と同じ意味となります。
+
Modified: phpdoc/ja/trunk/reference/pcre/functions/preg-filter.xml
===================================================================
--- phpdoc/ja/trunk/reference/pcre/functions/preg-filter.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/pcre/functions/preg-filter.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
preg_filter
@@ -32,9 +32,9 @@
が配列の場合は配列を、それ以外の場合は文字列を返します。
- マッチする結果が見つかったときは、新しい subject
- を返します。見つからなかったときはもとの subject
- をそのまま返し、エラーが発生した場合は &null; を返します。
+ マッチする結果が見つからなかったりエラーが発生したりした場合は、
+ subject が array なら空の配列を返し、そうでなければ
+ &null; を返します。
Modified: phpdoc/ja/trunk/reference/pcre/functions/preg-quote.xml
===================================================================
--- phpdoc/ja/trunk/reference/pcre/functions/preg-quote.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/pcre/functions/preg-quote.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
@@ -13,7 +13,7 @@
stringpreg_quote
stringstr
- stringdelimiterNULL
+ stringdelimiter&null;
preg_quote は、str
Modified: phpdoc/ja/trunk/reference/pdo/pdo/lastinsertid.xml
===================================================================
--- phpdoc/ja/trunk/reference/pdo/pdo/lastinsertid.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/pdo/pdo/lastinsertid.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
@@ -13,7 +13,7 @@
&reftitle.description;
stringPDO::lastInsertId
- stringnameNULL
+ stringname&null;
Modified: phpdoc/ja/trunk/reference/pdo/pdo/prepare.xml
===================================================================
--- phpdoc/ja/trunk/reference/pdo/pdo/prepare.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/pdo/pdo/prepare.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
@@ -26,6 +26,8 @@
名前と疑問符パラメータを同一 SQL
ステートメント中で使用することはできません。
どちらか一方か、他のパラメータ形式を使用してください。
+ ユーザの入力をバインドする際にはこれらのパラメータを使います。
+ ユーザの入力を直接クエリに含めてはいけません。
PDOStatement::execute をコールする際には、
@@ -92,8 +94,9 @@
PDO::prepare は
PDOStatement オブジェクトを返します。
もしデータベースサーバが文を準備できなかった場合、
- PDO::prepare は
- PDOException を発行します。
+ PDO::prepare は &false; を返すか
+ PDOException を発行します
+ (エラー処理 の方法に依存します)。
Modified: phpdoc/ja/trunk/reference/pdo/pdo/query.xml
===================================================================
--- phpdoc/ja/trunk/reference/pdo/pdo/query.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/pdo/pdo/query.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
@@ -110,11 +110,11 @@
query($sql) as $row) {
- print $row['NAME'] . "\t";
- print $row['COLOUR'] . "\t";
- print $row['CALORIES'] . "\n";
+ print $row['name'] . "\t";
+ print $row['color'] . "\t";
+ print $row['calories'] . "\n";
}
}
?>
Modified: phpdoc/ja/trunk/reference/pdo/pdo/quote.xml
===================================================================
--- phpdoc/ja/trunk/reference/pdo/pdo/quote.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/pdo/pdo/quote.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
@@ -60,7 +60,6 @@
クオートするスタイルを変更するため、
ドライバにデータ型のヒントを提供します。
- デフォルト値は、PDO::PARAM_STR です。
Modified: phpdoc/ja/trunk/reference/pdo/pdo/setattribute.xml
===================================================================
--- phpdoc/ja/trunk/reference/pdo/pdo/setattribute.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/pdo/pdo/setattribute.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
@@ -72,6 +72,13 @@
array(string classname, array(mixed constructor_args))
を必要とする。
+ PDO::ATTR_TIMEOUT:
+ タイムアウト秒数を指定する。すべてのドライバがこのオプションに対応しているわけではなく、
+ またドライバによってこのオプションの扱いは異なる。たとえば sqlite
+ は書き込み可能なロックを確保するのをこの秒数まで待ち続けるが、
+ 他のドライバではこの秒数を接続時のタイムアウトや読み込みのタイムアウトとして扱うこともある。
+ int を渡す。
+
PDO::ATTR_AUTOCOMMIT
(OCI, Firebird そして MySQL で利用可能):
それぞれの単一文で自動コミットするかどうか。
Modified: phpdoc/ja/trunk/reference/pdo/pdoexception.xml
===================================================================
--- phpdoc/ja/trunk/reference/pdo/pdoexception.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/pdo/pdoexception.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
- プロパティ
+ &Properties;
public
array
@@ -63,7 +63,7 @@
code
- Inherited methods
+ &InheritedMethods;
Modified: phpdoc/ja/trunk/reference/pdo/pdostatement/bindparam.xml
===================================================================
--- phpdoc/ja/trunk/reference/pdo/pdostatement/bindparam.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/pdo/pdostatement/bindparam.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
@@ -15,7 +15,7 @@
boolPDOStatement::bindParam
mixedparameter
mixedvariable
- intdata_type
+ intdata_typePDO::PARAM_STR
intlength
mixeddriver_options
@@ -65,7 +65,6 @@
パラメータに対して PDO::PARAM_* 定数を使った明示的なデータ型を指定します。
- デフォルトは PDO::PARAM_STR です。
ストアドプロシージャからの INOUT パラメータの場合、
data_type パラメータに PDO::PARAM_INPUT_OUTPUT
ビットを設定するためにビット OR を使用してください。
Modified: phpdoc/ja/trunk/reference/pdo/pdostatement/bindvalue.xml
===================================================================
--- phpdoc/ja/trunk/reference/pdo/pdostatement/bindvalue.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/pdo/pdostatement/bindvalue.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
PDOStatement->bindValue
@@ -14,7 +14,7 @@
boolPDOStatement::bindValue
mixedparameter
mixedvalue
- intdata_type
+ intdata_typePDO::PARAM_STR
プリペアドステートメントで使用する SQL 文の中で、
@@ -51,7 +51,6 @@
パラメータに対して PDO::PARAM_* 定数を使った明示的なデータ型を指定します。
- デフォルトは PDO::PARAM_STR です。
Modified: phpdoc/ja/trunk/reference/pdo/pdostatement/execute.xml
===================================================================
--- phpdoc/ja/trunk/reference/pdo/pdostatement/execute.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/pdo/pdostatement/execute.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
@@ -38,7 +38,7 @@
実行される SQL 文の中のバインドパラメータと同数の要素からなる、
- 値の配列。
+ 値の配列。すべての値は PDO::PARAM_STR として扱われます。
ひとつのパラメータに対して複数の値をバインドすることはできません。
@@ -130,6 +130,17 @@
+
+ &reftitle.notes;
+
+
+ ドライバによっては、次のステートメントを実行する前に
+ カーソルを閉じ
+ なければならないものもあります。
+
+
+
+
&reftitle.seealso;
Modified: phpdoc/ja/trunk/reference/pdo/pdostatement/fetchall.xml
===================================================================
--- phpdoc/ja/trunk/reference/pdo/pdostatement/fetchall.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/pdo/pdostatement/fetchall.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
@@ -14,7 +14,7 @@
arrayPDOStatement::fetchAll
intfetch_stylePDO::FETCH_BOTH
- intcolumn_index
+ intcolumn_index0
arrayctor_argsarray()
@@ -29,8 +29,7 @@
PDOStatement::fetch に文章化されているような
- 返される配列の内容を制御します。デフォルトは
- PDO_FETCH_BOTH です。
+ 返される配列の内容を制御します。
結果セットから単一カラムの全ての値を含む配列を返す場合、
@@ -57,7 +56,6 @@
fetch_style が
PDO::FETCH_COLUMN の場合に、
ここで指定した (0 からはじまる) カラム番号の値を返します。
- デフォルトは 0 です。
Modified: phpdoc/ja/trunk/reference/pdo/pdostatement/fetchobject.xml
===================================================================
--- phpdoc/ja/trunk/reference/pdo/pdostatement/fetchobject.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/pdo/pdostatement/fetchobject.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
PDOStatement->fetchObject
@@ -10,7 +10,7 @@
&reftitle.description;
mixedPDOStatement::fetchObject
- stringclass_name
+ stringclass_name"stdClass"
arrayctor_args
@@ -30,7 +30,7 @@
class_name
- 作成されるクラスの名前。デフォルトは stdClass。
+ 作成されるクラスの名前。
@@ -49,7 +49,7 @@
&reftitle.returnvalues;
カラム名に対応するプロパティを保持する、要求されたクラスの
- インスタンスを返します。エラーが発生した場合は &false; を返します。
+ インスタンスを返します。&return.falseforfailure;。
Modified: phpdoc/ja/trunk/reference/pdo/pdostatement/setfetchmode.xml
===================================================================
--- phpdoc/ja/trunk/reference/pdo/pdostatement/setfetchmode.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/pdo/pdostatement/setfetchmode.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
@@ -88,7 +88,7 @@
&reftitle.returnvalues;
- 成功時は 1、失敗時は &false; を返します。
+ 成功時は 1、&return.falseforfailure;。
Modified: phpdoc/ja/trunk/reference/pdo/pdostatement.xml
===================================================================
--- phpdoc/ja/trunk/reference/pdo/pdostatement.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/pdo/pdostatement.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
@@ -37,12 +37,30 @@
+ &Properties;
+ readonlystringqueryString
+
+ &Methods;
+
+ &reftitle.properties;
+
+
+ queryString
+
+
+ 使ったクエリ文字列。
+
+
+
+
+
+
&reference.pdo.entities.pdostatement;
Modified: phpdoc/ja/trunk/reference/pdo_mysql/constants.xml
===================================================================
--- phpdoc/ja/trunk/reference/pdo_mysql/constants.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/pdo_mysql/constants.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
&reftitle.constants;
&pdo.driver-constants;
@@ -67,6 +67,8 @@
my.cnf ではなく、
指定した名前のファイルからオプションを読み込みます。
+ このオプションは、mysqlnd を使っている場合は利用できません。
+ mysqlnd は mysql の設定ファイルを読んでいないからです。
@@ -80,6 +82,8 @@
my.cnf あるいは
別のファイル (MYSQL_READ_DEFAULT_FILE
で指定したもの) の中の、指定した名前のグループからオプションを読み込みます。
+ このオプションは、mysqlnd を使っている場合は利用できません。
+ mysqlnd は mysql の設定ファイルを読んでいないからです。
Modified: phpdoc/ja/trunk/reference/pdo_odbc/ini.xml
===================================================================
--- phpdoc/ja/trunk/reference/pdo_odbc/ini.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/pdo_odbc/ini.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
&reftitle.runtime;
&extension.runtime;
@@ -27,7 +27,7 @@
pdo_odbc.db2_instance_name
NULL
PHP_INI_SYSTEM
- PHP 5.1.1 以降で使用可能です。PHP 6.0.0 で削除されました。
+ PHP 5.1.1 以降で使用可能です。&removed.php.future;
Modified: phpdoc/ja/trunk/reference/pdo_pgsql/functions/PDO-pgsqlLOBOpen.xml
===================================================================
--- phpdoc/ja/trunk/reference/pdo_pgsql/functions/PDO-pgsqlLOBOpen.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/pdo_pgsql/functions/PDO-pgsqlLOBOpen.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
PDO::pgsqlLOBOpen
@@ -58,7 +58,7 @@
&reftitle.returnvalues;
- 成功した場合にストリームリソース、失敗した場合に &false; を返します。
+ 成功した場合にストリームリソース、&return.falseforfailure;。
Modified: phpdoc/ja/trunk/reference/pdo_pgsql/reference.xml
===================================================================
--- phpdoc/ja/trunk/reference/pdo_pgsql/reference.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/pdo_pgsql/reference.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
@@ -39,7 +39,7 @@
&reftitle.description;
PDO_PGSQL データソース名 (DSN) は以下の要素で構成され、
- スペースで区切られます:
+ スペースあるいはセミコロンで区切られます:
DSN 接頭辞
@@ -110,7 +110,7 @@
以下の例は、PostgreSQL データベースに接続するための PDO_PGSQL DSN
を表します:
Modified: phpdoc/ja/trunk/reference/pdo_sqlite/functions/PDO-sqliteCreateAggregate.xml
===================================================================
--- phpdoc/ja/trunk/reference/pdo_sqlite/functions/PDO-sqliteCreateAggregate.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/pdo_sqlite/functions/PDO-sqliteCreateAggregate.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
PDO::sqliteCreateAggregate
@@ -155,7 +155,7 @@
if (strlen($string) > $context) {
$context = strlen($string);
}
- return $context;
+ return $context;
}
function max_len_finalize(&$context, $rownumber)
Modified: phpdoc/ja/trunk/reference/phar/Phar/extractTo.xml
===================================================================
--- phpdoc/ja/trunk/reference/phar/Phar/extractTo.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/phar/Phar/extractTo.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
Phar::extractTo
@@ -54,7 +54,7 @@
overwrite
- デフォルトは &false;。&true; にすると既存のファイルを上書きします。
+ &true; にすると既存のファイルを上書きします。
Modified: phpdoc/ja/trunk/reference/phar/Phar/isValidPharFilename.xml
===================================================================
--- phpdoc/ja/trunk/reference/phar/Phar/isValidPharFilename.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/phar/Phar/isValidPharFilename.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
Phar::isValidPharFilename
@@ -42,7 +42,6 @@
このパラメータは、指定した名前のファイルを phar
の実行可能アーカイブとして扱うかデータのみの非実行可能アーカイブとして扱うかを指定します。
- デフォルトは &true; です。
Modified: phpdoc/ja/trunk/reference/phar/Phar/running.xml
===================================================================
--- phpdoc/ja/trunk/reference/phar/Phar/running.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/phar/Phar/running.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
Phar::running
@@ -34,9 +34,9 @@
retphar
- デフォルトは &true; です。&false; の場合は
+ &false; の場合は
phar アーカイブのディスク上でのフルパスを返します。
- &true; (デフォルト値) の場合は完全な phar URL を返します。
+ &true; の場合は完全な phar URL を返します。
Modified: phpdoc/ja/trunk/reference/phar/Phar/webPhar.xml
===================================================================
--- phpdoc/ja/trunk/reference/phar/Phar/webPhar.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/phar/Phar/webPhar.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
Phar::webPhar
@@ -12,7 +12,7 @@
voidPhar::webPhar
stringalias
- stringindex
+ stringindex"index.php"
stringf404
arraymimetypes
arrayrewrites
@@ -56,8 +56,7 @@
index
- phar の中でディレクトリインデックスとなるファイルの場所。デフォルトは
- index.php。
+ phar の中でディレクトリインデックスとなるファイルの場所。
Modified: phpdoc/ja/trunk/reference/phar/Phar.xml
===================================================================
--- phpdoc/ja/trunk/reference/phar/Phar.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/phar/Phar.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
- プロパティ
+ &Properties;
- メソッド
+ &Methods;
-
Modified: phpdoc/ja/trunk/reference/phar/PharData/extractTo.xml
===================================================================
--- phpdoc/ja/trunk/reference/phar/PharData/extractTo.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/phar/PharData/extractTo.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
PharData::extractTo
@@ -53,7 +53,7 @@
overwrite
- デフォルトは &false;。&true; にすると既存のファイルを上書きします。
+ &true; にすると既存のファイルを上書きします。
Modified: phpdoc/ja/trunk/reference/phar/PharData.xml
===================================================================
--- phpdoc/ja/trunk/reference/phar/PharData.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/phar/PharData.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
PharData クラス
@@ -44,12 +44,12 @@
- プロパティ
+ &Properties;
- メソッド
+ &Methods;
- 継承したメソッド
+ &InheritedMethods;
Modified: phpdoc/ja/trunk/reference/phar/PharException.xml
===================================================================
--- phpdoc/ja/trunk/reference/phar/PharException.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/phar/PharException.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
- プロパティ
+ &Properties;
-
Modified: phpdoc/ja/trunk/reference/phar/PharFileInfo.xml
===================================================================
--- phpdoc/ja/trunk/reference/phar/PharFileInfo.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/phar/PharFileInfo.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
PharFileInfo クラス
@@ -40,12 +40,12 @@
- プロパティ
+ &Properties;
- メソッド
+ &Methods;
-
Modified: phpdoc/ja/trunk/reference/phar/installation.xml
===================================================================
--- phpdoc/ja/trunk/reference/phar/installation.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/phar/installation.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,32 +1,19 @@
-
+
&reftitle.install;
+
+ PHP 5.3.0 以降 Phar 拡張モジュールは組み込みとなりました。
+ それより前のバージョンの PHP では PECL 拡張モジュールとしてインストールできます。
+ PECL の Phar のページ
+ には詳しい情報や過去の歴史があります。
+
- &pecl.info;
- &url.pecl.package;phar.
+ Windows ユーザがこの拡張モジュールを使うには、&php.ini;
+ に php_phar.dll を含めなければなりません。
-
-
- Windows にインストールするには、上の手順にしたがったうえで、
- php.ini を次のように変更してウェブサーバを再起動します。
-
-
-
-
-
-
-
- PHP 5.3.0 以降 Phar 拡張モジュールは組み込みとなりました。DLL は不要です。
-
-
-
-
+
+
&reftitle.install;
- 簡単なインストール方法: コンソールで以下のコマンドを入力します。
-
-$ pecl install ps
-
+ &pecl.info;
+ &url.pecl.package;ps.
+
+ &pecl.windows.download;
+
Modified: phpdoc/ja/trunk/reference/ps/functions/ps-begin-pattern.xml
===================================================================
--- phpdoc/ja/trunk/reference/ps/functions/ps-begin-pattern.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/ps/functions/ps-begin-pattern.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
ps_begin_pattern
@@ -87,7 +87,7 @@
&reftitle.returnvalues;
- パターンの ID を返します。失敗した場合は &false; を返します。
+ パターンの ID を返します。&return.falseforfailure;。
Modified: phpdoc/ja/trunk/reference/ps/functions/ps-close-image.xml
===================================================================
--- phpdoc/ja/trunk/reference/ps/functions/ps-close-image.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/ps/functions/ps-close-image.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
ps_close_image
@@ -50,7 +50,7 @@
&reftitle.returnvalues;
- 成功した場合に &null; を、失敗した場合に &false; を返します。
+ 成功した場合に &null; を、&return.falseforfailure;。
Modified: phpdoc/ja/trunk/reference/ps/functions/ps-get-parameter.xml
===================================================================
--- phpdoc/ja/trunk/reference/ps/functions/ps-get-parameter.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/ps/functions/ps-get-parameter.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
ps_get_parameter
@@ -143,7 +143,7 @@
&reftitle.returnvalues;
- 成功した場合にパラメータの値を、エラー時には &false; を返します。
+ 成功した場合にパラメータの値を、&return.falseforfailure;。
Modified: phpdoc/ja/trunk/reference/ps/functions/ps-hyphenate.xml
===================================================================
--- phpdoc/ja/trunk/reference/ps/functions/ps-hyphenate.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/ps/functions/ps-hyphenate.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
ps_hyphenate
@@ -61,7 +61,7 @@
&reftitle.returnvalues;
テキスト内で改行を入れられる位置を表す整数値の配列、
- あるいはエラー時には &false; を返します。
+ &return.falseforfailure;。
Modified: phpdoc/ja/trunk/reference/ps/functions/ps-new.xml
===================================================================
--- phpdoc/ja/trunk/reference/ps/functions/ps-new.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/ps/functions/ps-new.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
ps_new
@@ -27,7 +27,7 @@
&reftitle.returnvalues;
成功した場合に PostScript ドキュメントのリソースを、
- 失敗した場合に &false; を返します。
+ &return.falseforfailure;。
この返り値は、その他のすべての関数の最初の引数として渡されます。
Modified: phpdoc/ja/trunk/reference/ps/functions/ps-shading-pattern.xml
===================================================================
--- phpdoc/ja/trunk/reference/ps/functions/ps-shading-pattern.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/ps/functions/ps-shading-pattern.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
ps_shading_pattern
@@ -59,7 +59,7 @@
&reftitle.returnvalues;
- 成功した場合にパターンの ID を、失敗した場合に &false; を返します。
+ 成功した場合にパターンの ID を、&return.falseforfailure;。
Modified: phpdoc/ja/trunk/reference/ps/functions/ps-shading.xml
===================================================================
--- phpdoc/ja/trunk/reference/ps/functions/ps-shading.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/ps/functions/ps-shading.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
ps_shading
@@ -97,7 +97,7 @@
&reftitle.returnvalues;
- 成功した場合にパターンの ID を、失敗した場合に &false; を返します。
+ 成功した場合にパターンの ID を、&return.falseforfailure;。
Modified: phpdoc/ja/trunk/reference/radius/configure.xml
===================================================================
--- phpdoc/ja/trunk/reference/radius/configure.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/radius/configure.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,33 +1,19 @@
-
+
&reftitle.install;
- どうやってインストールするの?
-
- tar パッケージを (通常は php4/ext に) 展開する
- radius-x.x の名前を radius に変更する
- php4 ディレクトリで ./buildconf を実行する
- ./configure --enable-radius を実行する
- make; make install
-
- あるいは、もし .so 形式にしたければ
-
- tar パッケージを展開する
- radius-x.x ディレクトリで phpize を実行する
- radius-x.x ディレクトリで ./configure を実行する
- make; make install
-
+ &pecl.moved;
- Windows の場合は、
- &url.php.snapshots;
- から php_radius.dll
- をダウンロードして使用することを推奨します。
- &pecl.windows.download.unbundled;
+ &pecl.info;
+ &url.pecl.package;radius.
+
+ &pecl.windows.download;
+
-
+
@@ -45,7 +45,7 @@
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
-sgml-default-dtd-file:"../../../../manual.ced"
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
Modified: phpdoc/ja/trunk/reference/rar/constants.xml
===================================================================
--- phpdoc/ja/trunk/reference/rar/constants.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/rar/constants.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
&reftitle.constants;
@@ -13,7 +13,7 @@
-
+ かわりに RarEntry::HOST_MSDOS を使います。
@@ -24,7 +24,7 @@
-
+ かわりに RarEntry::HOST_OS2 を使います。
@@ -35,7 +35,7 @@
-
+ かわりに RarEntry::HOST_WIN32 を使います。
@@ -46,7 +46,7 @@
-
+ かわりに RarEntry::HOST_UNIX を使います。
@@ -57,7 +57,7 @@
-
+ かわりに RarEntry::HOST_BEOS を使います。
Modified: phpdoc/ja/trunk/reference/rar/examples.xml
===================================================================
--- phpdoc/ja/trunk/reference/rar/examples.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/rar/examples.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,16 +1,131 @@
-
+
&reftitle.examples;
+
- Rar 拡張モジュールの概要
+ オンザフライでの復元
getEntries();
+if ($entries === FALSE)
+ die("Cannot retrieve entries");
+
+if (!array_key_exists($index, $entries))
+ die("No such index: $index");
+
+$orfilename = $entries[$index]->getName(); //UTF-8 encoded
+
+$filesize = $entries[$index]->getUnpackedSize();
+
+/* you could check HTTP_IF_MODIFIED_SINCE here and compare with
+ * $entries[$index]->getFileTime(). You could also send a
+ * "Last modified" header */
+
+$fp = $entries[$index]->getStream();
+if ($fp === FALSE)
+ die("Cannot open file with index $index insided the archive.");
+
+$arch->close(); //no longer needed; stream is independent
+
+function detectUserAgent() {
+ if (!array_key_exists('HTTP_USER_AGENT', $_SERVER))
+ return "Other";
+
+ $uas = $_SERVER['HTTP_USER_AGENT'];
+ if (preg_match("@Opera/@", $uas))
+ return "Opera";
+ if (preg_match("@Firefox/@", $uas))
+ return "Firefox";
+ if (preg_match("@Chrome/@", $uas))
+ return "Chrome";
+ if (preg_match("@MSIE ([0-9.]+);@", $uas, $matches)) {
+ if (((float)$matches[1]) >= 7.0)
+ return "IE";
+ }
+
+ return "Other";
+}
+
+/*
+ * We have 3 options:
+ * - For FF and Opera, which support RFC 2231, use that format.
+ * - For IE and Chrome, use attwithfnrawpctenclong
+ * (http://greenbytes.de/tech/tc2231/#attwithfnrawpctenclong)
+ * - For the others, convert to ISO-8859-1, if possible
+ */
+$formatRFC2231 = 'Content-Disposition: attachment; filename*=UTF-8\'\'%s';
+$formatDef = 'Content-Disposition: attachment; filename="%s"';
+
+switch (detectUserAgent()) {
+ case "Opera":
+ case "Firefox":
+ $orfilename = rawurlencode($orfilename);
+ $format = $formatRFC2231;
+ break;
+
+ case "IE":
+ case "Chrome":
+ $orfilename = rawurlencode($orfilename);
+ $format = $formatDef;
+ break;
+ default:
+ if (function_exists('iconv'))
+ $orfilename =
+ @iconv("UTF-8", "ISO-8859-1//TRANSLIT", $orfilename);
+ $format = $formatDef;
+}
+
+header(sprintf($format, $orfilename));
+//cannot send error messages from now on (headers already sent)
+
+//replace by real content type, perhaps infering from the file extension
+$contentType = "application/octet-stream";
+header("Content-Type: $contentType");
+
+header("Content-Transfer-Encoding: binary");
+
+header("Content-Length: $filesize");
+
+if ($_SERVER['REQUEST_METHOD'] == "HEAD")
+ die();
+
+while (!feof($fp)) {
+ $s = @fread($fp, 8192);
+ if ($s === false)
+ break; //useless to send error messages
+
+ echo $s;
+}
+]]>
+
+
+
+
+ この例は、RAR ファイルを開いて指定したファイルを RAR アーカイブ内から取り出し、
+ クライアントにダウンロードさせます。
+
+
+
+
+ RAR 拡張モジュールでの展開の例
+
+
+
-
+
&reftitle.runtime;
&no.config;
@@ -25,4 +25,4 @@
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
--->
\ No newline at end of file
+-->
Modified: phpdoc/ja/trunk/reference/rar/setup.xml
===================================================================
--- phpdoc/ja/trunk/reference/rar/setup.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/rar/setup.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
&reftitle.setup;
@@ -55,8 +55,10 @@
&reftitle.resources;
- Rar 拡張モジュールが使用するリソースはひとつ、すなわち
- rar_open が返すファイル記述子です。
+ この拡張モジュールはふたつの内部クラスを使います。
+ アーカイブをあらわす rar_open が返すクラスと、
+ エントリをあらわす rar_list や rar_entry_get
+ が返すクラスです。
Modified: phpdoc/ja/trunk/reference/sam/setup.xml
===================================================================
--- phpdoc/ja/trunk/reference/sam/setup.xml 2010-05-04 12:55:26 UTC (rev 298967)
+++ phpdoc/ja/trunk/reference/sam/setup.xml 2010-05-04 13:07:27 UTC (rev 298968)
@@ -1,6 +1,6 @@
-
+
&reftitle.setup;
@@ -42,6 +42,10 @@
&reftitle.install;
+ &pecl.info;
+ &url.pecl.package;sam.
+
+
SAM フレームワークおよび MQTT サポートをビルドして使用するためには、
特にその他の前提条件はありません。
MQTT 以外のプロトコルのサポートはライブラリとして提供されており、