Re: [RFC] Warn about invalid strings in arithmetic

From: Date: Fri, 08 Jan 2016 15:46:14 +0000
Subject: Re: [RFC] Warn about invalid strings in arithmetic
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-90355@lists.php.net to get a copy of this message
Hi François, François Laupretre wrote:
I would suggest we still accept leading and trailing blanks without E_NOTICE. That's easy to implement (leading blanks are already accepted and adding non-blank trailing char detection is trivial) and would greatly reduce BC breaks.
Leading whitespace is already accepted by zend_is_numeric_string, the problem is trailing whitespace. While that could be changed, it also affects function parameter and return type checks, so I don't know if it's within the scope of this RFC. Thanks. -- Andrea Faulds https://ajf.me/

« previous php.internals (#90355) next »