File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5050
5151# 5. Modules (with standard Lambda LD_LIBRARY_PATH)
5252LAMBDA_LD_PATH=" /opt/lib:/lib64:/usr/lib64"
53- MODULES=$( docker run --rm --platform " $PLATFORM " -e LD_LIBRARY_PATH=" $LAMBDA_LD_PATH " --entrypoint /opt/ymir/bin/php " $IMAGE " -m)
54- PHP_VER=$( docker run --rm --platform " $PLATFORM " -- entrypoint /opt/ymir/bin/php " $IMAGE " -r " echo PHP_VERSION_ID;" )
53+ MODULES=$( docker run --rm --platform " $PLATFORM " -e LD_LIBRARY_PATH=" $LAMBDA_LD_PATH " --entrypoint /opt/ymir/bin/php " $IMAGE " -m 2> /dev/null )
54+ PHP_VER=$( docker run --rm --platform " $PLATFORM " -e LD_LIBRARY_PATH= " $LAMBDA_LD_PATH " -- entrypoint /opt/ymir/bin/php " $IMAGE " -r " echo PHP_VERSION_ID;" 2> /dev/null )
5555
5656REQUIRED=(" apcu" " igbinary" " zstd" " imagick" " intl" " pdo_mysql" )
57- if [ " $PHP_VER " -ge 70400 ]; then
57+ if [ -n " $PHP_VER " ] && [ " $PHP_VER " -ge 70400 ]; then
5858 REQUIRED+=(" relay" " msgpack" )
5959else
6060 REQUIRED+=(" redis" )
You can’t perform that action at this time.
0 commit comments