Governments and businesses around the world scrambled to prevent hackers from exploiting a vulnerability in PHP, a popular programming language.