suss out phpenv state

Change-Id: Iee24729eac7ce67fee19ae1c3414d9cfde94f2e6