PHP 5.4 reduce error of Create default object.