svn: /phpdoc/en/trunk/appendices/migration70/incompatible/ other.xml

From: Date: Wed, 02 Sep 2015 13:10:53 +0000
Subject: svn: /phpdoc/en/trunk/appendices/migration70/incompatible/ other.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-13683@lists.php.net to get a copy of this message
tpunt Wed, 02 Sep 2015 13:10:53 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=337707 Log: Document incompatibility of using multiple default blocks in a switch Changed paths: U phpdoc/en/trunk/appendices/migration70/incompatible/other.xml Modified: phpdoc/en/trunk/appendices/migration70/incompatible/other.xml =================================================================== --- phpdoc/en/trunk/appendices/migration70/incompatible/other.xml 2015-09-02 12:14:07 UTC (rev 337706) +++ phpdoc/en/trunk/appendices/migration70/incompatible/other.xml 2015-09-02 13:10:53 UTC (rev 337707) @@ -207,11 +207,11 @@ </sect3> <sect3 xml:id="migration70.incompatible.other.func-parameters"> - <title>Functions can't have more than one parameter with the same name</title> + <title>Functions cannot have multiple parameters with the same name</title> <para> - It is no longer possible to define two function parameters with the same - name. For example, the following method will trigger + It is no longer possible to define two or more function parameters with the + same name. For example, the following function will trigger an <constant>E_COMPILE_ERROR</constant>: </para> @@ -228,6 +228,31 @@ </informalexample> </sect3> + <sect3 xml:id="migration70.incompatible.other.multiple-default"> + <title>Switch statements cannot have multiple default blocks</title> + + <para> + It is no longer possible to define two or more default blocks in a switch + statement. For example, the following will switch statement will trigger an + <constant>E_COMPILE_ERROR</constant>: + </para> + + <informalexample> + <programlisting role="php"> +<![CDATA[ +<?php +switch (1) { + default: + break; + default: + break; +} +?> +]]> + </programlisting> + </informalexample> + </sect3> + <sect3 xml:id="migration70.incompatible.other.http-raw-post-data"> <title><varname>$HTTP_RAW_POST_DATA</varname> removed</title>

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