Fixed old php

Fixed the old php so that it compiles and fetches data correctly under
2.0