Singer Pete Doherty has been handed a suspended prison term for drugs and motoring offences.
Pete Doherty had a drug treatment order revoked this week
Doherty had previously admitted driving while uninsured and with no MoT while in possession of crack cocaine, heroin, ketamine and cannabis.
He was sentenced to four-months in jail - suspended for two years - at West London Magistrates' Court on Friday.
The 28-year-old was also given an 18-month supervision order and a 12-month drug rehabilitation order.
District judge Davinder Lachhar ordered that Doherty pay a £475 fine for driving without insurance or an MOT.
Leaving court to cheers from fans who had earlier packed the public gallery, Doherty said he was pleased with the outcome.
During the hearing the court heard he was arrested while driving a Jaguar in High Street, Kensington, west London in May.
Officers found a number of substances on him and in the car and Doherty later pleaded guilty to various driving and drug charges.
The judge was also told that Doherty had tested negative for drugs throughout a six-week residential drug treatment and wanted to "give himself a chance" to recover.
Passing sentence, Judge Lachhar said: "You have made strides and I hope you will continue in doing so. I would hate to see you going backwards."
Earlier this week a judge revoked the remaining six months Doherty had left to serve on a drug treatment order after advice from experts.
At that hearing Judge McIvor said Doherty had already been supervised over 18 months, adding that had been convinced the plan in place for the musician to remain drug-free was going to be followed.