adjusted syntax to php5.3;
fixes #2