Its illegal as she is no more his wife, but I have doubt if he will not report it to the immigration, she might be staying until the expiry of her visa and sure her husband is not going to renew her visa again.