Left for a long period of time, petrol can "go off" as the combustive elements eventually evaporate away and the rest can turn to a very mild acid, although the engine should still run, even if it is rough.
Diesel is different, however (in reference to the chaps 26 year old landy).
To be on the safe side I would drain the lot, disposing of it ecofriendly at a recycling plant, giving the engine a simple service (which should be done on a yearly basis anyway) and refill.