disabling deprecated errors
<p>I want to enable deprecated errors globally but disable them for a specific piece of third-party code, which I don't have the time to fix.
So, I have this in php.ini:
    <code>error_reporting = E_ALL &amp; ~E_NOTICE | E_DEPRECATED</code></p>

<p>and this right before the line where I want to disable the warnings
    <code>error_reporting(E_ALL &amp; ~E_NOTICE &amp; ~E_DEPRECATED);</code></p>

<p>However, it does not work, I'm still getting the warnings for that particular line. If I disable them globally in php.ini it works. I'm using PHP 5.3.10. Any ideas what might be wrong?</p>
