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

Actual PHP 8 support #34

Open
jakewhiteley opened this issue Feb 23, 2024 · 4 comments
Open

Actual PHP 8 support #34

jakewhiteley opened this issue Feb 23, 2024 · 4 comments

Comments

@jakewhiteley
Copy link

Hi I just tried to install the most recent version but couldn't:

 - ang3/php-odoo-api-client[v7.0.3, ..., v7.0.7] require ang3/php-xmlrpc-client ^1.0.2 -> satisfiable by ang3/php-xmlrpc-client[v1.0.2, v1.0.3]. 
    - ang3/php-odoo-api-client[v7.0.0, ..., v7.0.2] require php ^7.2 -> your php version (8.2.13) does not satisfy that requirement.
    - ang3/php-xmlrpc-client v1.0.2 require php ^7.2 -> your php version (8.2.13) does not satisfy that requirement.
    - ang3/php-xmlrpc-client v1.0.3 requires ext-xmlrpc * -> it is missing from your system. Install or enable PHP's xmlrpc extension.
    - Root composer.json requires ang3/php-odoo-api-client ^7.0 -> satisfiable by ang3/php-odoo-api-client[v7.0.0, ..., v7.0.7].

xmlrpc has been abandoned: https://pecl.php.net/package/xmlrpc, so I was wondering if you had plans to rewrite php-xmlrpc-client to work without ext-xmlrpc?

I had previously built an Odoo service (much simpler than yours) and had used https://github.com/gggeek/phpxmlrpc to get around the issue of ext-xmlrpc being abandonware.

Could this repo allow the user to specify a different XMLRPC client (such as the above phpxmlrpc library) as long as it followed a provided interface?

@jakewhiteley jakewhiteley changed the title PHP 8 support Actual PHP 8 support Feb 23, 2024
@SampoVirmasalo
Copy link

I'd be very pleased too if there would be xml-rpc client update for this.

@Ang3
Copy link
Owner

Ang3 commented Feb 26, 2024

Hi,

The next major version won't use XMLRPC because of PHP 8. You have to know that this extension is not provided by default in PHP 8+. Moreover, some deployment platforms do not provide it too (like platform.sh : https://docs.platform.sh/languages/php/extensions.html).

The version 8 of the client is about to be released with JSONRPC calls (branch 8.x). I suggest you to prepare your code from that branch. The only one extension needed is json.

I let this issue opened to write a XMLRPC "transport" in version 8 for legacy purposes. ;)

@svirmasalo
Copy link

Hi! Do you have any ideas of the schedule for version 8?

Can't wait! ✌️

@somegooser
Copy link

Hi any updates about this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants