It doesn't actually change the INI file. It changes the error_reporting setting in memory while that one function is executing and when it finishes it changes it back.
Also, I wouldn't be worried about one lookup. I'm pretty sure everything in PHP is in a hash map.