php 5.2 converted