Warner Bros Pictures, Legendary Pictures and director Todd Phillips have confirmed that Mel Gibson will not be undertaking a cameo role in “Hangover 2” alongside Bradley Cooper, Zach Galifianakis and Ed Helms.

“I thought Mel would have been great in the movie and I had the full backing of [WB president] Jeff Robinov and his team,” said Phillips. “But I realize filmmaking is a collaborative effort, and this decision ultimately did not have the full support of my entire cast and crew."

According to rumors Zach Galifianakis was upset for the decision to cast Gibson. He explained to Comedy Death-Ray podcast that in the past he has turned down several projects on moral grounds.

He added “A movie you're acting in, you don't have a lot of control — you just show up and vomit your lines out. I'm not the boss. I'm in a deep protest right now with a movie I'm working on, up in arms about something. But I can't get the guys to [listen] ... I'm not making any leeway."

Gibson is still being investigated by the Los Angeles police on suspicion of domestic abuse and his ex-girlfriend and mother of his baby daughter, Oksana Grigorieva. Four tapes of Gibson speaking were released. In the tapes he can be heard having an argument with Grigorieva using racist and violent language. His career has suffered since their release.

“Hangover 2” will be release in May 2011 and seen the group travelling to Thailand.