CAIRO — Egypt’s state news agency says former President Hosni Mubarak and his two sons will go on trial Aug. 3.

The Middle East News Agency quoted a court official on Wednesday as saying Mubarak will be tried on charges of corruption and intentionally killing protesters during the 18-day uprising that ousted him on Feb. 11.

More than 800 protesters were killed during the revolt.

On Tuesday, a government-chosen panel of physicians declared Mubarak too ill to be imprisoned while awaiting trial. The team said that Mubarak’s heart condition put him at risk of a sudden attack.

The panel reported to the country’s general prosecutor that the 83-year-old former president also was suffering from depression.

Mubarak has been in custody at a hospital in the Red Sea resort of Sharm el-Sheikh since April.

After Mubarak’s ouster, tens of thousands of protesters have held protest over the past months pressing for Mubarak trial.