News for hackers. Stuff that matters.
Re:We will try to stop fixing bugs in PHP by masklinn on Friday June 22, 2012 @09:00AM (#4146590)
> Not for user-provided input.

Not what for user-provided input? The source of a string does not matter to this rule of PHP: a string used in numeric context will be parsed and converted, if it can not be parsed as a number its numeric value will be 0. That's it. That's how the language defines strings in numeric contexts.

> That's just a dumb thing to do in any language.

Sure, you won't get any argument from me on that, but that remains how PHP works and has always worked.

There are no comments on this comment yet.