index php 5.4 to 5.3 conversion