php52 compatibility