> > I agree with Rasmus (and others) on this one > (http://www.mail-archive.com/internals@lists.php.net/msg57949.html), type > numeric conversion on strings on both sides should only happen if both > strings can be represented as numbers without losing data/precision. > if one or both of the two sides can't be converted to numeric without data > loss, then we should compare them as strings. > the patch from Cataphract (attached at > https://bugs.php.net/bug.php?id=54547) implements this behavior >
+1 ... that patch has been lying on a dusty shelf for more than a year =p -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php