Browse Source

* set default php version to 81 in quick scripts

master
parent
commit
2049580005
  1. 10
      bash/xdebug-start.sh
  2. 4
      dockerfiles/php-fpm/xdebug2/xdebug.sh
  3. 4
      dockerfiles/php-fpm/xdebug3/xdebug.sh

10
bash/xdebug-start.sh

@ -8,9 +8,19 @@ if [[ -z "${PHP_VERSION}" ]]; then PHP_VERSION=81; fi
POSSIBLE_XDEBUG_VERSION=xdebug2 POSSIBLE_XDEBUG_VERSION=xdebug2
echo "Choice PHP_VERSION: $PHP_VERSION"
if [[ $PHP_VERSION -ge 81 ]]; then if [[ $PHP_VERSION -ge 81 ]]; then
POSSIBLE_XDEBUG_VERSION=xdebug3 POSSIBLE_XDEBUG_VERSION=xdebug3
fi fi
echo "Choice POSSIBLE_XDEBUG_VERSION: $POSSIBLE_XDEBUG_VERSION"
echo
${DIR}/dockerfiles/php-fpm/${POSSIBLE_XDEBUG_VERSION}/xdebug.sh start ${PHP_VERSION} ${WITH_PROFILER} ${DIR}/dockerfiles/php-fpm/${POSSIBLE_XDEBUG_VERSION}/xdebug.sh start ${PHP_VERSION} ${WITH_PROFILER}
echo
${DIR}/dockerfiles/workspace/xdebug.sh start ${PHP_VERSION} ${WITH_PROFILER} ${DIR}/dockerfiles/workspace/xdebug.sh start ${PHP_VERSION} ${WITH_PROFILER}
echo

4
dockerfiles/php-fpm/xdebug2/xdebug.sh

@ -27,7 +27,7 @@ xdebug_status ()
xdebug_start () xdebug_start ()
{ {
echo 'Start xDebug'
echo 'Start xDebug2'
# And uncomment line with xdebug extension, thus enabling it # And uncomment line with xdebug extension, thus enabling it
ON_CMD="sed -i 's/^;zend_extension=/zend_extension=/g' /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini" ON_CMD="sed -i 's/^;zend_extension=/zend_extension=/g' /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini"
@ -48,7 +48,7 @@ xdebug_start ()
xdebug_stop () xdebug_stop ()
{ {
echo 'Stop xDebug'
echo 'Stop xDebug2'
# Comment out xdebug extension line # Comment out xdebug extension line
OFF_CMD="sed -i 's/^zend_extension=/;zend_extension=/g' /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini" OFF_CMD="sed -i 's/^zend_extension=/;zend_extension=/g' /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini"

4
dockerfiles/php-fpm/xdebug3/xdebug.sh

@ -27,7 +27,7 @@ xdebug_status ()
xdebug_start () xdebug_start ()
{ {
echo 'Start xDebug'
echo 'Start xDebug3'
# And uncomment line with xdebug extension, thus enabling it # And uncomment line with xdebug extension, thus enabling it
ON_CMD="sed -i 's/^;zend_extension=/zend_extension=/g' /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini" ON_CMD="sed -i 's/^;zend_extension=/zend_extension=/g' /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini"
@ -42,7 +42,7 @@ xdebug_start ()
xdebug_stop () xdebug_stop ()
{ {
echo 'Stop xDebug'
echo 'Stop xDebug3'
# Comment out xdebug extension line # Comment out xdebug extension line
OFF_CMD="sed -i 's/^zend_extension=/;zend_extension=/g' /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini" OFF_CMD="sed -i 's/^zend_extension=/;zend_extension=/g' /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini"

Loading…
Cancel
Save