Re: [off] PHP: a fractal of bad design

From: Date: Mon, 07 May 2012 09:33:08 +0000
Subject: Re: [off] PHP: a fractal of bad design
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-60506@lists.php.net to get a copy of this message
> > 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

« previous php.internals (#60506) next »