added PHP 5.6 support