Re: Where is the '@' part handled in PHP?

From: Date: Wed, 07 May 2014 00:51:48 +0000
Subject: Re: Where is the '@' part handled in PHP?
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-73989@lists.php.net to get a copy of this message
No-no, my question was addressed to the community. Why @ silences E_ERROR+, not E_WARNING+, what was the holy reason for that (historically). On Wednesday, May 7, 2014, Aaron Lewis <the.warl0ck.1989@gmail.com> wrote: > Hi Dmitry, > > No, I'm not changing anything, just trying to understand the code > > Don't worry about that ;-) > > > On Wed, May 7, 2014 at 5:11 AM, Dmitry Koterov > <dmitry.koterov@gmail.com<javascript:;>> > wrote: > > > >> > I'm trying to find out how the '@func' part overrides the > >> > 'EG(error_reporting)' settings > >> > > >> > Anyone know where I should be looking at? > >> > > >> I think you should check out ZEND_BEGIN_SILENCE and ZEND_END_SILENCE > > > > > > BTW what was an initial reason for @ operator to silence non-recoverable > > errors as well? Why not silence only E_WARNING+ ? I don't propose to > change > > this, just wondering. > > > > -- > Best Regards, > Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/ > Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33 >

« previous php.internals (#73989) next »