totara / totara-docker-dev

A docker setup to create a development environment for Totara Learn
MIT License
49 stars 32 forks source link

Build failure for PHP 7.3 - pecl/sqlsrv requires PHP (version >= 7.4.0), installed version is 7.3.33 #203

Closed derschatta closed 2 years ago

derschatta commented 2 years ago

Describe the bug When building the PHP 7.3 image there's the following error

 > [12/27] RUN pear config-set php_ini `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"` system     && pecl install sqlsrv     && pecl install pdo_sqlsrv:                                                                                                          
#16 0.302 config-set succeeded                                                                                                                                                                                                                                                    
#16 4.151 pecl/sqlsrv requires PHP (version >= 7.4.0), installed version is 7.3.33                                                                                                                                                                                                
#16 4.151 No valid packages found
#16 4.151 install failed
------
executor failed running [/bin/sh -c pear config-set php_ini `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"` system     && pecl install sqlsrv     && pecl install pdo_sqlsrv]: exit code: 1
ERROR: Service 'php-7.3' failed to build : Build failed

To Reproduce Steps to reproduce the behavior:

  1. run tbuild php-7.3

Expected behavior The build should run through successfully.

Additional context The sqlsrv package dropped support for PHP 7.3 in the newer version. The last version to still support it is 5.9.0. see https://github.com/microsoft/msphpsql/releases