Rather than issuing its second-quarter results in the customary fashion after the market closed, Microsoft rushed out the news Thursday morning that it will lay off up to 5,000 of its 94,000 employees over the next 18 months, including 1,400 people Thursday. The layoffs span across research, sales, finance and technology roles, the company said.