address issues between php versions