fixed PHP 5.4 string conversion error
added PHP 5.5