added syntax support for php5.4