Gallic acid in its free form is capable of ionizing to carboxylate and its effectiveness as an inhibitor of light-induced degradation can therefore be dependent on the pH of the system.
Lower gallate esters can demonstrate a relatively constant effectiveness over a range of pHs.