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

From: Date: Fri, 13 Jun 2014 17:57:04 +0000
Subject: svn: /phpdoc/en/trunk/language/types/ integer.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-12537@lists.php.net to get a copy of this message
aharvey Fri, 13 Jun 2014 17:57:04 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=333785 Log: Clarify the integer situation on 64 bit Windows. 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 2014-06-13 16:25:05 UTC (rev 333784) +++ phpdoc/en/trunk/language/types/integer.xml 2014-06-13 17:57:04 UTC (rev 333785) @@ -91,11 +91,11 @@ <para> The size of an <type>integer</type> is platform-dependent, although a maximum value of about two billion is the usual value (that's 32 bits signed). - 64-bit platforms usually have a maximum value of about 9E18. PHP - does not support unsigned <type>integer</type>s. <type>Integer</type> size - can be determined using the constant <constant>PHP_INT_SIZE</constant>, and - maximum value using the constant <constant>PHP_INT_MAX</constant> since - PHP 4.4.0 and PHP 5.0.5. + 64-bit platforms usually have a maximum value of about 9E18, except for + Windows, which is always 32 bit. PHP does not support unsigned + <type>integer</type>s. <type>Integer</type> size can be determined using + the constant <constant>PHP_INT_SIZE</constant>, and maximum value using the + constant <constant>PHP_INT_MAX</constant> since PHP 4.4.0 and PHP 5.0.5. </para> <warning> @@ -229,10 +229,10 @@ <para> If the float is beyond the boundaries of <type>integer</type> (usually <literal>+/- 2.15e+9 = 2^31</literal> on 32-bit platforms and - <literal>+/- 9.22e+18 = 2^63</literal> on 64-bit platforms), the result is - undefined, since the <type>float</type> doesn't have enough precision to - give an exact <type>integer</type> result. No warning, not even a notice - will be issued when this happens! + <literal>+/- 9.22e+18 = 2^63</literal> on 64-bit platforms other than + Windows), the result is undefined, since the <type>float</type> doesn't + have enough precision to give an exact <type>integer</type> result. No + warning, not even a notice will be issued when this happens! </para> <warning>

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