php 5.3 compat in tests, more compat checks