diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f53fb92 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/nbproject/private/ diff --git a/index.php b/app/index.php similarity index 57% rename from index.php rename to app/index.php index e084865..17c9f02 100755 --- a/index.php +++ b/app/index.php @@ -1,6 +1,5 @@ + + org.netbeans.modules.php.project + + + nb-test + + + diff --git a/php/dockerfile b/php/dockerfile index 6dd2e36..548344c 100644 --- a/php/dockerfile +++ b/php/dockerfile @@ -2,7 +2,7 @@ FROM php:8.1-fpm # https://pecl.php.net/package/xdebug RUN pecl channel-update pecl.php.net && \ - pecl install xdebug-3.1.6 + pecl install xdebug-3.2.0 EXPOSE 9000 WORKDIR /var/www diff --git a/php/php b/php/php index d18cf4b..34d9b6b 100755 --- a/php/php +++ b/php/php @@ -1,7 +1,162 @@ #!/bin/bash -#echo ${BASH_ARGV[*]} -docker exec test-php php \ - -dxdebug.mode=debug \ - -dxdebug.start_with_request=1 \ - `basename ${BASH_ARGV[0]}` \ - "${@:1:$#-1}" + +# Welcome to amusement park! + +[[ "$1" = '--help' ]] || [[ "$1" = '-h' ]] && cat < [--map=:] [PHP_ARGS]