php 5.3 to 5.4 migration fixes.