[PHP-DEV] Re: Error warning change idea

2018-11-29 Thread Christoph M. Becker
On 29.11.2018 at 12:24, Dan Ackroyd wrote: > On Thu, 29 Nov 2018 at 09:59, Michał Brzuchalski > wrote: >> >> I don't really know if it fits here but some weeks ago I was thinking about >> annotations with "@" prefix >> >> >> Which might work as supress all errors except fatal errors. >> >>

[PHP-DEV] Error warning change idea. Was: Don't silence fatal errors

2018-11-29 Thread Dan Ackroyd
On Thu, 29 Nov 2018 at 09:59, Michał Brzuchalski wrote: > > I don't really know if it fits here but some weeks ago I was thinking about > annotations with "@" prefix > > > Which might work as supress all errors except fatal errors. > > Does that sound like a solution at all? > The developer th

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

2018-11-29 Thread Michał Brzuchalski
I don't really know if it fits here but some weeks ago I was thinking about annotations with "@" prefix and was considering to propose to handle @ (silence operator) similar way as annotations, like: $value = @ fopen('test.txt','rb+'); might be equivalent to: $value = @SupressError(E_ALL) fopen(