Fix to php wrapper.