Wittig reaction in presence of carboxylic acids

The following reaction came in a recent test:

According to this reaction, the acidic hydrogen would protonate the ylide, and the standard wittig reaction would not take place. This source agrees with the same results.

However, according to El-Batta et al.1, the Wittig reaction in water can take place even in the presence of acidic groups, such as carboxylic acids and phenols:

It is also interesting that the Wittig reaction in water works well with substrates having acidic unprotected functional groups present; hence the presence of a carboxylic acid group (vide infra) or phenolic groups, such as p-hydroxybenzaldehyde, gives the corresponding cinnamate product 16 in 92% after heating the reaction for 1 h at 90 °C (entry 16). In sharp contrast, the same reaction in refluxing CH2Cl2(4 h) has been reported to provide only 8% of 16

Which one of these references is correct? Does the Wittig reaction really proceed in the presence of acidic groups? I'm looking for a good reference, along with an explanation on what occurs when a carboxylic acid group is present on the substrate.

References:

1. El-Batta, Amer, et al. “Wittig Reactions in Water Media Employing Stabilized Ylides with Aldehydes. Synthesis of α,β-Unsaturated Esters from Mixing Aldehydes, α-Bromoesters, and $$\ce{Ph3P}$$ in Aqueous $$\ce{NaHCO3}$$.” The Journal of Organic Chemistry, vol. 72, no. 14, July 2007, pp. 5244–59. doi:10.1021/jo070665k.
• Here exactly 1 equivalent of the ylide is given so I guess that matters. – booma vijay Sep 21 '20 at 9:14
• By the principle of least motion, one would expect the deprotonation to occur faster than the Wittig reaction, as the former requires less nuclear rearrangement, especially considering the fact that you have a single equivalent of the ylide, so it would be anticipated theoretically that the deprotonation occurs preferentially in this case – Yusuf Hasan Sep 21 '20 at 9:24
• You are comparing an unstabilized ylid, Ph3P=CH2, with a stabilized ylid, Ph3P=CHCO2Et. The latter can be stored as a solid; the former can't. The former is protonated by RCO2H. The latter, if protonated, is easily deprotonated by a weak base. – user55119 Sep 21 '20 at 13:50