Remove the strict warnings from being shown I have a site using Drupal 6; after upgrading PHP to 5.4 , some strict warning appear.

I set error_reporoting in settings.php with the following code, but I still see the E_STRICT warnings. 

error_reporting(E_ALL &amp; ~E_NOTICE &amp; ~E_STRICT &amp; ~E_WARNING);
ini_set('display_errors', TRUE);


Why do I still see them? What can I do to avoid seeing them?
From the link : 


  If you're going to hack core, a much better solution is to properly
  fix the error handler. Add this line to the top of the
  drupal_error_handler function in includes/common.inc:
  
  if ($errno == E_STRICT) { return; }