Hi,
Nikita Popov wrote:
What I mean is, for example:
var_dump(~(bool)true);
echo "Done\n";
Will throw an exception without opcache, will result in no output (and no
*visible* error) with opcache. My point here is that const-operand-only
cases might be necessary to handle error cases like this.
It hasn't passed yet, but I think it's worth bringing up this RFC of
mine here: https://wiki.php.net/rfc/invalid_strings_in_arithmetic
It would require CONST-CONST to be valid for all arithmetic operations,
in order to trigger a E_NOTICE/E_WARNING at runtime for certain
(admittedly unlikely) cases.
Thanks.
--
Andrea Faulds
https://ajf.me/
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php