cvs: phpdoc-ja /language types.xml /reference/soap/functions soap-soapclient-soapcall.xml

From: Date: Thu, 28 Sep 2006 16:09:48 +0000
Subject: cvs: phpdoc-ja /language types.xml /reference/soap/functions soap-soapclient-soapcall.xml
Groups: php.doc.ja 
Request: Send a blank email to doc-ja+get-1620@lists.php.net to get a copy of this message
takagi Thu Sep 28 16:09:48 2006 UTC Modified files: /phpdoc-ja/reference/soap/functions soap-soapclient-soapcall.xml /phpdoc-ja/language types.xml Log: sync with en. http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/soap/functions/soap-soapclient-soapcall.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-ja/reference/soap/functions/soap-soapclient-soapcall.xml diff -u phpdoc-ja/reference/soap/functions/soap-soapclient-soapcall.xml:1.1 phpdoc-ja/reference/soap/functions/soap-soapclient-soapcall.xml:1.2 --- phpdoc-ja/reference/soap/functions/soap-soapclient-soapcall.xml:1.1 Sun Jul 10 13:10:19 2005 +++ phpdoc-ja/reference/soap/functions/soap-soapclient-soapcall.xml Thu Sep 28 16:09:47 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.2 Maintainer: shimooka Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.3 Maintainer: shimooka Status: ready --> <refentry id="function.soap-soapclient-soapcall"> <refnamediv> <refname>SoapClient->__soapCall()</refname> @@ -15,7 +15,7 @@ <methodsynopsis> <type>mixed</type><methodname>__soapCall</methodname> <methodparam><type>string</type><parameter>function_name</parameter></methodparam> - <methodparam choice="opt"><type>array</type><parameter>arguments</parameter></methodparam> + <methodparam><type>array</type><parameter>arguments</parameter></methodparam> <methodparam choice="opt"><type>array</type><parameter>options</parameter></methodparam> <methodparam choice="opt"><type>mixed</type><parameter>input_headers</parameter></methodparam> <methodparam choice="opt"><type>array</type><parameter role="reference">output_headers</parameter></methodparam> http://cvs.php.net/viewvc.cgi/phpdoc-ja/language/types.xml?r1=1.54&r2=1.55&diff_format=u Index: phpdoc-ja/language/types.xml diff -u phpdoc-ja/language/types.xml:1.54 phpdoc-ja/language/types.xml:1.55 --- phpdoc-ja/language/types.xml:1.54 Fri Sep 1 20:00:22 2006 +++ phpdoc-ja/language/types.xml Thu Sep 28 16:09:48 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.54 $ --> -<!-- EN-Revision: 1.167 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.55 $ --> +<!-- EN-Revision: 1.168 Maintainer: hirokawa Status: ready --> <!-- CREDITS: takagi --> <chapter id="language.types"> <title>型</title> @@ -1793,7 +1793,33 @@ <para> <type>object</type>を配列にする場合には、配列の要素として オブジェクトの属性 (メンバ変数) を持つ配列を得ることになります。 - 添字はメンバ変数名となります。 + 添字はメンバ変数名となりますが、いくつか注意すべき例外があります。 + private 変数の場合、変数名の頭にクラス名がつきます。また、 + protected 変数の場合は、変数名の頭に '*' がつきます。 + このとき、頭に追加される値の前後に null バイトがついてきます。 + その結果、予期せぬ振る舞いをすることがあります。 + <informalexample> + <programlisting role="php"> +<![CDATA[ +<?php + +class A { + private $A; // これは '\0A\0A' となります +} + +class B extends A { + private $A; // これは '\0B\0A' となります + public $AA; // これは 'AA' となります +} + +var_dump((array) new B()); +?> +]]> + </programlisting> + </informalexample> + + 上の例では 'AA' というキーがふたつあるように見えますが、 + そのうちひとつは、実際は '\0A\0A' ということになります。 </para> <para>

« previous php.doc.ja (#1620) next »