China and the Philippines have long clashed over territorial disputes in the South China Sea.