php 5.4 compat fix
Merge pull request #219 from will123195/master

fix php 5.4 warning