# Removed functions

### `call_user_method` and `call_user_method_array`

These functions were deprecated in PHP 4.1.0 in favour of `call_user_func` and `call_user_func_array`. You may also want to consider using [variable functions](#functions.variable-functions) and/or the [`...`](#functions.variable-arg-list) operator.

### All ereg\* functions

All `ereg` functions were removed. [PCRE](#book.pcre) is a recommended alternative.

### [mcrypt](#book.mcrypt) aliases

The deprecated `mcrypt_generic_end` function has been removed in favour of `mcrypt_generic_deinit`.

Additionally, the deprecated `mcrypt_ecb`, `mcrypt_cbc`, `mcrypt_cfb` and `mcrypt_ofb` functions have been removed in favour of using `mcrypt_decrypt` with the appropriate `MCRYPT_MODE_*` constant.

### All ext/mysql functions

All [ext/mysql](#book.mysql) functions were removed. For details about choosing a different MySQL API, see [Choosing a MySQL API](#mysqlinfo.api.choosing).

### All ext/mssql functions

All `ext/mssql` functions were removed. <a href="#ref.pdo-sqlsrv" role="alternatives">PDO_SQLSRV</a><span data-wrapper="1" role="alternatives">,</span><span data-wrapper="1" role="alternatives"> </span><a href="#ref.pdo-odbc" role="alternatives">PDO_ODBC</a><span data-wrapper="1" role="alternatives">,</span><span data-wrapper="1" role="alternatives"> </span><a href="#book.sqlsrv" role="alternatives">SQLSRV</a><span data-wrapper="1" role="alternatives">,</span><span data-wrapper="1" role="alternatives"> </span><a href="#book.uodbc" role="alternatives">Unified ODBC API</a>

### [intl](#book.intl) aliases

The deprecated `datefmt_set_timezone_id` and IntlDateFormatter::setTimeZoneID aliases have been removed in favour of `datefmt_set_timezone` and IntlDateFormatter::setTimeZone, respectively.

### `set_magic_quotes_runtime`

`set_magic_quotes_runtime`, along with its alias `magic_quotes_runtime`, have been removed. They were deprecated in PHP 5.3.0, and became effectively non-functional with the removal of magic quotes in PHP 5.4.0.

### `set_socket_blocking`

The deprecated `set_socket_blocking` alias has been removed in favour of `stream_set_blocking`.

### `dl` in PHP-FPM

`dl` can no longer be used in PHP-FPM. It remains functional in the CLI and embed SAPIs.

### [GD](#book.image) Type1 functions

Support for PostScript Type1 fonts has been removed from the GD extension, resulting in the removal of the following functions:

- `imagepsbbox`

- `imagepsencodefont`

- `imagepsextendfont`

- `imagepsfreefont`

- `imagepsloadfont`

- `imagepsslantfont`

- `imagepstext`

Using TrueType fonts and their associated functions is recommended instead.