General Information

User's Guide

Version 11.0

Chapters

1 Deprecations

1.1  Introduction

This document aim to list all deprecated functionality in Erlang/OTP. It was introduced as of OTP 22, and have not yet been updated with all old deprecations. Deprecations made in other parts of the documentation are of course still valid. For more information regarding the strategy regarding deprecations see the documentation of Support, Compatibility, Deprecations, and Removal.

1.2  OTP 23

Crypto Old API

The Old API is now deprecated and has also been scheduled for removal.

For replacement functions see the New API.

http_uri

Since OTP 21 the recommended module to handle URIs is uri_string. The module http_uri does not provide a implementation that satisfies the RFC.

pg2

As of OTP 23, a new process group implementation pg is introduced. pg is similar to pg2, but with much better scalability properties. The API and behaviour is however not compatible.

pg2 is now deprecated and has also been scheduled for removal in OTP 24.

Distributed Disk Logs

As of OTP 23, the distributed disk_log feature has been deprecated and it has also been scheduled for removal in OTP 24.

1.3  OTP 22

VxWorks Support

Some parts of OTP has had limited VxWorks support, such as for example erl_interface. This support is now deprecated and has also been scheduled for removal.

Legacy parts of erl_interface

The old legacy erl_interface library (functions with prefix erl_) is deprecated as of OTP 22. These parts of erl_interface has been informally deprecated for a very long time. You typically want to replace the usage of the erl_interface library with the use of the ei library which also is part of the erl_interface application. The old legacy erl_interface library has also been scheduled for removal.

System Events

The format of "System Events" as defined in the man page for sys has been clarified and cleaned up. Due to this, code that relied on the internal badly documented previous (before this change) format of OTP's "System Events", needs to be changed.

In the wake of this the function sys:get_debug/3 that returns data with undocumented and internal format (and therefore is practically useless) has been deprecated, and a new function sys:get_log/1 has been added, that hopefully does what the deprecated function was intended for.

1.4  OTP 19

SSL/TLS

For security reasons SSL-3.0 is no longer supported by default, but can be configured.

1.5  OTP 18

erlang:now()

New time functionality and a new time API was introduced. For more information see the Time and Time Correction chapter in the ERTS User's guide and specifically the Dos and Donts section on how to replace usage of erlang:now().

httpd_conf module

API functions in the module called httpd_conf was deprecated in favour of standard modules such as lists, strings, fillib and erlang.

1.6  OTP 12

inets - httpd Apache config files

New config file format, instead of Apache compatible, is introduced.