Fix error on php < 5.5 in versioning listeners