[gh-3] Use tmp var for php 5.3 compatibility