php version 5.4 compatibilty

php version 5.4 compatibilty