svn: /phpdoc/en/trunk/appendices/migration56/ new-features.xml

From: Date: Mon, 01 Sep 2014 16:44:16 +0000
Subject: svn: /phpdoc/en/trunk/appendices/migration56/ new-features.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-12774@lists.php.net to get a copy of this message
daverandom Mon, 01 Sep 2014 16:44:16 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=334707 Log: Clarify wording in 5.6 migration guide -- Provided by anonymous 47954 Changed paths: U phpdoc/en/trunk/appendices/migration56/new-features.xml Modified: phpdoc/en/trunk/appendices/migration56/new-features.xml =================================================================== --- phpdoc/en/trunk/appendices/migration56/new-features.xml 2014-09-01 16:39:55 UTC (rev 334706) +++ phpdoc/en/trunk/appendices/migration56/new-features.xml 2014-09-01 16:44:16 UTC (rev 334707) @@ -208,12 +208,10 @@ <para> <link linkend="ini.default-charset">default_charset</link> is now used as - the default character set for the <function>htmlentities</function>, - <function>html_entity_decode</function> and - <function>htmlspecialchars</function> functions. Note that if the (now - deprecated) iconv and mbstring encoding settings are set, they will take - precedence over default_charset for iconv and mbstring functions, - respectively. + the default character set for functions that are encoding-specific, such + as <function>htmlspecialchars</function>. Note that if the (now deprecated) + iconv and mbstring encoding settings are set, they will take precedence over + default_charset for iconv and mbstring functions, respectively. </para> <para> @@ -254,7 +252,7 @@ <![CDATA[ <?php $a = gmp_init(42); -$b = gmp_init(17); +$b = gmp_init(17);xcvxgvserfserfsfsdfsdfsdf // Pre-5.6 code: var_dump(gmp_add($a, $b)); @@ -284,6 +282,8 @@ attacks). </para> + <!-- TODO: update crypt() examples --> + <informalexample> <programlisting role="php"> <![CDATA[ @@ -307,50 +307,6 @@ </informalexample> </sect2> - <sect2 xml:id="migration56.new-features.debuginfo"> - <title><literal>__debugInfo()</literal></title> - - <para> - The <link linkend="language.oop5.magic.debuginfo">__debugInfo()</link> - magic method has been added to allow objects to change the properties and - values that are shown when the object is output using - <function>var_dump</function>. - </para> - - <informalexample> - <programlisting role="php"> -<![CDATA[ -<?php -class C { - private $prop; - - public function __construct($val) { - $this->prop = $val; - } - - public function __debugInfo() { - return [ - 'propSquared' => $this->prop ** 2, - ]; - } -} - -var_dump(new C(42)); -?> -]]> - </programlisting> - &example.outputs; - <screen> -<![CDATA[ -object(C)#1 (1) { - ["propSquared"]=> - int(1764) -} -]]> - </screen> - </informalexample> - </sect2> - <sect2 xml:id="migration56.new-features.gost"> <title>gost-crypto hash algorithm</title> @@ -382,13 +338,13 @@ section of this migration guide. </para> </sect2> - +sdfsdfsdfsdf <sect2 xml:id="migration56.new-features.postgresql"> <title><link linkend="book.pgsql">pgsql</link> async support</title> - +xcvxcv <para> The <link linkend="book.pgsql">pgsql</link> extension now supports - asynchronous connections and queries, thereby enabling non-blocking + asynchronous cosdfsdfnnections 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

« previous php.doc.cvs (#12774) next »