FAQ
Hi,

I'm trying to find out how the '@func' part overrides the
'EG(error_reporting)' settings

Anyone know where I should be looking at?

Thanks!

--
Best Regards,
Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/
Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33

Search Discussions

  • Ferenc Kovacs at May 5, 2014 at 3:06 pm

    On Mon, May 5, 2014 at 12:24 PM, Aaron Lewis wrote:

    Hi,

    I'm trying to find out how the '@func' part overrides the
    'EG(error_reporting)' settings

    Anyone know where I should be looking at?

    Thanks!
    I think you should check out ZEND_BEGIN_SILENCE and ZEND_END_SILENCE
    http://lxr.php.net/xref/PHP_5_6/Zend/zend_vm_def.h#4824

    --
    Ferenc Kovács
    @Tyr43l - http://tyrael.hu
  • Dmitry Koterov at May 6, 2014 at 9:11 pm

    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.
  • Aaron Lewis at May 6, 2014 at 11:27 pm
    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 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
  • Dmitry Koterov at May 7, 2014 at 12:51 am
    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 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 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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-internals @
categoriesphp
postedMay 5, '14 at 10:25a
activeMay 7, '14 at 12:51a
posts5
users3
websitephp.net

People

Translate

site design / logo © 2022 Grokbase