Adapt php 5.5