svn: /phpdoc/en/trunk/language/ operators.xml
| From: | Richard Quadling | Date: | Wed, 13 Jan 2010 13:25:31 +0000 |
| Subject: | svn: /phpdoc/en/trunk/language/ operators.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-5841@lists.php.net to get a copy of this message | ||
rquadling Wed, 13 Jan 2010 13:25:31 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=293501
Log:
Fix#50738 - Type juggling is excluded from identical and not identical comparisons.
"If you compare an integer with a string, excluding the identical (===) and not identical
(!===) operators, the string is ..."
Bug: http://bugs.php.net/50738 (Open) Unclear documentation
in numerical string comparison
Changed paths:
U phpdoc/en/trunk/language/operators.xml
Modified: phpdoc/en/trunk/language/operators.xml
===================================================================
--- phpdoc/en/trunk/language/operators.xml 2010-01-13 12:17:24 UTC (rev 293500)
+++ phpdoc/en/trunk/language/operators.xml 2010-01-13 13:25:31 UTC (rev 293501)
@@ -1096,7 +1096,8 @@
</tgroup>
</table>
<para>
- If you compare an integer with a string, the string is
+ If you compare an integer with a string, excluding the identical (===) and
+ not identical (!===) operators, the string is
<link linkend="language.types.string.conversion">converted to a
number</link>.
If you compare two numerical strings, they are compared as integers. These
rules also apply to the