title: Hiding Deprecated Error Message Not Working
body: <p>I was getting this error since I was using a third party application using <code>mysql_</code> prefix. </p>
  
  <blockquote>
    <p>Deprecated: The mysql extension is deprecated and will be removed in
    the future: use mysqli or PDO instead in /path/to/filename.php on line
    123</p>
  </blockquote>
  
  <p>So i tried to hide this error by editing my <code>php.ini</code> file. I have tried adding </p>
  
  <pre><code>error_reporting = E_ALL ^ E_DEPRECATED;
  </code></pre>
  
  <p>But that didn't work.</p>
  
  <p>So I tried this</p>
  
  <pre><code>error_reporting(E_ALL ^ E_DEPRECATED);
  </code></pre>
  
  <p>That too didn't work. What may be the issue? Is it with my <code>php.ini</code> file, or am I doing it wrong. Please let me know the correct method to hide this deprecated error message (or what was wrong with the methods i used).</p>