cvs: phpdoc-ja /language types.xml /reference/dbplus reference.xml /reference/filesystem/functions fread.xml parse-ini-file.xml
/reference/image/functions imagechar.xml imagecharup.xml imageloadfont.xml imagepsloadfont.xml imagestring.xml imagettftext.xml
/reference/mysqli/functions mysqli-stmt-send-long-data.xml /reference/var/functions unset.xml

From: Date: Tue, 31 Jan 2006 04:08:14 +0000
Subject: cvs: phpdoc-ja /language types.xml /reference/dbplus reference.xml /reference/filesystem/functions fread.xml parse-ini-file.xml
/reference/image/functions imagechar.xml imagecharup.xml imageloadfont.xml imagepsloadfont.xml imagestring.xml imagettftext.xml
/reference/mysqli/functions mysqli-stmt-send-long-data.xml /reference/var/functions unset.xml
Groups: php.doc.ja 
Request: Send a blank email to doc-ja+get-1450@lists.php.net to get a copy of this message
takagi Tue Jan 31 04:08:14 2006 UTC Modified files: /phpdoc-ja/reference/var/functions unset.xml /phpdoc-ja/reference/mysqli/functions mysqli-stmt-send-long-data.xml /phpdoc-ja/reference/image/functions imagettftext.xml imagestring.xml imagepsloadfont.xml imageloadfont.xml imagecharup.xml imagechar.xml /phpdoc-ja/reference/filesystem/functions parse-ini-file.xml fread.xml /phpdoc-ja/reference/dbplus reference.xml /phpdoc-ja/language types.xml Log: sync with en.

http://cvs.php.net/viewcvs.cgi/phpdoc-ja/reference/var/functions/unset.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-ja/reference/var/functions/unset.xml diff -u phpdoc-ja/reference/var/functions/unset.xml:1.6 phpdoc-ja/reference/var/functions/unset.xml:1.7 --- phpdoc-ja/reference/var/functions/unset.xml:1.6 Thu Nov 3 16:49:24 2005 +++ phpdoc-ja/reference/var/functions/unset.xml Tue Jan 31 04:08:13 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.6 $ --> +<!-- $Revision: 1.7 $ --> <!-- splitted from ./ja/functions/var.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.13 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.14 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <refentry id="function.unset"> <refnamediv> @@ -17,16 +17,16 @@ <methodparam choice="opt"><type>mixed</type><parameter>...</parameter></methodparam> </methodsynopsis> <para> - <function>unset</function>は指定した変数を破棄します。PHP 3では、 - <function>unset</function> は常に &true;(実際には整数値1) を返して - いました。しかし、PHP 4では <function>unset</function> はもはや真 - の意味で関数ではなく、命令となっています。値が返されないため、 - <function>unset</function> の値を取得しようとすると、パースエラー - となります。 + <function>unset</function> は指定した変数を破棄します。PHP 3 では、 + <function>unset</function> は常に &true;(実際には整数値 1) を返していました。 + しかし、PHP 4 では <function>unset</function> は + もはや真の意味で関数ではなく、命令となっています。値が返されないため、 + <function>unset</function> の値を取得しようとすると、 + パースエラーとなります。 </para> <para> <example> - <title><function>unset</function>の例</title> + <title><function>unset</function> の例</title> <programlisting role="php"> <![CDATA[ <?php @@ -43,14 +43,20 @@ </programlisting> </example> </para> - <para> - 関数<function>unset</function>の内部動作は、破棄しようとする変数 - の型に依存します。 + <note> + <para> + 現在のコンテキストで見えるものであれば、 + オブジェクトのプロパティでさえも破棄することが可能です。 + </para> + </note> + <para> + 関数 <function>unset</function> の内部動作は、 + 破棄しようとする変数の型に依存します。 </para> <para> - あるグローバル変数が関数の中で<function>unset</function>された場 - 合、ローカル変数のみが破棄されます。呼出側の環境にある変数は、 - <function>unset</function>がコールされる前と同じ値を保持します。 + あるグローバル変数が関数の中で <function>unset</function> + された場合、ローカル変数のみが破棄されます。呼出側の環境にある変数は、 + <function>unset</function> がコールされる前と同じ値を保持します。 <informalexample> <programlisting role="php"> <![CDATA[ @@ -99,9 +105,9 @@ </informalexample> </para> <para> - 参照渡しされた変数が関数内で<function>unset</function>された場合 - に、ローカル変数のみが破棄されます。呼出側の環境でその変数は、 - <function>unset</function>がコールされる前と同じ値を保持します。 + 参照渡しされた変数が関数内で <function>unset</function> された場合に、 + ローカル変数のみが破棄されます。呼出側の環境でその変数は、 + <function>unset</function> がコールされる前と同じ値を保持します。 <informalexample> <programlisting role="php"> <![CDATA[ @@ -175,8 +181,8 @@ &note.language-construct; <para> - <function>isset</function>, - <function>empty</function>, + <function>isset</function>、 + <function>empty</function>、 <function>array_splice</function> も参照ください。 </para> http://cvs.php.net/viewcvs.cgi/phpdoc-ja/reference/mysqli/functions/mysqli-stmt-send-long-data.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-ja/reference/mysqli/functions/mysqli-stmt-send-long-data.xml diff -u phpdoc-ja/reference/mysqli/functions/mysqli-stmt-send-long-data.xml:1.1 phpdoc-ja/reference/mysqli/functions/mysqli-stmt-send-long-data.xml:1.2 --- phpdoc-ja/reference/mysqli/functions/mysqli-stmt-send-long-data.xml:1.1 Sun Sep 25 05:43:27 2005 +++ phpdoc-ja/reference/mysqli/functions/mysqli-stmt-send-long-data.xml Tue Jan 31 04:08:13 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.6 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.8 Maintainer: takagi Status: ready --> <refentry id="function.mysqli-stmt-send-long-data"> <refnamediv> <refname>mysqli_stmt_send_long_data</refname> @@ -43,6 +43,27 @@ <para>&return.success;</para> </refsect1> <refsect1> + &reftitle.examples; + <example> + <title>オブジェクト指向形式</title> + <programlisting role="php"> +<![CDATA[ +<?php +$stmt = $mysqli->prepare("INSERT INTO messages (message) VALUES (?)"); +$null = NULL; +$stmt->bind_param("b", $null); +$fp = fopen("messages.txt", "r"); +while (!feof($fp)) { + $stmt->send_long_data(0, fread($fp, 8192)); +} +fclose($fp); +$stmt->execute(); +?> +]]> + </programlisting> + </example> + </refsect1> + <refsect1> &reftitle.seealso; <para> <function>mysqli_prepare</function>&listendand; http://cvs.php.net/viewcvs.cgi/phpdoc-ja/reference/image/functions/imagettftext.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc-ja/reference/image/functions/imagettftext.xml diff -u phpdoc-ja/reference/image/functions/imagettftext.xml:1.7 phpdoc-ja/reference/image/functions/imagettftext.xml:1.8 --- phpdoc-ja/reference/image/functions/imagettftext.xml:1.7 Sat Sep 10 04:05:17 2005 +++ phpdoc-ja/reference/image/functions/imagettftext.xml Tue Jan 31 04:08:13 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.17 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.18 Maintainer: hirokawa Status: ready --> <refentry id="function.imagettftext"> <refnamediv> <refname>imagettftext</refname> @@ -170,6 +170,7 @@ $white = imagecolorallocate($im, 255, 255, 255); $grey = imagecolorallocate($im, 128, 128, 128); $black = imagecolorallocate($im, 0, 0, 0); +imagefilledrectangle($im, 0, 0, 399, 29, $white); // 描画する文字列 $text = 'Testing...'; http://cvs.php.net/viewcvs.cgi/phpdoc-ja/reference/image/functions/imagestring.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-ja/reference/image/functions/imagestring.xml diff -u phpdoc-ja/reference/image/functions/imagestring.xml:1.6 phpdoc-ja/reference/image/functions/imagestring.xml:1.7 --- phpdoc-ja/reference/image/functions/imagestring.xml:1.6 Sat Sep 10 04:05:17 2005 +++ phpdoc-ja/reference/image/functions/imagestring.xml Tue Jan 31 04:08:13 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.9 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.11 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <refentry id="function.imagestring"> <refnamediv> @@ -32,7 +32,7 @@ <![CDATA[ <?php // 100*30 の画像を生成する -$im = imagecreatetruecolor(100, 30); +$im = imagecreate(100, 30); // 白色の背景と青色のテキスト $bg = imagecolorallocate($im, 255, 255, 255); @@ -42,8 +42,8 @@ imagestring($im, 5, 0, 0, "Hello world!", $textcolor); // 画像を出力する -header("Content-type: image/jpeg"); -imagejpeg($im); +header("Content-type: image/png"); +imagepng($im); ?> ]]> </programlisting> http://cvs.php.net/viewcvs.cgi/phpdoc-ja/reference/image/functions/imagepsloadfont.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc-ja/reference/image/functions/imagepsloadfont.xml diff -u phpdoc-ja/reference/image/functions/imagepsloadfont.xml:1.7 phpdoc-ja/reference/image/functions/imagepsloadfont.xml:1.8 --- phpdoc-ja/reference/image/functions/imagepsloadfont.xml:1.7 Sat Sep 10 04:05:17 2005 +++ phpdoc-ja/reference/image/functions/imagepsloadfont.xml Tue Jan 31 04:08:13 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.7 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.9 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <refentry id="function.imagepsloadfont"> <refnamediv> @@ -24,14 +24,15 @@ <programlisting role="php"> <![CDATA[ <?php -header("Content-type: image/jpeg"); +header("Content-type: image/png"); $im = imagecreatetruecolor(350, 45); $black = imagecolorallocate($im, 0, 0, 0); $white = imagecolorallocate($im, 255, 255, 255); +imagefilledrectangle($im, 0, 0, 349, 44, $white); $font = imagepsloadfont("bchbi.pfb"); // もしくはあなたのマシンにある独自の .pfb ファイルを指定する imagepstext($im, "Testing... It worked!", $font, 32, $white, $black, 32, 32); imagepsfreefont($font); -imagejpeg($im, "", 100); //最高品質のためには...道のりは変わるかも +imagepng($im); imagedestroy($im); ?> ]]> http://cvs.php.net/viewcvs.cgi/phpdoc-ja/reference/image/functions/imageloadfont.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-ja/reference/image/functions/imageloadfont.xml diff -u phpdoc-ja/reference/image/functions/imageloadfont.xml:1.6 phpdoc-ja/reference/image/functions/imageloadfont.xml:1.7 --- phpdoc-ja/reference/image/functions/imageloadfont.xml:1.6 Sat Sep 10 04:05:17 2005 +++ phpdoc-ja/reference/image/functions/imageloadfont.xml Tue Jan 31 04:08:13 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.4 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.5 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <refentry id="function.imageloadfont"> <refnamediv> @@ -76,6 +76,7 @@ <programlisting role="php"> <![CDATA[ <?php +header("Content-type: image/png"); $im = imagecreatetruecolor(50, 20); $black = imagecolorallocate($im, 0, 0, 0); $white = imagecolorallocate($im, 255, 255, 255); http://cvs.php.net/viewcvs.cgi/phpdoc-ja/reference/image/functions/imagecharup.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-ja/reference/image/functions/imagecharup.xml diff -u phpdoc-ja/reference/image/functions/imagecharup.xml:1.6 phpdoc-ja/reference/image/functions/imagecharup.xml:1.7 --- phpdoc-ja/reference/image/functions/imagecharup.xml:1.6 Sat Sep 10 04:05:16 2005 +++ phpdoc-ja/reference/image/functions/imagecharup.xml Tue Jan 31 04:08:13 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.8 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.9 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <refentry id="function.imagecharup"> <refnamediv> @@ -32,7 +32,7 @@ <![CDATA[ <?php -$im = imagecreatetruecolor(100, 100); +$im = imagecreate(100, 100); $string = 'Note that the first letter is a N'; http://cvs.php.net/viewcvs.cgi/phpdoc-ja/reference/image/functions/imagechar.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-ja/reference/image/functions/imagechar.xml diff -u phpdoc-ja/reference/image/functions/imagechar.xml:1.6 phpdoc-ja/reference/image/functions/imagechar.xml:1.7 --- phpdoc-ja/reference/image/functions/imagechar.xml:1.6 Sat Sep 10 04:05:16 2005 +++ phpdoc-ja/reference/image/functions/imagechar.xml Tue Jan 31 04:08:13 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.9 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.10 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <refentry id="function.imagechar"> <refnamediv> @@ -33,7 +33,7 @@ <![CDATA[ <?php -$im = imagecreatetruecolor(100, 100); +$im = imagecreate(100, 100); $string = 'PHP'; http://cvs.php.net/viewcvs.cgi/phpdoc-ja/reference/filesystem/functions/parse-ini-file.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc-ja/reference/filesystem/functions/parse-ini-file.xml diff -u phpdoc-ja/reference/filesystem/functions/parse-ini-file.xml:1.8 phpdoc-ja/reference/filesystem/functions/parse-ini-file.xml:1.9 --- phpdoc-ja/reference/filesystem/functions/parse-ini-file.xml:1.8 Wed Dec 7 23:56:53 2005 +++ phpdoc-ja/reference/filesystem/functions/parse-ini-file.xml Tue Jan 31 04:08:13 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.22 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.23 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <refentry id="function.parse-ini-file"> <refnamediv> @@ -53,7 +53,7 @@ ini ファイル上でキーとして使ってはいけない単語があります。 それらは null, yes, no, true, false などが含まれます。 null, no および false は "" となり、yes および true は "1" となります。 - 次の文字 <literal>|&amp;~![()"</literal> はキーで使ってはいけません。 + 次の文字 <literal>{}|&amp;~![()"</literal> は、キーで使ってはいけません。 また、値の中で特別な意味を持ちます。 </simpara> </note> http://cvs.php.net/viewcvs.cgi/phpdoc-ja/reference/filesystem/functions/fread.xml?r1=1.11&r2=1.12&diff_format=u Index: phpdoc-ja/reference/filesystem/functions/fread.xml diff -u phpdoc-ja/reference/filesystem/functions/fread.xml:1.11 phpdoc-ja/reference/filesystem/functions/fread.xml:1.12 --- phpdoc-ja/reference/filesystem/functions/fread.xml:1.11 Sat Jan 14 01:12:08 2006 +++ phpdoc-ja/reference/filesystem/functions/fread.xml Tue Jan 31 04:08:13 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.11 $ --> -<!-- EN-Revision: 1.20 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.12 $ --> +<!-- EN-Revision: 1.21 Maintainer: hirokawa Status: ready --> <refentry id="function.fread"> <refnamediv> <refname>fread</refname> @@ -19,9 +19,8 @@ 読み込みます。読み込みは、最高 <parameter>length</parameter> バイト分 読み込まれたか、EOF(ファイルの終端)に達した場合、 パケットが利用可能になった場合(ネットワークストリームの場合)、 - あるいは 8192 バイトが読み込まれた場合 - (ユーザ定義ストリームの場合) - のうち、最初に発生した事象により中止されます。 + あるいは(ユーザ定義ストリームをオープンした後で) + 8192 バイトが読み込まれた場合のうち、最初に発生した事象により中止されます。 </simpara> <simpara> 読み込んだ文字列、またはエラー時には &false; を返します。 http://cvs.php.net/viewcvs.cgi/phpdoc-ja/reference/dbplus/reference.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-ja/reference/dbplus/reference.xml diff -u phpdoc-ja/reference/dbplus/reference.xml:1.4 phpdoc-ja/reference/dbplus/reference.xml:1.5 --- phpdoc-ja/reference/dbplus/reference.xml:1.4 Sun Oct 16 10:05:19 2005 +++ phpdoc-ja/reference/dbplus/reference.xml Tue Jan 31 04:08:14 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.8 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.9 Maintainer: hirokawa Status: ready --> <!-- Purpose: database.vendors --> <!-- Membership: pecl, external --> http://cvs.php.net/viewcvs.cgi/phpdoc-ja/language/types.xml?r1=1.44&r2=1.45&diff_format=u Index: phpdoc-ja/language/types.xml diff -u phpdoc-ja/language/types.xml:1.44 phpdoc-ja/language/types.xml:1.45 --- phpdoc-ja/language/types.xml:1.44 Thu Jan 26 03:42:42 2006 +++ phpdoc-ja/language/types.xml Tue Jan 31 04:08:14 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.44 $ --> -<!-- EN-Revision: 1.157 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.45 $ --> +<!-- EN-Revision: 1.158 Maintainer: hirokawa Status: ready --> <!-- CREDITS: takagi --> <chapter id="language.types"> <title>型</title> @@ -2041,6 +2041,8 @@ </example> <para> 配列の割り当てにおいて常に値がコピーされることに注意してください。 + これは、<function>current</function> および類似の関数が使用する + 内部配列ポインタの値がリセットされるということを意味します。 配列をリファレンスでコピーする場合にはリファレンス演算子を 使う必要があります。 <informalexample>
« previous php.doc.ja (#1450) next »