php5-3 compatitiblity;fixed annotation bug in attachments