avoid errors when error_reporting(E_ALL) is enabled