Universal backend: improve portability to versions of PHP prior to 5.3.0