php 5.4 notice fixes
Merge pull request #954 from deepak-srivastava/4.3

php 5.4 notice fixes