On 29 Sep 2014, at 02:10, Stas Malyshev <smalys...@sugarcrm.com> wrote:
> Hi! > >> May be this overflow checks should be optional? >> In old ages compilers for Wirth family languages had option to enable or >> disable overflow checks. >> If option is enabled we may throw an exception, if no - work as today. >> Any user would be able to chose between compatibility and safety. > > Given that we have l and L in parameter parsing API, it is essentially > optional, but the choice is on internals developer. I'm not sure having > it as ini value would be the best idea, since behavior-modifying options > in the past proved more trouble than they're worth - one more dimension > one has to test against. This patch preserves the cap-and-not-error behaviour for L, though NaN would continue to error. If there’s a need for it, a new wrap-and-not-error character could be added, basically to match what l currently does. -- Andrea Faulds http://ajf.me/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php