Fix syntax error in PHP5.3; can't operate directly on new objects