When phenol is treated with CHCl3 and NaOH the product formed is salicylaldehyde, this reaction is known as Reimer-Tiemann reaction.
In this reaction chloroform first reacts with sodium hydroxide toproduce dichlorocarbene which is the intermediate of this reaction.