Babyshambles frontman Pete Doherty is one offense away from a jail term after a West London court gave him a four-month custodial sentence suspended for two years.
At an October 26 hearing, District Judge Davinder Lachhar also reportedly gave him an 18-month supervision order, a 12-month drug rehabilitation order, and fined him £400 for driving without insurance and £75 for not having a MOT certificate.
At an earlier hearing, Doherty had pleaded guilty to possession of crack cocaine, heroin, ketamine and cannabis, as well as to a number of driving offenses.
He was arrested while driving a Jaguar in High Street Kensington, west London, at about 10 p.m. May 5.
Doherty had been warned that if he did not kick his habit he could be sent to prison, but earlier this month he was granted extra time for an after-care drug rehabilitation plan.
Judge Lachhar agreed to an adjournment on hearing that Doherty had tested negative for drugs throughout a six-week residential drugs treatment programme and wanted to "give himself a chance" to recover.
Over the past year, Doherty has made several appearances in court over drug offenses. In April, he was praised by a judge in east London for "more than cooperating" in the struggle to beat his addiction.