svn: /phpdoc/ja/trunk/ install/unix/index.xml internals2/opcodes/cast.xml internals2/variables/index.xml language/oop5/autoload.xml
language/oop5/basic.xml language/oop5/cloning.xml language/predefined/generator/send.xml
| From: | TAKAGI Masahiro | Date: | Sun, 06 Nov 2016 08:13:43 +0000 |
| Subject: | svn: /phpdoc/ja/trunk/ install/unix/index.xml internals2/opcodes/cast.xml internals2/variables/index.xml language/oop5/autoload.xml language/oop5/basic.xml language/oop5/cloning.xml language/predefined/generator/send.xml |
||
| Groups: | php.doc.ja | ||
| Request: | Send a blank email to doc-ja+get-4595@lists.php.net to get a copy of this message | ||
takagi Sun, 06 Nov 2016 08:13:43 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=340887
Log:
Sync with en
Changed paths:
U phpdoc/ja/trunk/install/unix/index.xml
U phpdoc/ja/trunk/internals2/opcodes/cast.xml
U phpdoc/ja/trunk/internals2/variables/index.xml
U phpdoc/ja/trunk/language/oop5/autoload.xml
U phpdoc/ja/trunk/language/oop5/basic.xml
U phpdoc/ja/trunk/language/oop5/cloning.xml
U phpdoc/ja/trunk/language/predefined/generator/send.xml
Modified: phpdoc/ja/trunk/install/unix/index.xml
===================================================================
--- phpdoc/ja/trunk/install/unix/index.xml 2016-11-05 21:28:57 UTC (rev 340886)
+++ phpdoc/ja/trunk/install/unix/index.xml 2016-11-06 08:13:43 UTC (rev 340887)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 340035 Maintainer: haruki Status: ready -->
+<!-- EN-Revision: 340348 Maintainer: haruki Status: ready -->
<!-- Credits: fujimoto, hirokawa, yuw, haruki, shimooka -->
<chapter xml:id="install.unix" xmlns="http://docbook.org/ns/docbook">
<title>Unix システムへのインストール</title>
@@ -146,6 +146,7 @@
&install.unix.nginx;
&install.unix.lighttpd-14;
&install.unix.sun;
+ &install.unix.litespeed;
&install.unix.commandline;
<!-- operating system specific nodes -->
&install.unix.hpux;
Modified: phpdoc/ja/trunk/internals2/opcodes/cast.xml
===================================================================
--- phpdoc/ja/trunk/internals2/opcodes/cast.xml 2016-11-05 21:28:57 UTC (rev 340886)
+++ phpdoc/ja/trunk/internals2/opcodes/cast.xml 2016-11-06 08:13:43 UTC (rev 340887)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 324373 Maintainer: takagi Status: ready -->
+<!-- EN-Revision: 340343 Maintainer: takagi Status: ready -->
<section xml:id="internals2.opcodes.cast">
<title>CAST</title>
<section xml:id="internals2.opcodes.cast.code">
@@ -9,7 +9,7 @@
<![CDATA[
<?php
/*
- * casts value1 as type value2 (?? Not certain about arguments ??)
+ * casts value1 as type value2 (type in extended_value)
* opcode number: 21
*/
echo (int)1;
@@ -34,7 +34,7 @@
<row>
<entry>6</entry><entry>0</entry>
<entry>CAST</entry><entry></entry>
- <entry></entry><entry>~0</entry>
+ <entry>4</entry><entry>~0</entry>
<entry>1</entry>
</row>
<row>
Modified: phpdoc/ja/trunk/internals2/variables/index.xml
===================================================================
--- phpdoc/ja/trunk/internals2/variables/index.xml 2016-11-05 21:28:57 UTC (rev 340886)
+++ phpdoc/ja/trunk/internals2/variables/index.xml 2016-11-06 08:13:43 UTC (rev 340887)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 337183 Maintainer: takagi Status: working -->
+<!-- EN-Revision: 340319 Maintainer: takagi Status: working -->
<chapter xml:id="internals2.variables" xmlns="http://docbook.org/ns/docbook">
<title>変数の作成</title>
<section xml:id="internals2.variables.intro">
@@ -16,7 +16,7 @@
</note>
<para>
To clarify what exactly is meant by the statement above: PHP is a high level language, weak
typing is implicit of the engines preference to
- convert, or coerce variables into the required type at execution type. Reference counting is the
means by which the engine can deduce when a
+ convert, or coerce variables into the required type at execution time. Reference counting is the
means by which the engine can deduce when a
variable no longer has any references in the users code, and so is able to free the structures
associated with the variable.
</para>
<para>
Modified: phpdoc/ja/trunk/language/oop5/autoload.xml
===================================================================
--- phpdoc/ja/trunk/language/oop5/autoload.xml 2016-11-05 21:28:57 UTC (rev 340886)
+++ phpdoc/ja/trunk/language/oop5/autoload.xml 2016-11-06 08:13:43 UTC (rev 340887)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 338943 Maintainer: hirokawa Status: ready -->
+<!-- EN-Revision: 340349 Maintainer: hirokawa Status: ready -->
<sect1 xml:id="language.oop5.autoload" xmlns="http://docbook.org/ns/docbook">
<title>クラスのオートローディング</title>
Modified: phpdoc/ja/trunk/language/oop5/basic.xml
===================================================================
--- phpdoc/ja/trunk/language/oop5/basic.xml 2016-11-05 21:28:57 UTC (rev 340886)
+++ phpdoc/ja/trunk/language/oop5/basic.xml 2016-11-06 08:13:43 UTC (rev 340887)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 339436 Maintainer: takagi Status: ready -->
+<!-- EN-Revision: 340428 Maintainer: takagi Status: ready -->
<!-- CREDITS: hirokawa -->
<sect1 xml:id="language.oop5.basic" xmlns="http://docbook.org/ns/docbook">
@@ -243,9 +243,29 @@
bool(true)
bool(true)
]]>
- </screen>
- </example>
- </sect2>
+ </screen>
+ </example>
+
+ <para>
+ PHP 5.4.0
以降では、新しく作成したオブジェクトのメンバーに、作成したその式の中でもアクセスできるようになりました。
+ </para>
+ <example>
+
<title>新しく作成したオブジェクトのメンバーへのアクセス</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+echo (new DateTime())->format('Y');
+?>
+]]>
+ </programlisting>
+ &example.outputs.similar;
+ <screen>
+<![CDATA[
+2016
+]]>
+ </screen>
+ </example>
+ </sect2>
<sect2 xml:id="language.oop5.basic.properties-methods">
<title>プロパティとメソッド</title>
Modified: phpdoc/ja/trunk/language/oop5/cloning.xml
===================================================================
--- phpdoc/ja/trunk/language/oop5/cloning.xml 2016-11-05 21:28:57 UTC (rev 340886)
+++ phpdoc/ja/trunk/language/oop5/cloning.xml 2016-11-06 08:13:43 UTC (rev 340887)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 337312 Maintainer: hirokawa Status: ready -->
+<!-- EN-Revision: 340428 Maintainer: hirokawa Status: ready -->
<sect1 xml:id="language.oop5.cloning" xmlns="http://docbook.org/ns/docbook">
<title>オブジェクトのクローン作成</title>
@@ -135,12 +135,33 @@
)
]]>
- </screen>
+ </screen>
- </example>
+ </example>
+
+ <para>
+ PHP 7.0.0
以降では、新しくクローンしたオブジェクトのメンバーに、作成したその式の中でもアクセスできるようになりました。
+ </para>
+ <example>
+ <title>クローンしたオブジェクトのメンバーへのアクセス</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+$dateTime = new DateTime();
+echo (clone $dateTime)->format('Y');
+?>
+]]>
+ </programlisting>
+ &example.outputs.similar;
+ <screen>
+<![CDATA[
+2016
+]]>
+ </screen>
+ </example>
+
+ </sect1>
-</sect1>
-
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Modified: phpdoc/ja/trunk/language/predefined/generator/send.xml
===================================================================
--- phpdoc/ja/trunk/language/predefined/generator/send.xml 2016-11-05 21:28:57 UTC (rev 340886)
+++ phpdoc/ja/trunk/language/predefined/generator/send.xml 2016-11-06 08:13:43 UTC (rev 340887)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 337857 Maintainer: takagi Status: ready -->
+<!-- EN-Revision: 340503 Maintainer: takagi Status: ready -->
<refentry xml:id="generator.send" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
@@ -56,9 +56,10 @@
<![CDATA[
<?php
function printer() {
+ echo "I'm printer!".PHP_EOL;
while (true) {
$string = yield;
- echo $string;
+ echo $string.PHP_EOL;
}
}
@@ -71,6 +72,7 @@
&example.outputs;
<screen>
<![CDATA[
+I'm printer!
Hello world!
Bye world!
]]>