Fixed php debug code