Use a php wrapper instead of a shell wrapper.