cvs: phpdoc-ja /language types.xml /reference/http/functions headers-list.xml /reference/pdo constants.xml /reference/pdo/functions
PDOStatement-execute.xml /reference/runkit/functions runkit-function-add.xml /reference/sem/functions sem-acquire.xml

From: Date: Fri, 05 May 2006 05:27:15 +0000
Subject: cvs: phpdoc-ja /language types.xml /reference/http/functions headers-list.xml /reference/pdo constants.xml /reference/pdo/functions
PDOStatement-execute.xml /reference/runkit/functions runkit-function-add.xml /reference/sem/functions sem-acquire.xml
Groups: php.doc.ja 
Request: Send a blank email to doc-ja+get-1544@lists.php.net to get a copy of this message
takagi Fri May 5 05:27:15 2006 UTC Modified files: /phpdoc-ja/reference/sem/functions sem-acquire.xml /phpdoc-ja/reference/runkit/functions runkit-function-add.xml /phpdoc-ja/reference/pdo/functions PDOStatement-execute.xml /phpdoc-ja/reference/pdo constants.xml /phpdoc-ja/reference/http/functions headers-list.xml /phpdoc-ja/language types.xml Log: sync with en.

http://cvs.php.net/viewcvs.cgi/phpdoc-ja/reference/sem/functions/sem-acquire.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-ja/reference/sem/functions/sem-acquire.xml diff -u phpdoc-ja/reference/sem/functions/sem-acquire.xml:1.5 phpdoc-ja/reference/sem/functions/sem-acquire.xml:1.6 --- phpdoc-ja/reference/sem/functions/sem-acquire.xml:1.5 Thu Nov 3 16:50:54 2005 +++ phpdoc-ja/reference/sem/functions/sem-acquire.xml Fri May 5 05:27:15 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/sem.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.5 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> <refentry id="function.sem-acquire"> <refnamediv> <refname>sem_acquire</refname> http://cvs.php.net/viewcvs.cgi/phpdoc-ja/reference/runkit/functions/runkit-function-add.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-ja/reference/runkit/functions/runkit-function-add.xml diff -u phpdoc-ja/reference/runkit/functions/runkit-function-add.xml:1.1 phpdoc-ja/reference/runkit/functions/runkit-function-add.xml:1.2 --- phpdoc-ja/reference/runkit/functions/runkit-function-add.xml:1.1 Sat Aug 20 20:26:03 2005 +++ phpdoc-ja/reference/runkit/functions/runkit-function-add.xml Fri May 5 05:27:15 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- Generated by xml_proto.php v2.2. Found in /scripts directory of phpdoc. --> -<!-- EN-Revision: 1.2 Maintainer: takagi Status: ready --> +<!-- EN-Revision: 1.3 Maintainer: takagi Status: ready --> <refentry id="function.runkit-function-add"> <refnamediv> <refname>runkit_function_add</refname> @@ -66,7 +66,7 @@ <programlisting role="php"> <![CDATA[ <?php -create_function('testme','$a,$b','echo "The value of a is $a\n"; echo "The value of b is $b\n";'); +runkit_function_add('testme','$a,$b','echo "The value of a is $a\n"; echo "The value of b is $b\n";'); testme(1,2); ?> ]]> http://cvs.php.net/viewcvs.cgi/phpdoc-ja/reference/pdo/functions/PDOStatement-execute.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-ja/reference/pdo/functions/PDOStatement-execute.xml diff -u phpdoc-ja/reference/pdo/functions/PDOStatement-execute.xml:1.5 phpdoc-ja/reference/pdo/functions/PDOStatement-execute.xml:1.6 --- phpdoc-ja/reference/pdo/functions/PDOStatement-execute.xml:1.5 Sun Feb 5 15:45:27 2006 +++ phpdoc-ja/reference/pdo/functions/PDOStatement-execute.xml Fri May 5 05:27:15 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8" ?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.8 Maintainer: shimooka Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.9 Maintainer: shimooka Status: ready --> <!-- Generated by xml_proto.php v2.1. Found in /scripts directory of phpdoc. --> <refentry id="function.PDOStatement-execute"> <refnamediv> @@ -78,7 +78,7 @@ </programlisting> </example> - <example><title>入力値の配列を伴うプリペアドステートメントの実行</title> + <example><title>入力値の配列を伴うプリペアドステートメントの実行 (名前つきパラメータ)</title> <programlisting role='php'> <![CDATA[ <?php @@ -94,6 +94,23 @@ </programlisting> </example> + <example><title>入力値の配列を伴うプリペアドステートメントの実行 (プレースホルダ)</title> + <programlisting role='php'> +<![CDATA[ +<?php +/* 入力値の配列を伴うプリペアドステートメントの実行 */ +$calories = 150; +$colour = 'red'; +$sth = $dbh->prepare('SELECT name, colour, calories + FROM fruit + WHERE calories < ? AND colour = ?'); +$sth->execute(array($calories, $colour)); +?> +]]> + </programlisting> + </example> + + <example><title>疑問符プレースホルダを伴うプリペアドステートメントの実行</title> <programlisting role='php'> <![CDATA[ http://cvs.php.net/viewcvs.cgi/phpdoc-ja/reference/pdo/constants.xml?r1=1.10&r2=1.11&diff_format=u Index: phpdoc-ja/reference/pdo/constants.xml diff -u phpdoc-ja/reference/pdo/constants.xml:1.10 phpdoc-ja/reference/pdo/constants.xml:1.11 --- phpdoc-ja/reference/pdo/constants.xml:1.10 Tue Apr 25 03:30:07 2006 +++ phpdoc-ja/reference/pdo/constants.xml Fri May 5 05:27:15 2006 @@ -1,6 +1,6 @@ <?xml version='1.0' encoding='utf-8'?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.14 Maintainer: shimooka Status: ready --> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.15 Maintainer: shimooka Status: ready --> <!-- CREDITS: hirokawa --> <section id="pdo.constants"> &reftitle.constants; @@ -846,6 +846,84 @@ </simpara> </listitem> </varlistentry> + <varlistentry> + <term> + <constant>PDO::PARAM_EVT_ALLOC</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + 割り当てられたときに発生するイベント。 + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PDO::PARAM_EVT_FREE</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + 割り当てが解除されたときに発生するイベント。 + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PDO::PARAM_EVT_EXEC_PRE</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + プリペアドステートメントの実行前に発生するイベント。 + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PDO::PARAM_EVT_EXEC_POST</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + プリペアドステートメントの実行後に発生するイベント。 + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PDO::PARAM_EVT_FETCH_PRE</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + 結果セットから結果を取得する前に発生するイベント。 + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PDO::PARAM_EVT_FETCH_POST</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + 結果セットから結果を取得した後に発生するイベント。 + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PDO::PARAM_EVT_NORMALIZE</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + バインドパラメータの登録時に発生するイベント。 + これにより、ドライバがパラメータ名を正規化できるようになります。 + </simpara> + </listitem> + </varlistentry> </variablelist> </section> http://cvs.php.net/viewcvs.cgi/phpdoc-ja/reference/http/functions/headers-list.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-ja/reference/http/functions/headers-list.xml diff -u phpdoc-ja/reference/http/functions/headers-list.xml:1.2 phpdoc-ja/reference/http/functions/headers-list.xml:1.3 --- phpdoc-ja/reference/http/functions/headers-list.xml:1.2 Sun Oct 23 16:28:36 2005 +++ phpdoc-ja/reference/http/functions/headers-list.xml Fri May 5 05:27:15 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.5 Maintainer: shimooka Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.6 Maintainer: shimooka Status: ready --> <refentry id="function.headers-list"> <refnamediv> <refname>headers_list</refname> @@ -49,13 +49,13 @@ <![CDATA[ array(4) { [0]=> - string(12) "X-Powered-By" + string(23) "X-Powered-By: PHP/5.1.3" [1]=> - string(10) "Set-Cookie" + string(19) "Set-Cookie: foo=bar" [2]=> - string(13) "X-Sample-Test" + string(18) "X-Sample-Test: foo" [3]=> - string(12) "Content-type" + string(24) "Content-type: text/plain" } ]]> http://cvs.php.net/viewcvs.cgi/phpdoc-ja/language/types.xml?r1=1.51&r2=1.52&diff_format=u Index: phpdoc-ja/language/types.xml diff -u phpdoc-ja/language/types.xml:1.51 phpdoc-ja/language/types.xml:1.52 --- phpdoc-ja/language/types.xml:1.51 Wed May 3 02:18:12 2006 +++ phpdoc-ja/language/types.xml Fri May 5 05:27:15 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.51 $ --> -<!-- EN-Revision: 1.165 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.52 $ --> +<!-- EN-Revision: 1.166 Maintainer: hirokawa Status: ready --> <!-- CREDITS: takagi --> <chapter id="language.types"> <title>型</title> @@ -1059,9 +1059,8 @@ </para> <note> <simpara> - 過去の互換性のため、<varname>$str{42}</varname> - のように波括弧を使用することも可能です。しかし、 - この構文は PHP 6 で廃止される予定です。 + <varname>$str{42}</varname> のように波括弧を使用してアクセスすることも可能です。 + しかし、角括弧を使用する方法のほうが推奨されます。 </simpara> </note> <para> @@ -1085,7 +1084,7 @@ $str = 'Look at the sea'; $str[strlen($str)-1] = 'e'; -// 波括弧を使用した、廃止予定の構文です +// {} を使用した、もうひとつの方法です $third = $str{2}; ?> ]]>
« previous php.doc.ja (#1544) next »