cvs: phpdoc /en/language/types string.xml

From: Date: Tue, 09 Jun 2009 09:31:40 +0000
Subject: cvs: phpdoc /en/language/types string.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-4127@lists.php.net to get a copy of this message
rquadling Tue Jun 9 09:31:40 2009 UTC Modified files: /phpdoc/en/language/types string.xml Log: Refined string to int/float rules. #48496 http://cvs.php.net/viewvc.cgi/phpdoc/en/language/types/string.xml?r1=1.19&r2=1.20&diff_format=u Index: phpdoc/en/language/types/string.xml diff -u phpdoc/en/language/types/string.xml:1.19 phpdoc/en/language/types/string.xml:1.20 --- phpdoc/en/language/types/string.xml:1.19 Tue Mar 17 22:34:28 2009 +++ phpdoc/en/language/types/string.xml Tue Jun 9 09:31:40 2009 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.19 $ --> +<!-- $Revision: 1.20 $ --> <sect1 xml:id="language.types.string"> <title>Strings</title> @@ -797,9 +797,11 @@ </simpara> <simpara> - The <type>string</type> will be evaluated as a <type>float</type> if it - contains any of the characters '.', 'e', or 'E'. Otherwise, it will be - evaluated as an <type>integer</type>. + If the <type>string</type> does not contain any of the characters '.', 'e', + or 'E' and implied numeric value fits into integer type limits (as defined by + <constant>PHP_INT_MAX</constant>), the <type>string</type> will be evaluated + as an <type>integer</type>. In all other cases it will be evaluated as a + <type>float</type>. </simpara> <para>

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