Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PHP 7.2] xmlrpc extension #23

Closed
vfalies opened this issue Jan 8, 2018 · 6 comments
Closed

[PHP 7.2] xmlrpc extension #23

vfalies opened this issue Jan 8, 2018 · 6 comments
Labels

Comments

@vfalies
Copy link

vfalies commented Jan 8, 2018

Hello,

When I use extension XML-RPC extension in dockerfile, I have the following message :

PHP Warning: PHP Startup: Unable to load dynamic library 'xmlrpc' (tried: /usr/lib/php7/modules/xmlrpc (Error loading shared library /usr/lib/php7/modules/xmlrpc: No such file or directory), /usr/lib/php7/modules/xmlrpc.so (Error relocating /usr/lib/php7/modules/xmlrpc.so: ecalloc: symbol not found)) in Unknown on line 0

Dockerfile :

FROM alpine:3.7

ADD https://php.codecasts.rocks/php-alpine.rsa.pub /etc/apk/keys/php-alpine.rsa.pub

RUN apk --update add ca-certificates\
    && echo "@edge-main http://dl-cdn.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories \
    && echo "@edge-community http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
    && echo "@cast https://php.codecasts.rocks/v3.7/php-7.2" >> /etc/apk/repositories \
    && apk add -U \
        tini \
        php7@cast \
        php7-fpm@cast \
        php7-tidy@cast \
        php7-xml@cast \
        php7-xmlreader@cast \
        php7-xmlrpc@cast \
    && ln -s /usr/bin/php7 /usr/bin/php \
    && rm -rf /var/cache/apk/*

WORKDIR /var/www/html

ENTRYPOINT ["/sbin/tini", "--"]

CMD ["/usr/sbin/php-fpm7", "-R", "--nodaemonize"]

Have I forgotten something ?

best regards

@hernandev
Copy link
Member

Let me check and get back to you.

I don't actually use this extension so you can imagine I haven't tested it.

@hernandev
Copy link
Member

@vfalies confirmed bug, probably linked with Musl vs Glibc.

Unfortunately. I don't have a time frame to provide a fix, since it may be complicated to get working.

Do you actively use XML-RPC?

@hernandev hernandev added the bug label Jan 18, 2018
@vfalies
Copy link
Author

vfalies commented Jan 18, 2018

@hernandev thanks for your investigation.

For me it's not mandatory to use PHP 7.2 version with this extension, I can use 7.1 version whom worked correctly. Therefore, in my case, it's not a priority.

I have writed this issue to inform you.

@hernandev
Copy link
Member

@vfalies Sorry for the delay in the response.

I indeed found the issue on the very same day, but the solution implies breaking compatibility.

The issue.

There's a bug or incompatibility with PHP 7.2 and xmlrpc extension that only allows xmlrpc extension to work if the xml extension gets compiled within PHP instead of shared.

Solution

Bundle XML extension within the php7-common package.

Problems with that

People who have scripts for installing the xml extension will break if the package stops from being published.
Also, removing the package now, in favor of a release would mean resign the whole repository to invalidate old versions.

Possible Solution 1

Bundle xml extension and provide a placeholder, empty php7-xml package that installs nothing.

Possible Solution 2

Wait a little bit to get a new version that fixes the bug, but it may take quite some time.


Still haven't decided yet on an approach to this. I'll let you know within the next couple days.

@hernandev
Copy link
Member

@vfalies I'm going to bundle xml into the common/core package to solve this, sorry for taking long to act on this.

@vfalies
Copy link
Author

vfalies commented Mar 15, 2018

@hernandev Thank you very much, it's ok for me.

@vfalies vfalies closed this as completed Mar 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants