Snowdonia in Wales doubled as the Khyber Pass with the rest of filming done at Pinewood Studios. When the film was released, an old soldier who had served in the Khyber Pass area wrote to the film studio, informing them that he recognized the area at once.
Lady Ruff Diamond's line, "Oh dear! I seem to have got a little plastered," was an ad lib by Joan Sims which was kept in. Julian Holloway's (Major Shorthouse) reaction to the line was genuine.
As the Burpa cannons fire on the Residency, Bernard Bresslaw (Bungdit Din) jokes "that'll teach them to ban turbans on the buses". A reference to the recently resolved strikes by Sikh bus drivers in Wolverhampton and Manchester about the right to wear a turban instead of a cap as part of the uniform. Although, in a 2020 re-run on itv4, this line was removed, for no apparent reason.
There is an in-joke to the Rank Organisation: when someone bangs a gong (the trademark symbol of Rank), the Khasi describes it as "rank stupidity".
Joan Sims complained to the Director Gerald Thomas about Kenneth Williams's behaviour while filming a love scene. Williams broke wind violently during the scene, which took Sims completely by surprise.