Believe me, I am not trying to diss you, it's just we need to get the right info out to the masses, rather then them editing files when it is not necessary.
You do not need to do the edits you are showing there. All you need to do is add the define('SKIP_DS_ERRORS', true); line to the includes/config.php file. This turns off the extra error reporting in php 5.3 & 5.4 (for strict & deprecated warnings), but will allow other important errors to show. That is for anything below 4.2.3