# RFC: Unbundle ext/recode

- Status: Implemented (PHP 7.4)
- Authors: Christoph M. Becker, cmb@php.net
- Date: 2019-06-14
- Version: 1.0
- Original: https://wiki.php.net/rfc/unbundle_recode
- Page: https://externals.io/rfc/unbundle_recode
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

## Votes

### Unbundle ext/recode (closed)

Yes: 38 · No: 0

Voters: ashnazg (Yes), bishop (Yes), bwoebi (Yes), carusogabriel (Yes), cmb (Yes), daverandom (Yes), derick (Yes), emir (Yes), galvao (Yes), gasolwu (Yes), girgias (Yes), jasny (Yes), jhdxr (Yes), kalle (Yes), kinncj (Yes), krakjoe (Yes), mbeccati (Yes), mike (Yes), nikic (Yes), ocramius (Yes), peehaa (Yes), petk (Yes), pmjones (Yes), ramsey (Yes), reywob (Yes), rjhdby (Yes), rtheunissen (Yes), salathe (Yes), santiagolizardo (Yes), sebastian (Yes), sergey (Yes), stas (Yes), subjective (Yes), svpernova09 (Yes), thorstenr (Yes), trowski (Yes), wjx (Yes), yunosh (Yes)

## Discussions on the mailing list

- [\[RFC\] Unbundle ext/recode](https://externals.io/message/105922.md) — started on 2019-06-14, 3 messages
- [\[RFC\]\[VOTE\] Unbundle ext/recode](https://externals.io/message/106088.md) — started on 2019-06-28, 1 messages
- [\[RFC\] Unbundle ext/recode has been accepted](https://externals.io/message/106210.md) — started on 2019-07-12, 2 messages

---

## Introduction

ext/recode facilitates conversion between different character sets/encodings. This functionality is basically already supported by ext/iconv and ext/mbstring. While the two latter extensions rely on POSIX iconv support or libiconv, and the bundled libmbfl, respectively, ext/recode relies on the [Recode library](https://directory.fsf.org/wiki/Recode) which is **decomissioned** and had its latest release on 22 January 2001.

Even worse, at least according to [our documentation](https://www.php.net/manual/en/recode.requirements.php) the latest version (3.6.0) has unresolved issues, so we recommend using Recode 3.5, which is unlikely to be still provided by contemporary OS distributions. Furthermore, the [PHP manual](https://www.php.net/manual/en/recode.installation.php) mentions collisions with some other extensions, which appear to be still unresolved.

## Proposal

For the reasons mentionend in the introduction section, I propose to unbundle ext/recode.

## Backward Incompatible Changes

Obviously, code using ext/recode would either have to be ported to use ext/iconv or ext/mbstring instead, or such code

## Proposed PHP Version(s)

The unbundling should be done for PHP 7.4.

## Vote

Voting starts on 2019-06-28 and ends on 2019-07-12.

**Vote: Unbundle ext/recode** — Yes: 38 · No: 0 (closed)

## Patches and Tests

No patch required.

## Implementation

1. [applied](http://git.php.net/?p=php-src.git;a=commit;h=58b607c9ea6cdc631a61b18de0cf5c0b3c96c074) to PHP-7.4 and up
2. Documentation [updated](http://svn.php.net/viewvc?view=revision&revision=347728)

## References

- [Initial RFC Discussion](https://externals.io/message/105922)
