@@ -215,7 +215,7 @@ func doPhpBuild() {
215215 phpExtConfigure = append (phpExtConfigure , "docker-php-ext-configure zip --with-libzip" )
216216 }
217217
218- if phpVersion >= "7.4" && phpVersion <= "8.3 " {
218+ if phpVersion >= "7.4" && phpVersion <= "8.4 " {
219219 phpExtConfigure = append (phpExtConfigure , "docker-php-ext-configure zip" )
220220 }
221221
@@ -227,7 +227,7 @@ func doPhpBuild() {
227227 }
228228
229229 if os .Getenv ("PHP_GD" ) == "yes" {
230- supportedVersions := []string {"7.4" , "8.0" , "8.1" , "8.2" , "8.3" }
230+ supportedVersions := []string {"7.4" , "8.0" , "8.1" , "8.2" , "8.3" , "8.4" }
231231 gdConfigure := "&& docker-php-ext-configure gd"
232232 if ! util .Contains (supportedVersions , phpVersion ) {
233233 gdConfigure += " --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/"
@@ -245,8 +245,8 @@ func doPhpBuild() {
245245 peclInstall = append (peclInstall , "amqp-1.11.0" )
246246 }
247247
248- if phpVersion >= "7.3 " && phpVersion <= "8.3 " {
249- peclInstall = append (peclInstall , "amqp-2.1.1 " )
248+ if phpVersion >= "7.4 " && phpVersion <= "8.4 " {
249+ peclInstall = append (peclInstall , "amqp-2.1.2 " )
250250 }
251251
252252 util .Sed ("__RABBIT_MQ__" , "&& echo 'extension=amqp.so' >> $$PHP_INI_DIR/conf.d/docker-php-ext-amqp.ini" + " \\ " , "config/php/Dockerfile" )
@@ -264,8 +264,8 @@ func doPhpBuild() {
264264 peclInstall = append (peclInstall , "mongodb-1.16.2" )
265265 }
266266
267- if phpVersion >= "7.4" && phpVersion <= "8.3 " {
268- peclInstall = append (peclInstall , "mongodb-1.17 .1" )
267+ if phpVersion >= "7.4" && phpVersion <= "8.4 " {
268+ peclInstall = append (peclInstall , "mongodb-1.20 .1" )
269269 }
270270
271271 if phpVersion != "7.2" {
@@ -284,12 +284,12 @@ func doPhpBuild() {
284284 }
285285
286286 if os .Getenv ("REDIS" ) == "yes" {
287- if phpVersion == "7.1" {
287+ if phpVersion >= "7.1" && phpVersion <= "7.3 " {
288288 peclInstall = append (peclInstall , "redis-5.3.7" )
289289 }
290290
291- if phpVersion >= "7.2 " && phpVersion <= "8.3 " {
292- peclInstall = append (peclInstall , "redis-6.0.2 " )
291+ if phpVersion >= "7.4 " && phpVersion <= "8.4 " {
292+ peclInstall = append (peclInstall , "redis-6.1.0 " )
293293 }
294294
295295 phpExtEnable = append (phpExtEnable , "redis" )
@@ -308,8 +308,8 @@ func doPhpBuild() {
308308 peclInstall = append (peclInstall , "xdebug-3.1.6" )
309309 }
310310
311- if phpVersion >= "8.0" && phpVersion <= "8.3 " {
312- peclInstall = append (peclInstall , "xdebug-3.3.1 " )
311+ if phpVersion >= "8.0" && phpVersion <= "8.4 " {
312+ peclInstall = append (peclInstall , "xdebug-3.4.0 " )
313313 }
314314
315315 util .Copy ("config/php/conf.d/xdebug.d4d" , "config/php/conf.d/xdebug.ini" )
@@ -324,7 +324,7 @@ func doPhpBuild() {
324324 util .AppendFile ("config/php/conf.d/xdebug.ini" , fmt .Sprintf ("\n xdebug.remote_connect_back = %s" , os .Getenv ("XDEBUG_REMOTE_CONNECT_BACK" )))
325325 }
326326
327- if phpVersion >= "7.1" && phpVersion <= "8.3 " {
327+ if phpVersion >= "7.1" && phpVersion <= "8.4 " {
328328 util .Sed ("__XDEBUG__" , "&& echo 'zend_extension=xdebug.so' >> $$PHP_INI_DIR/conf.d/docker-php-ext-xdebug.ini" + " \\ " , "config/php/Dockerfile" )
329329 } else {
330330 util .Sed ("__XDEBUG__" , "&& echo 'extension=xdebug.so' >> $$PHP_INI_DIR/conf.d/docker-php-ext-xdebug.ini" + " \\ " , "config/php/Dockerfile" )
0 commit comments