svn: /phpdoc/en/trunk/appendices/migration56/ incompatible.xml new-features.xml
| From: | Adam Harvey | Date: | Sun, 01 Jun 2014 22:07:55 +0000 |
| Subject: | svn: /phpdoc/en/trunk/appendices/migration56/ incompatible.xml new-features.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-12511@lists.php.net to get a copy of this message | ||
aharvey Sun, 01 Jun 2014 22:07:55 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=333676
Log:
Some updates from UPGRADING. Still working on them.
Changed paths:
U phpdoc/en/trunk/appendices/migration56/incompatible.xml
U phpdoc/en/trunk/appendices/migration56/new-features.xml
Modified: phpdoc/en/trunk/appendices/migration56/incompatible.xml
===================================================================
--- phpdoc/en/trunk/appendices/migration56/incompatible.xml 2014-06-01 22:06:02 UTC (rev 333675)
+++ phpdoc/en/trunk/appendices/migration56/incompatible.xml 2014-06-01 22:07:55 UTC (rev 333676)
@@ -8,6 +8,60 @@
note of some backward incompatible changes:
</simpara>
+ <sect2 xml:id="migration56.incompatible.array-keys">
+ <title>Array keys won't be overwritten when defining an array as a property of a class
via an array literal</title>
+
+ <para>
+ Previously, arrays declared as class properties which mixed explicit and
+ implicit keys could have array elements silently overwritten if an explicit
+ key was the same as a sequential implicit key. For example:
+ </para>
+
+ <informalexample>
+ <programlisting role="php">
+<![CDATA[
+<?php
+class C {
+ const ONE = 1;
+ public $array = [
+ self::ONE => 'foo',
+ 'bar',
+ 'quux',
+ ];
+}
+
+var_dump((new C)->array);
+?>
+]]>
+ </programlisting>
+ &example.outputs.55;
+ <screen>
+<![CDATA[
+array(2) {
+ [0]=>
+ string(3) "bar"
+ [1]=>
+ string(4) "quux"
+}
+
+]]>
+ </screen>
+ &example.outputs.56;
+ <screen>
+<![CDATA[
+array(3) {
+ [1]=>
+ string(3) "foo"
+ [2]=>
+ string(3) "bar"
+ [3]=>
+ string(4) "quux"
+}
+]]>
+ </screen>
+ </informalexample>
+ </sect2>
+
<sect2 xml:id="migration56.incompatible.json-decode">
<title><function>json_decode</function> strictness</title>
Modified: phpdoc/en/trunk/appendices/migration56/new-features.xml
===================================================================
--- phpdoc/en/trunk/appendices/migration56/new-features.xml 2014-06-01 22:06:02 UTC (rev 333675)
+++ phpdoc/en/trunk/appendices/migration56/new-features.xml 2014-06-01 22:07:55 UTC (rev 333676)
@@ -339,7 +339,20 @@
</para>
</sect2>
- <!-- TODO: async PostgreSQL, PCRE marks -->
+ <sect2 xml:id="migration56.new-features.postgresql">
+ <title><link linkend="book.pgsql">pgsql</link> async
support</title>
+
+ <para>
+ The <link linkend="book.pgsql">pgsql</link> extension now supports
+ asynchronous connections and queries, thereby enabling non-blocking
+ behaviour when interacting with PostgreSQL databases. Asynchronous
+ connections may be established via the
+ <constant>PGSQL_CONNECT_ASYNC</constant> constant, and the new
+ <function>pg_connect_poll</function>, <function>pg_socket</function>,
+ <function>pg_consume_input</function> and <function>pg_flush</function>
+ functions may be used to handle asynchronous connections and queries.
+ </para>
+ </sect2>
</sect1>
<!-- Keep this comment at the end of the file