migration to php 5.4