note 63244 deleted from language.types.string by colder

From: Date: Tue, 17 Oct 2006 18:30:13 +0000
Subject: note 63244 deleted from language.types.string by colder
References: 1  Groups: php.notes php.notes 
Request: Send a blank email to php-notes+get-118651@lists.php.net to get a copy of this message
Note Submitter: justin at aers dot ne dot spam dot pas dot ca ---- 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.

« previous php.notes (#118651) next »