Document behavior of NaN/Inf to int casts

As of PHP 7.0.0 this results in int(0); formerly it has been undefined.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339291 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Christoph Michael Becker 2016-06-03 13:28:47 +00:00
parent b4c0293c1b
commit 2891a305f1

View file

@ -226,6 +226,13 @@ var_dump(round(25/7)); // float(4)
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>