Unbundle ext/recode View as Markdown

Implemented (PHP 7.4)
Authors
Christoph M. Becker, cmb@php.net
Date
2019-06-14
Version
1.0
Source
wiki.php.net/rfc/unbundle_recode

Vote

Unbundle ext/recode closed
Yes
38
No
0
38 voters
ashnazg Yes 2019-07-03 15:05
bishop Yes 2019-07-10 02:52
bwoebi Yes 2019-07-03 11:59
carusogabriel Yes 2019-07-02 12:21
cmb Yes 2019-06-28 13:57
daverandom Yes 2019-07-03 11:02
derick Yes 2019-06-28 15:23
emir Yes 2019-06-30 08:28
galvao Yes 2019-06-29 15:34
gasolwu Yes 2019-06-29 17:08
girgias Yes 2019-06-28 14:09
jasny Yes 2019-07-02 14:56
jhdxr Yes 2019-06-29 16:00
kalle Yes 2019-06-28 14:12
kinncj Yes 2019-07-08 02:34
krakjoe Yes 2019-06-29 06:21
mbeccati Yes 2019-07-08 11:48
mike Yes 2019-07-05 09:44
nikic Yes 2019-06-28 19:12
ocramius Yes 2019-07-05 08:43
peehaa Yes 2019-06-28 19:15
petk Yes 2019-06-28 13:57
pmjones Yes 2019-06-28 14:48
ramsey Yes 2019-06-28 16:18
reywob Yes 2019-06-28 16:12
rjhdby Yes 2019-07-09 18:54
rtheunissen Yes 2019-07-08 23:31
salathe Yes 2019-07-03 12:15
santiagolizardo Yes 2019-07-09 22:22
sebastian Yes 2019-06-28 14:40
sergey Yes 2019-07-03 10:52
stas Yes 2019-06-29 00:55
subjective Yes 2019-07-08 10:39
svpernova09 Yes 2019-07-09 13:38
thorstenr Yes 2019-07-11 08:25
trowski Yes 2019-07-09 19:21
wjx Yes 2019-07-08 05:35
yunosh Yes 2019-07-01 08:41

Discussions on the mailing list

[RFC] Unbundle ext/recode
by Christoph M. Becker · 3 messages
[RFC][VOTE] Unbundle ext/recode
by Christoph M. Becker · 1 message
[RFC] Unbundle ext/recode has been accepted
by Christoph M. Becker · 2 messages

RFC text

Copied from wiki.php.net, last synchronized Oct 13, 2026 11:51 UTC

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 which is decomissioned and had its latest release on 22 January 2001.

Even worse, at least according to our documentation 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 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 to PHP-7.4 and up
  2. Documentation updated

References