Heating the ester under reflux with dilute alkali (eg, sodium hydroxide) is an irreversible reaction as the ester is fully hydrolysed, resulting in the formation of a sodium carboxylate salt which needs further acidification to turn into a carboxylic acid.