PHP v5.3 & v5.4 compatibility