Fix warnings on PHP<5.4