Re: Remove useless opcode handlers

From: Date: Tue, 15 Mar 2016 00:32:43 +0000
Subject: Re: Remove useless opcode handlers
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-91664@lists.php.net to get a copy of this message
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/

« previous php.internals (#91664) next »