svn: /phpdoc/en/trunk/language/types/ integer.xml

From: Date: Fri, 03 Jun 2016 13:28:47 +0000
Subject: svn: /phpdoc/en/trunk/language/types/ integer.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-14168@lists.php.net to get a copy of this message
cmb Fri, 03 Jun 2016 13:28:47 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=339291 Log: Document behavior of NaN/Inf to int casts As of PHP 7.0.0 this results in int(0); formerly it has been undefined. Changed paths: U phpdoc/en/trunk/language/types/integer.xml Modified: phpdoc/en/trunk/language/types/integer.xml =================================================================== --- phpdoc/en/trunk/language/types/integer.xml 2016-06-03 13:22:50 UTC (rev 339290) +++ phpdoc/en/trunk/language/types/integer.xml 2016-06-03 13:28:47 UTC (rev 339291) @@ -226,6 +226,13 @@ have enough precision to give an exact <type>integer</type> result. No warning, not even a notice will be issued when this happens! </para> + + <note> + <para> + Instead of being undefined and platform-dependent, NaN and Infinity will + always be zero when cast to integer as of PHP 7.0.0. + </para> + </note> <warning> <para>

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