php<5.4 throws error when preg_match receives 2 args