On Sun, May 24, 2020 at 7:29 PM Rowan Tommins <rowan.coll...@gmail.com> wrote:
> In my mind error_reporting should make absolutely no difference. As you > say, this option would be for people who don't want to interact with the > current error system in any way, and that includes its global > configuration state. > My main concern for this was that it would make implementation more difficult - however it turned out to be fairly straightforward. One note on this - currently declare() statements do not allow constants or expressions in them. I had to patch zend_compile.c to allow this, so this will affect other declare statements as well (for example, declare(ticks=E_ALL - 37) will be valid). Unknown constants or incorrect types (ex: declare(error_exception=[]), declare(error_exception=E_ALL - FOO_BAR)) will fail here.