fix error in php-5.5 and