Fix object context for pre-PHP5.4