Get rid of warnings with PHP 5.4.