Port openx to php54