googleapis / testing-infra-docker

Docker images for testing Google client libraries.
Apache License 2.0
18 stars 34 forks source link

fix: add pdo_sqlsrv version to avoid php warnings #373

Closed vishwarajanand closed 7 months ago

vishwarajanand commented 7 months ago

Adding version number for a relatively sparingly php extension pdp_sqlsrv.

Currently, since there's is no version of pdo_sqlsrv, it fetches latest which is not supported on php8.0 everytime php process loads it emits a warning like below:

root@9e9dd96a511f:/# php -v
PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_sqlsrv.so' (tried: /opt/php80/lib/php/extensions/no-debug-non-zts-20200930/pdo_sqlsrv.so (/opt/php80/lib/php/extensions/no-debug-non-zts-20200930/pdo_sqlsrv.so: cannot open shared object file: No such file or directory), /opt/php80/lib/php/extensions/no-debug-non-zts-20200930/pdo_sqlsrv.so.so (/opt/php80/lib/php/extensions/no-debug-non-zts-20200930/pdo_sqlsrv.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP 8.0.28 (cli) (built: Apr  2 2024 15:51:21) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.28, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.28, Copyright (c), by Zend Technologies
root@9e9dd96a511f:/#