acrcloud / acrcloud_sdk_php

28 stars 18 forks source link

Doesn't work with PHP7.1 #1

Open dtirer opened 6 years ago

dtirer commented 6 years ago

I'm trying to add the module for PHP7.1, but it seems to fail:

PHP Warning:  PHP Startup: acrcloud_extr_tool: Unable to initialize module
Module compiled with module API=20151012
PHP    compiled with module API=20160303
These options need to match
 in Unknown on line 0
phpinfo()
PHP Version => 7.1.10-1+ubuntu16.04.1+deb.sury.org+1
lucaspanik commented 5 years ago

I'm going through the same problem.

Docker image:

FROM php:7.1-apache

uname -a

Linux 223e464737aa 4.18.0-25-generic #26~18.04.1-Ubuntu SMP Thu Jun 27 07:28:31 UTC 2019 x86_64 GNU/Linux

php -v


PHP Warning:  PHP Startup: acrcloud_extr_tool: Unable to initialize module
Module compiled with module API=20170718
PHP    compiled with module API=20160303
These options need to match
 in Unknown on line 0
PHP 7.1.30 (cli) (built: Jul 13 2019 00:28:52) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
    with Xdebug v2.7.2, Copyright (c) 2002-2019, by Derick Rethans```