cvs: peardoc /ja/package/database/mdb2 intro.xml /ja/package/fileformats/file-marc formatting.xml reading.xml /ja/package/php/php-compatinfo cli.xml
whatsnew.xml /ja/package/php/php-compatinfo/php-compatinfo loadversion.xml

From: Date: Thu, 14 Feb 2008 03:52:22 +0000
Subject: cvs: peardoc /ja/package/database/mdb2 intro.xml /ja/package/fileformats/file-marc formatting.xml reading.xml /ja/package/php/php-compatinfo cli.xml
whatsnew.xml /ja/package/php/php-compatinfo/php-compatinfo loadversion.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-10477@lists.php.net to get a copy of this message
takagi Thu Feb 14 03:52:22 2008 UTC Modified files: /peardoc/ja/package/php/php-compatinfo/php-compatinfo loadversion.xml /peardoc/ja/package/php/php-compatinfo whatsnew.xml cli.xml /peardoc/ja/package/fileformats/file-marc reading.xml formatting.xml /peardoc/ja/package/database/mdb2 intro.xml Log: sync with en.

http://cvs.php.net/viewvc.cgi/peardoc/ja/package/php/php-compatinfo/php-compatinfo/loadversion.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/ja/package/php/php-compatinfo/php-compatinfo/loadversion.xml diff -u peardoc/ja/package/php/php-compatinfo/php-compatinfo/loadversion.xml:1.1 peardoc/ja/package/php/php-compatinfo/php-compatinfo/loadversion.xml:1.2 --- peardoc/ja/package/php/php-compatinfo/php-compatinfo/loadversion.xml:1.1 Sat Feb 2 06:25:39 2008 +++ peardoc/ja/package/php/php-compatinfo/php-compatinfo/loadversion.xml Thu Feb 14 03:52:22 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.2 Maintainer: takagi Status: ready --> <refentry id="package.php.php-compatinfo.php-compatinfo.loadversion"> <refnamediv> <refname><function>PHP_CompatInfo::loadVersion</function></refname> @@ -16,6 +16,7 @@ <funcdef>array <function>PHP_CompatInfo::loadVersion</function></funcdef> <paramdef>string <parameter>$min</parameter></paramdef> <paramdef>string|boolean <parameter> <optional>$max = &false;</optional></parameter></paramdef> + <paramdef>boolean <parameter> <optional>$include_const = &false;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> @@ -53,6 +54,17 @@ </para> </listitem> </varlistentry> + <varlistentry> + <term> + <type>boolean</type> + <parameter>$include_const</parameter> + </term> + <listitem> + <para> + (オプション) 結果に定数一覧を含めるかどうか。 + </para> + </listitem> + </varlistentry> </variablelist> </para> </refsect1> @@ -60,7 +72,12 @@ <refsect1 id="package.php.php-compatinfo.php-compatinfo.loadversion.returns"> &title.returns; <para> - 無視する関数名の配列を返します。 + 指定したバージョンで使用できる PHP の関数の配列を返します。 + </para> + <para> + 指定したバージョンで使用できる PHP の関数および定数の配列を返します。 + これは、API 1.6.0 以降で 3 番目のパラメータ ($include_const) + を指定した場合に得られます。 </para> </refsect1> @@ -82,6 +99,81 @@ &title.note; &note.notstatic; </refsect1> + + <refsect1 id="package.php.php-compatinfo.php-compatinfo.loadversion.example"> + &title.example; + <para> + PHP バージョン 4.3.10 で何が変わったのか? + <programlisting role="php"> + <![CDATA[ +<?php +require_once 'PHP/CompatInfo.php'; + +$pci = new PHP_CompatInfo(); +$res = $pci->loadVersion('4.3.10', '4.3.10', true); +var_export($res); +?> + ]]> + </programlisting> + 結果は、関数が 0 件で定数が 2 件となります。 + <screen> +array ( + 'functions' => + array ( + ), + 'constants' => + array ( + 0 => 'PHP_EOL', + 1 => 'UPLOAD_ERR_NO_TMP_DIR', + ), +) + </screen> + </para> + + <para> + PHP バージョン 5.2.1 で何が変わったのか? + <programlisting role="php"> + <![CDATA[ +<?php +require_once 'PHP/CompatInfo.php'; + +$pci = new PHP_CompatInfo(); +$res = $pci->loadVersion('5.2.1'); +var_export($res); +?> + ]]> + </programlisting> + 結果は、関数が 24 件となります。 + <screen> +array ( + 0 => 'cachingiterator::count', + 1 => 'directoryiterator::getbasename', + 2 => 'imagegrabscreen', + 3 => 'imagegrabwindow', + 4 => 'ming_setswfcompression', + 5 => 'mysql_set_charset', + 6 => 'openssl_pkcs12_export', + 7 => 'openssl_pkcs12_export_to_file', + 8 => 'openssl_pkcs12_read', + 9 => 'php_ini_loaded_file', + 10 => 'reflectionextension::info', + 11 => 'regexiterator::setpregflags', + 12 => 'splfileinfo::getbasename', + 13 => 'splfileinfo::getlinktarget', + 14 => 'splfileinfo::getrealpath', + 15 => 'splobjectstorage::serialize', + 16 => 'splobjectstorage::unserialize', + 17 => 'stream_is_local', + 18 => 'stream_socket_shutdown', + 19 => 'swfmovie::namedanchor', + 20 => 'swfmovie::protect', + 21 => 'swfmovie::remove', + 22 => 'sys_get_temp_dir', + 23 => 'tidynode::getparent', +) + </screen> + </para> + </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/peardoc/ja/package/php/php-compatinfo/whatsnew.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/ja/package/php/php-compatinfo/whatsnew.xml diff -u peardoc/ja/package/php/php-compatinfo/whatsnew.xml:1.1 peardoc/ja/package/php/php-compatinfo/whatsnew.xml:1.2 --- peardoc/ja/package/php/php-compatinfo/whatsnew.xml:1.1 Sat Feb 2 06:25:39 2008 +++ peardoc/ja/package/php/php-compatinfo/whatsnew.xml Thu Feb 14 03:52:22 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.3 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.5 Maintainer: takagi Status: ready --> <refentry id="package.php.php-compatinfo.whatsnew"> <refnamediv> <refname>ニュース</refname> @@ -231,6 +231,76 @@ </para> </refsect1> + <refsect1 id="package.php.php-compatinfo.whatsnew.16x"> + <title>バージョン 1.6.x</title> + <para> + <itemizedlist> + <listitem> + <para><emphasis role="bold">PHP5 の検出を改善</emphasis> + しました。新しいデータソースとして + <ulink url="http://cvs.php.net/viewcvs.cgi/phpdoc/phpbook/phpbook-xsl/version.xml">version.xml</ulink> + (revision 1.9) および + <ulink url="http://cvs.php.net/viewcvs.cgi/phpdoc/funclist.txt">funclist.txt</ulink> + (revision 1.39) を使用するようにしました。 + </para> + <para> + PHP の定数のうち、ネイティブに検出できるものが増えました。 + </para> + <para> + <itemizedlist> + <listitem> + <para> + <ulink url="&url.php.manual;ja/reserved.constants.php"> + コアの定義済み定数 + </ulink> ( PHP_EOL, DIRECTORY_SEPARATOR, PATH_SEPARATOR, E_STRICT ) + </para> + </listitem> + <listitem> + <para> + <ulink url="&url.php.manual;ja/ref.datetime.php"> + 日付に関する定義済み定数 + </ulink> ( DATE_* ) + </para> + </listitem> + <listitem> + <para> + <ulink url="&url.php.manual;ja/features.commandline.php"> + CLI 固有の定数 + </ulink> ( STD* ) + </para> + </listitem> + <listitem> + <para> + <ulink url="&url.php.manual;ja/features.commandline.php"> + ファイルアップロード時のエラーに関する定数 + </ulink> ( UPLOAD_ERR_* ) + </para> + </listitem> + </itemizedlist> + </para> + </listitem> + <listitem> + <para><emphasis role="bold">コマンドラインインターフェイス</emphasis> + で、シンプルな文字列 (スクリプトタグ &lt;?php ... ?&gt; + を含まないコード) のバージョンを検出できるようになりました。 + 新しいパラメータ -s あるいは --string を使用します。 + </para> + </listitem> + <listitem> + <para><emphasis role="bold">loadVersion()</emphasis> + が、関数あるいは関数+定数の一覧を返せるようになりました。 + </para> + </listitem> + <listitem> + <para><emphasis role="bold">PHP のメソッドチェイン</emphasis> を + &quot;Davey Shafik&quot; が実装しました。リクエスト + <ulink url="&url.pear.bugs;13094">#13094</ulink> を参照ください。 + </para> + </listitem> + </itemizedlist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/peardoc/ja/package/php/php-compatinfo/cli.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/ja/package/php/php-compatinfo/cli.xml diff -u peardoc/ja/package/php/php-compatinfo/cli.xml:1.1 peardoc/ja/package/php/php-compatinfo/cli.xml:1.2 --- peardoc/ja/package/php/php-compatinfo/cli.xml:1.1 Sat Feb 2 06:25:39 2008 +++ peardoc/ja/package/php/php-compatinfo/cli.xml Thu Feb 14 03:52:22 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.2 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.3 Maintainer: takagi Status: ready --> <refentry id="package.php.php-compatinfo.cli"> <refnamediv> <refname>CLI</refname> @@ -21,8 +21,9 @@ <synopsis> pci [options] -f FILE | -d DIR </synopsis> - pci を実行する際には、少なくとも <parameter>-f</parameter> (--file) か - <parameter>-d</parameter> (--dir) のどちらかのスイッチを指定します。 + pci を実行する際には、少なくとも <parameter>-s</parameter> (--string)、 + <parameter>-f</parameter> (--file) あるいは + <parameter>-d</parameter> (--dir) のいずれかのスイッチを指定します。 そして、必要に応じて追加のオプションを指定することになるでしょう。 </para> </refsect2> @@ -53,6 +54,17 @@ </varlistentry> <varlistentry> <term> + <parameter>-s</parameter> | <parameter>--string</parameter> + </term> + <listitem> + <para> + シンプルな php コード文字列 (スクリプトタグ &lt;?php ... ?&gt; を除いたもの) + を指定します。 + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> <parameter>-n</parameter> | <parameter>--no-recurse</parameter> </term> <listitem> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/fileformats/file-marc/reading.xml?r1=1.4&r2=1.5&diff_format=u Index: peardoc/ja/package/fileformats/file-marc/reading.xml diff -u peardoc/ja/package/fileformats/file-marc/reading.xml:1.4 peardoc/ja/package/fileformats/file-marc/reading.xml:1.5 --- peardoc/ja/package/fileformats/file-marc/reading.xml:1.4 Tue Aug 28 22:19:36 2007 +++ peardoc/ja/package/fileformats/file-marc/reading.xml Thu Feb 14 03:52:22 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.5 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.6 Maintainer: takagi Status: ready --> <refentry id="package.fileformats.file-marc.reading"> <refnamediv> <refname>MARC データの読み込み</refname> @@ -24,8 +24,8 @@ <refsect1 id="package.fileformats.file-marc.reading.source"> <title>さまざまなソースからの MARC データの読み込み</title> <para> - 入力元は、PHP のストリーム (<constant>SOURCE_FILE</constant>) あるいは文字列 - (<constant>SOURCE_STRING</constant>) となります。 + 入力元は、PHP のストリーム (<constant>File_MARC::SOURCE_FILE</constant>) あるいは文字列 + (<constant>File_MARC::SOURCE_STRING</constant>) となります。 <classname>File_MARC</classname> および <classname>File_MARCXML</classname> のコンストラクタで、最初の引数としてソースの位置を、 二番目の引数としてソースの形式を指定します。 @@ -41,7 +41,7 @@ <filename>journals.mrc</filename> がファイル名なのか MARC データストリームを指しているのかを指定する必要はありません。 <classname>File_MARC</classname> のコンストラクタの第二引数は、 - デフォルトで <constant>SOURCE_FILE</constant> となるからです。 + デフォルトで <constant>File_MARC::SOURCE_FILE</constant> となるからです。 </para> <programlisting role="php"><![CDATA[ @@ -69,7 +69,7 @@ MARCXML データを読み込むには、<classname>File_MARCXML</classname> のコンストラクタをコールします。<varname>$xml_data</varname> が文字列であることを File_MARCXML に教えるため、 - コンストラクタの第二引数で <constant>SOURCE_STRING</constant> + コンストラクタの第二引数で <constant>File_MARC::SOURCE_STRING</constant> を指定します。 </para> @@ -77,7 +77,7 @@ require 'File/MARCXML.php'; // MARCXML レコードを文字列から取得します -$journals = new File_MARCXML($xml_data, SOURCE_STRING); +$journals = new File_MARCXML($xml_data, File_MARC::SOURCE_STRING); // 取得したレコードを順に処理します while ($record = $journals->next()) { @@ -111,7 +111,7 @@ require 'File/MARC.php'; // MARC レコード群を取得します -$bibrecords = new File_MARC('catdump.mrc', SOURCE_FILE); +$bibrecords = new File_MARC('catdump.mrc', File_MARC::SOURCE_FILE); // 取得したレコードを順に処理します while ($record = $bibrecords->next()) { @@ -158,7 +158,7 @@ require 'File/MARC.php'; // MARC レコードを z39 結果文字列から取得します -$bibrecords = new File_MARC($z39_result, SOURCE_STRING); +$bibrecords = new File_MARC($z39_result, File_MARC::SOURCE_STRING); // 取得したレコードを順に処理します while ($record = $bibrecords->next()) { @@ -207,7 +207,7 @@ require 'File/MARC.php'; // z39 結果文字列から MARC レコード群を取得します -$bibrecords = new File_MARC($z39_result, SOURCE_STRING); +$bibrecords = new File_MARC($z39_result, File_MARC::SOURCE_STRING); // 各レコードを処理します while ($record = $bibrecords->next()) { http://cvs.php.net/viewvc.cgi/peardoc/ja/package/fileformats/file-marc/formatting.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/ja/package/fileformats/file-marc/formatting.xml diff -u peardoc/ja/package/fileformats/file-marc/formatting.xml:1.2 peardoc/ja/package/fileformats/file-marc/formatting.xml:1.3 --- peardoc/ja/package/fileformats/file-marc/formatting.xml:1.2 Wed Mar 21 11:37:28 2007 +++ peardoc/ja/package/fileformats/file-marc/formatting.xml Thu Feb 14 03:52:22 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: takagi Status: ready --> <refentry id="package.fileformats.file-marc.formatting"> <refnamediv> <refname>MARC データのフォーマット</refname> @@ -88,7 +88,7 @@ require 'File/MARCXML.php'; // MARCXML レコード群を文字列から取得します -$journals = new File_MARCXML($xml_data, SOURCE_STRING); +$journals = new File_MARCXML($xml_data, File_MARC::SOURCE_STRING); // バイナリ書き込みモードでファイルをオープンします $marc21_file = fopen("records.mrc", "wb"); http://cvs.php.net/viewvc.cgi/peardoc/ja/package/database/mdb2/intro.xml?r1=1.3&r2=1.4&diff_format=u Index: peardoc/ja/package/database/mdb2/intro.xml diff -u peardoc/ja/package/database/mdb2/intro.xml:1.3 peardoc/ja/package/database/mdb2/intro.xml:1.4 --- peardoc/ja/package/database/mdb2/intro.xml:1.3 Sun Jun 24 10:21:50 2007 +++ peardoc/ja/package/database/mdb2/intro.xml Thu Feb 14 03:52:22 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.9 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.10 Maintainer: takagi Status: ready --> <refentry id="package.database.mdb2.intro"> <refnamediv> <refname>導入</refname> @@ -211,6 +211,12 @@ 外部のドキュメント</ulink> </simpara> </listitem> + <listitem> + <simpara> + <ulink url="http://www.phpied.com/db-2-mdb2/">Porting apps from + <classname>DB</classname> to <classname>MDB2</classname></ulink> + </simpara> + </listitem> </itemizedlist> </refsect1> </refentry>
« previous php.pear.doc (#10477) next »