php 5.3 fix for "Can't use method return value in write context"