note 63244 added to language.types.string
| From: | justin at aers dot ne dot spam dot pas dot ca | Date: | Thu, 16 Mar 2006 23:57:11 +0000 |
| Subject: | note 63244 added to language.types.string | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-105954@lists.php.net to get a copy of this message | ||
RE: www.feisar.de
The example posted in the note, as well as the follow up...
(posted here for reference)
<?php
$x1 = '111111111111111111';
$x2 = '111111111111111112';
echo ($x1 == $x2) ? "true\n" : "false\n";
?>
...now returns false as of php 4.4.x and beyond. This may have been a bug in 4.3.x, as it *does*
return true in all the v. 4.3.x machines we tested it on.
This is not to say that it would no longer be smart to do a strict comparison with ===, but the
example above seems to now function as one would expect.
----
Server IP: 66.207.199.35
Probable Submitter: 24.68.128.78
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/language.types.string.php
Edit -- http://master.php.net/note/edit/63244
Del: integrated -- http://master.php.net/note/delete/63244/integrated
Del: useless -- http://master.php.net/note/delete/63244/useless
Del: bad code -- http://master.php.net/note/delete/63244/bad+code
Del: spam -- http://master.php.net/note/delete/63244/spam
Del: non-english -- http://master.php.net/note/delete/63244/non-english
Del: in docs -- http://master.php.net/note/delete/63244/in+docs
Del: other reasons-- http://master.php.net/note/delete/63244
Reject -- http://master.php.net/note/reject/63244
Search -- http://master.php.net/manage/user-notes.php