Contributions are ready for review
| From: | phpdoc at lists dot php dot net | Date: | Mon, 06 Jul 2015 12:00:04 +0000 |
| Subject: | Contributions are ready for review | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969385798@lists.php.net to get a copy of this message | ||
Hello PHP EN Documentation team,
There are contributions within the online editor queue for this language.
Please review, then commit or delete these patches.
Patches for review :
-----------------------
Modified: en/internals2/opcodes/add-interface.xml
By: Gennady Kovshenin on 2015-03-15 18:27:32
===================================================================
--- en/internals2/opcodes/add-interface.xml
+++ en/internals2/opcodes/add-interface.xml
@@ -8,11 +8,64 @@
<![CDATA[
<?php
/*
- *
+ * adds an implemented interface to a class declaration
* opcode number: 144
- * No sample PHP yet */
+ */
+interface iA {
+}
+
+class A implements iA {
+}
?>
]]>
</programlisting>
</section>
+ <section xml:id="internals2.opcodes.add-interface.listing">
+ <title>PHP opcodes</title>
+ <simpara>Function name: (null)</simpara>
+ <simpara>Compiled variables: none</simpara>
+ <informaltable>
+ <tgroup cols="7">
+ <thead>
+ <row>
+ <entry>line</entry><entry>#</entry><entry>op</entry>
+
<entry>fetch</entry><entry>ext</entry><entry>return</entry>
+ <entry>operands</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>6</entry><entry>0</entry>
+ <entry>NOP</entry><entry></entry>
+ <entry></entry><entry></entry>
+ <entry></entry>
+ </row>
+ <row>
+ <entry></entry><entry>1</entry>
+ <entry>DECLARE_CLASS</entry><entry></entry>
+ <entry></entry><entry></entry>
+ <entry>'a'</entry>
+ </row>
+ <row>
+ <entry></entry><entry>2</entry>
+ <entry>ADD_INTERFACE</entry><entry></entry>
+ <entry></entry><entry></entry>
+ <entry>'iA'</entry>
+ </row>
+ <row>
+ <entry></entry><entry>3</entry>
+ <entry>VERIFY_ABSTRACT_CLASS</entry><entry></entry>
+ <entry></entry><entry></entry>
+ <entry></entry>
+ </row>
+ <row>
+ <entry></entry><entry>3</entry>
+ <entry>RETURN</entry><entry></entry>
+ <entry></entry><entry></entry>
+ <entry>1</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </section>
</section>
No newline at end of file
=> Put this change into your patches : https://edit.php.net/?project=php&action=putIntoMyPatches&idDB=60576
=> Delete this change: https://edit.php.net/?project=php&action=deleteThisChange&idDB=60576
------------------------------------------------------------------
Modified: en/internals2/opcodes/add-char.xml
By: Gennady Kovshenin on 2015-03-15 18:29:44
===================================================================
--- en/internals2/opcodes/add-char.xml
+++ en/internals2/opcodes/add-char.xml
@@ -8,10 +8,10 @@
<![CDATA[
<?php
/*
- * add character value2 to string value1 and store in result
+ * add regular characters in encapsed string
* opcode number: 54
*/
-echo "hello world";
+echo "$a ";
?>
]]>
</programlisting>
@@ -19,7 +19,7 @@
<section xml:id="internals2.opcodes.add-char.listing">
<title>PHP opcodes</title>
<simpara>Function name: (null)</simpara>
- <simpara>Compiled variables: none </simpara>
+ <simpara>Compiled variables: !0=$a</simpara>
<informaltable>
<tgroup cols="7">
<thead>
@@ -32,12 +32,24 @@
<tbody>
<row>
<entry>6</entry><entry>0</entry>
+ <entry>ADD_VAR</entry><entry></entry>
+ <entry></entry><entry></entry>
+ <entry>!0</entry>
+ </row>
+ <row>
+ <entry></entry><entry>1</entry>
+ <entry>ADD_CHAR</entry><entry></entry>
+ <entry></entry><entry></entry>
+ <entry>32</entry>
+ </row>
+ <row>
+ <entry></entry><entry>2</entry>
<entry>ECHO</entry><entry></entry>
<entry></entry><entry></entry>
- <entry>'hello%5C+world'</entry>
+ <entry> </entry>
</row>
<row>
- <entry>7</entry><entry>1</entry>
+ <entry></entry><entry>3</entry>
<entry>RETURN</entry><entry></entry>
<entry></entry><entry></entry>
<entry>1</entry>
=> Put this change into your patches : https://edit.php.net/?project=php&action=putIntoMyPatches&idDB=60575
=> Delete this change: https://edit.php.net/?project=php&action=deleteThisChange&idDB=60575
------------------------------------------------------------------
Modified: en/internals2/opcodes/cast.xml
By: Gennady Kovshenin on 2015-03-15 18:46:59
===================================================================
--- en/internals2/opcodes/cast.xml
+++ en/internals2/opcodes/cast.xml
@@ -8,7 +8,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;
@@ -39,7 +39,7 @@
<row>
<entry></entry><entry>1</entry>
<entry>ECHO</entry><entry></entry>
- <entry></entry><entry></entry>
+ <entry></entry><entry>1</entry>
<entry>~0</entry>
</row>
<row>
=> Put this change into your patches : https://edit.php.net/?project=php&action=putIntoMyPatches&idDB=60577
=> Delete this change: https://edit.php.net/?project=php&action=deleteThisChange&idDB=60577
------------------------------------------------------------------
Modified: en/install/windows/iis7.xml
By: Alan Farquharson on 2015-06-12 04:25:12
===================================================================
--- en/install/windows/iis7.xml
+++ en/install/windows/iis7.xml
@@ -196,7 +196,7 @@
<programlisting>
<![CDATA[
%windir%system32inetsrvappcmd set config /section:system.webServer/handlers ^
-/+[name='PHP_via_FastCGI',
path='*.php',verb='*',modules='FastCgiModule',^
+/+[name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',^
scriptProcessor='c:PHPphp-cgi.exe',resourceType='Either']
]]>
</programlisting>
=> Put this change into your patches : https://edit.php.net/?project=php&action=putIntoMyPatches&idDB=63079
=> Delete this change: https://edit.php.net/?project=php&action=deleteThisChange&idDB=63079
------------------------------------------------------------------
Modified: en/reference/misc/functions/eval.xml
By: Thomas Punt on 2015-06-15 07:02:58
===================================================================
--- en/reference/misc/functions/eval.xml
+++ en/reference/misc/functions/eval.xml
@@ -37,11 +37,11 @@
Valid PHP code to be evaluated.
</para>
<para>
- The code mustn't be wrapped in opening and closing
+ The code must not be wrapped in opening and closing
<link linkend="language.basic-syntax.phpmode">PHP tags</link>, i.e.
<literal>'echo "Hi!";'</literal> must be passed instead of
- <literal>'<? echo "Hi!"; >'</literal>. It is
still possible to leave and
- reenter PHP mode though using the appropriate PHP tags, e.g.
+ <literal>'<? echo "Hi!"; ?>'</literal>. It is
still possible to leave and
+ re-enter PHP mode though using the appropriate PHP tags, e.g.
<literal>'echo "In PHP mode!"; ?>In HTML mode!<? echo
"Back in PHP mode!";'</literal>.
</para>
<para>
@@ -114,7 +114,8 @@
&tip.ob-capture;
<note>
<para>
- In case of a fatal error in the evaluated code, the whole script exits.
+ In case of a fatal error in the evaluated code, the script being evaluated exits and
+ execution control returns back to the script calling <function>eval</function>.
</para>
</note>
</refsect1>
=> Put this change into your patches : https://edit.php.net/?project=php&action=putIntoMyPatches&idDB=26248
=> Delete this change: https://edit.php.net/?project=php&action=deleteThisChange&idDB=26248
------------------------------------------------------------------
Modified: en/language/predefined/closure/call.xml
By: mail@akirakoyasu.net on 2015-06-23 07:03:03
===================================================================
--- en/language/predefined/closure/call.xml
+++ en/language/predefined/closure/call.xml
@@ -11,7 +11,8 @@
<methodsynopsis>
<modifier>public</modifier>
<type>Closure</type><methodname>Closure::call</methodname>
<methodparam><type>object</type><parameter>to</parameter></methodparam>
- <methodparam
choice="opt"><type>mixed</type><parameter>parameters</parameter></methodparam>
+ <methodparam
choice="opt"><type>mixed</type><parameter>parameter</parameter></methodparam>
+ <methodparam
choice="opt"><type>mixed</type><parameter>...</parameter></methodparam>
</methodsynopsis>
<para>
Calls the closure with the given parameters and returns the result, with $this bound to the
given object
@@ -29,7 +30,7 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><parameter>parameters</parameter></term>
+ <term><parameter>args</parameter></term>
<listitem>
<para>
</para>
=> Put this change into your patches : https://edit.php.net/?project=php&action=putIntoMyPatches&idDB=63267
=> Delete this change: https://edit.php.net/?project=php&action=deleteThisChange&idDB=63267
------------------------------------------------------------------
Modified: en/reference/imap/functions/imap-fetchstructure.xml
By: Krzysiek Łukasiak on 2015-06-24 05:21:58
===================================================================
--- en/reference/imap/functions/imap-fetchstructure.xml
+++ en/reference/imap/functions/imap-fetchstructure.xml
@@ -140,32 +140,38 @@
</para>
<para>
<table>
- <title>Primary body type (may vary with used library)</title>
- <tgroup cols="2">
- <tbody>
- <row><entry>0</entry><entry>text</entry></row>
- <row><entry>1</entry><entry>multipart</entry></row>
- <row><entry>2</entry><entry>message</entry></row>
- <row><entry>3</entry><entry>application</entry></row>
- <row><entry>4</entry><entry>audio</entry></row>
- <row><entry>5</entry><entry>image</entry></row>
- <row><entry>6</entry><entry>video</entry></row>
- <row><entry>7</entry><entry>other</entry></row>
- </tbody>
- </tgroup>
+ <title>Primary body type (value may vary with used library, use of constants is
recommended)</title>
+ <tgroup cols="3">
+ <thead>
+
<row><entry>Value</entry><entry>Type</entry><entry>Constant</entry></row>
+ </thead>
+ <tbody>
+
<row><entry>0</entry><entry>text</entry><entry>TYPETEXT</entry></row>
+
<row><entry>1</entry><entry>multipart</entry><entry>TYPEMULTIPART</entry></row>
+
<row><entry>2</entry><entry>message</entry><entry>TYPEMESSAGE</entry></row>
+
<row><entry>3</entry><entry>application</entry><entry>TYPEAPPLICATION</entry></row>
+
<row><entry>4</entry><entry>audio</entry><entry>TYPEAUDIO</entry></row>
+
<row><entry>5</entry><entry>image</entry><entry>TYPEIMAGE</entry></row>
+
<row><entry>6</entry><entry>video</entry><entry>TYPEVIDEO</entry></row>
+
<row><entry>7</entry><entry>other</entry><entry>TYPEOTHER</entry></row>
+ </tbody>
+ </tgroup>
</table>
</para>
<para>
<table>
- <title>Transfer encodings (may vary with used library)</title>
- <tgroup cols="2">
- <tbody>
- <row><entry>0</entry><entry>7BIT</entry></row>
- <row><entry>1</entry><entry>8BIT</entry></row>
- <row><entry>2</entry><entry>BINARY</entry></row>
- <row><entry>3</entry><entry>BASE64</entry></row>
-
<row><entry>4</entry><entry>QUOTED-PRINTABLE</entry></row>
- <row><entry>5</entry><entry>OTHER</entry></row>
+ <title>Transfer encodings (value may vary with used library, use of constants is
recommended)</title>
+ <tgroup cols="3">
+ <thead>
+
<row><entry>Value</entry><entry>Type</entry><entry>Constant</entry></row>
+ </thead>
+ <tbody>
+
<row><entry>0</entry><entry>7bit</entry><entry>ENC7BIT</entry></row>
+
<row><entry>1</entry><entry>8bit</entry><entry>ENC8BIT</entry></row>
+
<row><entry>2</entry><entry>Binary</entry><entry>ENCBINARY</entry></row>
+
<row><entry>3</entry><entry>Base64</entry><entry>ENCBASE64</entry></row>
+
<row><entry>4</entry><entry>Quoted-Printable</entry><entry>ENCQUOTEDPRINTABLE</entry></row>
+
<row><entry>5</entry><entry>other</entry><entry>ENCOTHER</entry></row>
</tbody>
</tgroup>
</table>
=> Put this change into your patches : https://edit.php.net/?project=php&action=putIntoMyPatches&idDB=63305
=> Delete this change: https://edit.php.net/?project=php&action=deleteThisChange&idDB=63305
------------------------------------------------------------------
Modified: en/reference/soap/functions/use-soap-error-handler.xml
By: Tomasz Sawicki on 2015-06-25 02:46:41
===================================================================
--- en/reference/soap/functions/use-soap-error-handler.xml
+++ en/reference/soap/functions/use-soap-error-handler.xml
@@ -19,7 +19,7 @@
in a <classname>SoapServer</classname> application will be sent to the client
as a SOAP fault message.
If &false;, the standard PHP error handler is used.
- The default is to use the standard PHP error handler.
+ The default is to send error to the client as SOAP fault message.
</para>
</refsect1>
=> Put this change into your patches : https://edit.php.net/?project=php&action=putIntoMyPatches&idDB=63350
=> Delete this change: https://edit.php.net/?project=php&action=deleteThisChange&idDB=63350
------------------------------------------------------------------
Modified: en/faq/databases.xml
By: anonymous on 2015-06-26 09:06:24
===================================================================
--- en/faq/databases.xml
+++ en/faq/databases.xml
@@ -165,7 +165,7 @@
<para>
There are three MySQL extensions, as described under the
<link linkend="mysqlinfo.api.choosing">Choosing a MySQL API</link>
section. The old API
- should not be used, and one day it will be deprecated and eventually removed from PHP.
+ should not be used, it is deprecated as of PHP 5.5.0 and one day it will eventually be
removed from PHP.
It is a popular extension so this will be a slow process, but you are strongly encouraged
to write all new code with either <link
linkend="book.mysqli">mysqli</link> or
<link linkend="ref.pdo-mysql">PDO_MySQL</link>.
=> Put this change into your patches : https://edit.php.net/?project=php&action=putIntoMyPatches&idDB=63363
=> Delete this change: https://edit.php.net/?project=php&action=deleteThisChange&idDB=63363
------------------------------------------------------------------
Modified: en/internals2/variables/index.xml
By: anonymous on 2015-06-26 09:45:15
===================================================================
--- en/internals2/variables/index.xml
+++ en/internals2/variables/index.xml
@@ -639,7 +639,7 @@
<para>The internal structure and exact operation of <code>HashTable</code> is
out of the scope of this document, this document serves to inform you of the API's available
and how best to use them. For a more detailed picture of the HashTable see
<code>Zend/zend_hash.h</code>.</para>
- <para>Unless otherwise stated, these functions all return <code>FAILURE</code>
if the requested opeation fails for any reason, otherwise <code>SUCCESS</code> is
returned.</para>
+ <para>Unless otherwise stated, these functions all return <code>FAILURE</code>
if the requested operation fails for any reason, otherwise <code>SUCCESS</code> is
returned.</para>
<note>
<para>It is important to remember that ordinarily <code>HashTable</code> API
functions expect key lengths to be the length of the null terminated string, including the null
termination, in other words they expect <code>strlen(key) + 1</code></para>
=> Put this change into your patches : https://edit.php.net/?project=php&action=putIntoMyPatches&idDB=63364
=> Delete this change: https://edit.php.net/?project=php&action=deleteThisChange&idDB=63364
------------------------------------------------------------------
Modified: en/language/basic-syntax.xml
By: Boyi C on 2015-07-03 21:56:02
===================================================================
--- en/language/basic-syntax.xml
+++ en/language/basic-syntax.xml
@@ -196,6 +196,11 @@
valid, regardless of the <link
linkend="ini.short-open-tag">short_open_tag</link> setting.
</para>
</note>
+ <note>
+ <para>
+ Starting with PHP 7.0, asp_tags has been removed.
+ </para>
+ </note>
</para>
</sect1>
<sect1 xml:id="language.basic-syntax.instruction-separation">
=> Put this change into your patches : https://edit.php.net/?project=php&action=putIntoMyPatches&idDB=63485
=> Delete this change: https://edit.php.net/?project=php&action=deleteThisChange&idDB=63485
------------------------------------------------------------------
--
https://edit.php.net/
This email is send automatically by the Php Docbook Online Editor.