# Errors in Extensions

> Section in “New and Extended Functionality › Error Handling” of the book [PHP 7 Explained](https://php7explained.com/) by Sebastian Bergmann and Stefan Priebsch, published by thePHP.cc. The book covers PHP 7.0 to 7.4 and was last updated in November 2020. HTML version: <https://php7explained.com/new-and-extended-functionality/error-handling/errors-in-extensions/>

As described above, with PHP 7, fatal and recoverable errors in the engine where changed to instead throw an instance of `Error`. However, this change was only made in the engine itself, extensions were not yet updated to follow this new mechanism. Since PHP 7.1 the following core extensions – which are all controlled by the PHP project – got also updated to throw errors instead of emitting fatal or recoverable errors:

- `date`
- `dom`
- `simplexml`
- `imap`
- `lsap`
- `mbstring`
- `mcrypt`
- `mysqli`
- `reflection`
- `session`
- `standard`
- `spl`
- `tidy`
- `wddx`
- `xmlrpc`
- `zip`

---

Previous: [CompileError](https://php7explained.com/new-and-extended-functionality/error-handling/compileerror/index.html.md) | Next: [Constructors of Internal Classes](https://php7explained.com/new-and-extended-functionality/error-handling/constructors-of-internal-classes/index.html.md)
