# What to do with ext/xmlrpc?

- Thread: https://externals.io/message/103703
- Original archive: https://news-web.php.net/php.internals/103703
- Started by Christoph M. Becker on 2019-01-09T12:28:07+00:00
- Messages: 11
- RFC: Unbundle ext/xmlrpc (Implemented (PHP 8.0)) — https://externals.io/rfc/unbundle_xmlprc.md
- Reply by email to internals@lists.php.net
- 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

---

## #103703 — Christoph M. Becker — 2019-01-09T12:28:07+00:00

URL: https://externals.io/message/103703#103703

Hi!

The problem with ext/xmlrpc is that it relies on libxmlrpc-epi[1], which
looks abandoned.  Even worse, we're bundling a modified 0.51[2], while
the latest version is 0.54.1[3].  This is exacerbated by the fact that
the system library is usually build against libexpat, but the bundled
library is likely to be build against libxml2 using our compat layer.

We most recently fixed two security issues[4], but it is likely not
clear whether these may affect latest system libraries as well, and
there are more issues.

So unless a maintainer steps forward, it might be best to deprecate
and/or unbundle ext/xmlrpc.

Thoughts?

[1] <https://sourceforge.net/projects/xmlrpc-epi/>
[2]
<https://github.com/php/php-src/blob/php-7.3.1/ext/xmlrpc/libxmlrpc/xmlrpc.h#L47>
[3] <https://sourceforge.net/projects/xmlrpc-epi/files/xmlrpc-epi-base/>
[4] <https://github.com/php/php-src/blob/php-7.3.1/NEWS#L89-L90>

-- 
Christoph M. Becker

---

## #103704 — Stanislav Malyshev — 2019-01-09T18:06:52+00:00

URL: https://externals.io/message/103703#103704 · In reply to: #103703

Hi!

> So unless a maintainer steps forward, it might be best to deprecate
> and/or unbundle ext/xmlrpc.

I think we need to do ask for a maintainer, and if nobody steps up,
declare it unsupported and unbundle.

-- 
Stas Malyshev
smalyshev@gmail.com

---

## #103705 — Christoph M. Becker — 2019-01-09T18:14:20+00:00

URL: https://externals.io/message/103703#103705 · In reply to: #103704

> > […]
> 
> I think we need to do ask for a maintainer, and if nobody steps up,
> declare it unsupported and unbundle.

We still have no official “Call for Maintainership” template, and nobody
replied on <https://externals.io/message/102556#103256> so far.

-- 
Christoph M. Becker

---

## #103706 — Sara Golemon — 2019-01-09T18:34:18+00:00

URL: https://externals.io/message/103703#103706 · In reply to: #103703

On Wed, Jan 9, 2019 at 6:28 AM Christoph M. Becker <cmbecker69@gmx.de>
wrote:

> The problem with ext/xmlrpc is that it relies on libxmlrpc-epi[1], which
> looks abandoned.  Even worse, we're bundling a modified 0.51[2], while
> the latest version is 0.54.1[3].  This is exacerbated by the fact that
> the system library is usually build against libexpat, but the bundled
> library is likely to be build against libxml2 using our compat layer.
>
> We most recently fixed two security issues[4], but it is likely not
> clear whether these may affect latest system libraries as well, and
> there are more issues.
>
> So unless a maintainer steps forward, it might be best to deprecate
> and/or unbundle ext/xmlrpc.
>
> IMO, xmlrpc is one of those extensions which could trivially be
re-implemented as pure PHP code.  It would depend on ext/dom or similar for
serde, but everything else is just business logic that can be lifted out of
the runtime and probably made WAY better.  In fact, a quick google says
something in that spirit already exits:
https://packagist.org/packages/phpxmlrpc/phpxmlrpc

I don't think we need to put energy into finding maintainers for extensions
which don't need to exist.  Send it to Siberia, afaic.

-Sara

---

## #103707 — Pierre Joye — 2019-01-10T01:18:15+00:00

URL: https://externals.io/message/103703#103707 · In reply to: #103706

Hi,



> On Wed, Jan 9, 2019 at 6:28 AM Christoph M. Becker <cmbecker69@gmx.de>
> wrote:
>
> > […]
> re-implemented as pure PHP code.  It would depend on ext/dom or similar for
> serde, but everything else is just business logic that can be lifted out of
> the runtime and probably made WAY better.  In fact, a quick google says
> something in that spirit already exits:
> https://packagist.org/packages/phpxmlrpc/phpxmlrpc
>
> I don't think we need to put energy into finding maintainers for extensions
> which don't need to exist.  Send it to Siberia, afaic.
>
> You are right. Not worth the effort.
>

Also Pear xmlrpx (client and server) implements both with and without ext
xmlrpc support and seems to be maintained somehow (seeing commits in the
last months)

best,

>
>
> -Sara

---

## #103710 — Remi Collet — 2019-01-10T11:00:08+00:00

URL: https://externals.io/message/103703#103710 · In reply to: #103703

Le 09/01/2019 à 13:28, Christoph M. Becker a écrit :
> Hi!
> 
> The problem with ext/xmlrpc is that it relies on libxmlrpc-epi[1], which
> looks abandoned.  Even worse, we're bundling a modified 0.51[2], while

As for mcrypt, I think we should move it to PECL
to clearly state, this should be avoid.

ext/imap should follow the same road.

BTW, if we want to keep this extension, we need to consider the bundled
library as a fork, maintained by US (and drop support to build using the
system library, if present)

So, any new volunteer to maintain this extension, will also have to
maintain the library.


Remi

---

## #103713 — Stanislav Malyshev — 2019-01-10T18:43:36+00:00

URL: https://externals.io/message/103703#103713 · In reply to: #103710

Hi!

> ext/imap should follow the same road.
> 
> BTW, if we want to keep this extension, we need to consider the bundled
> library as a fork, maintained by US (and drop support to build using the
> system library, if present)
> 
> So, any new volunteer to maintain this extension, will also have to
> maintain the library.

This looks unlikely, so we shouldn't count on it happening. I think we
should just move them to PECL and if somebody shows up, we can always
move it back.

-- 
Stas Malyshev
smalyshev@gmail.com

---

## #106090 — Peter Kokot — 2019-06-28T15:49:31+00:00

URL: https://externals.io/message/103703#106090

>
> Hi!
>
> > […]
>
> This looks unlikely, so we shouldn't count on it happening. I think we
> should just move them to PECL and if somebody shows up, we can always
> move it back.
>
> --
> Stas Malyshev
> smalyshev@gmail.com
>
> --
> 
> 
>

Hello, sorry for bumping this one. Is the ext/xmlrpc extension also on
the list to be unbundled maybe for PHP-7.4?

-- 
Peter Kokot

---

## #106091 — Christoph M. Becker — 2019-06-28T15:57:49+00:00

URL: https://externals.io/message/103703#106091

> 
> > […]
>
> Hello, sorry for bumping this one. Is the ext/xmlrpc extension also on
> the list to be unbundled maybe for PHP-7.4?

AFAIK, it isn't.  Sorry for not having pursued this.

--
Christoph M. Becker

---

## #106112 — Peter Kokot — 2019-06-29T16:31:13+00:00

URL: https://externals.io/message/103703#106112

>
> 
>
> > […]
>
> AFAIK, it isn't.  Sorry for not having pursued this.
>
> --
> Christoph M. Becker

Then I can create an RFC to unbundle it from the core and move it
together with the libxmlrpc library fork into PECL. Having
unmaintained extensions in the core and marked as experimental for the
last 18 years is not good I think. Is there enough time to do all this
until July 22nd (7.4 feature freeze)?

-- 
Peter Kokot

---

## #106124 — Christoph M. Becker — 2019-07-01T15:15:36+00:00

URL: https://externals.io/message/103703#106124

> 
> > […]
>
> Then I can create an RFC to unbundle it from the core and move it
> together with the libxmlrpc library fork into PECL. Having
> unmaintained extensions in the core and marked as experimental for the
> last 18 years is not good I think. Is there enough time to do all this
> until July 22nd (7.4 feature freeze)?

I think it's too late to start an RFC targeting PHP 7.4, since there is
a minimum of two weeks for discussion and two weeks for voting.

--
Christoph M. Becker
