How to fix deprecated ereg when upgrading from PHP 5.2.x to 5.3.x the easy way

This is how you can fix deprecated ereg when upgrading from PHP 5.2.x to 5.3.x the easy way. In includes/common.inc in the function error_handler() you can change for what error types should be printed or not bu making the same thing that has been done in later versions of Drupal 6.

<?php

 
//if ($errno & (E_ALL ^ E_NOTICE)) {
 
if ($errno & (E_ALL &  ~E_NOTICE & ~E_DEPRECATED)) {

?>