Applied PHP 5.5 fix.