Refs #1070 - PHP 5.2 compatible