add support to php 5.4