Fixed some syntax issues with php 5.3 (which is what one.com is running).
Also changed the php requirement to match 5.3.28.