Google Cloud Platform

Updated . Posted . Visible to the public.

Vision API Client Libraries for PHP Show archive.org snapshot

Supports PHP ver > 7

Warning: include(Throwable.php): failed to open stream: No such file or directory
vendor/guzzlehttp/guzzle/src/Exception/GuzzleException.php(6): interface_exists('Throwable')

Throwable Show archive.org snapshot is a base interface made available in PHP7.

Requires PHP Extension bcmath

Symfony\Component\Debug\Exception\UndefinedFunctionException:
Attempted to call function "bccomp" from namespace "Google\Protobuf\Internal".

Install PHP7.1 bcmath extension:

[kiat@reporting ~]$ php --version
PHP 7.1.33 (cli) (built: Oct 23 2019 07:28:45) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.1.33, Copyright (c) 1999-2018, by Zend Technologies
[kiat@reporting ~]$ yum search php71 | grep bcmath
php71-php-bcmath.x86_64 : A module for PHP applications for using the bcmath
php71u-bcmath.x86_64 : A module for PHP applications for using the bcmath
[kiat@reporting ~]$ sudo yum --enablerepo=remi-php71 install php-bcmath
Loaded plugins: fastestmirror, langpacks
base                                                     | 3.6 kB     00:00
...
[kiat@reporting ~]$ sudo systemctl restart php-fpm nginx
kiatng
Last edit
kiatng
Posted by kiatng to RPA - ML (2019-12-02 01:27)