Syntax updates for php 5.3