The purpose of this study is to assess the efficacy, safety and tolerability of AZD4547 compared with paclitaxel in patients with advanced gastric or lower-oesophageal cancer whose tumours are found to have FGFR2 polysomy or gene amplification.