[PHP-DEV] Silent Types

2019-09-03 Thread Fwentish Aelondes
Hello internals, Zeev's idea to bring peace to the galaxy seems like a good idea, but impossible to implement in practice. But it got me thinking about how one might introduce static typing into a dynamically typed language w/out breaking BC. And then I had this crazy idea: //int $i = 0; //str

Re: [PHP-DEV] Don't silence fatal errors

2018-11-28 Thread Fwentish Aelondes
Breaking BC might be unnecessary if instead of changing the default behavior of @, you add an additional flag to error_reporting that enables the new behavior, something like E_UNSILENCE_FATAL. Then developers would only need to switch a flag in php.ini to get the old behavior back, instead of re-w