Improved exception code for PHP.