Fixes warnings due to diffs in php 5.4 and 5.3