From 033085ec715ece11ddcb126d3ad3dcb340a7b0bc Mon Sep 17 00:00:00 2001 From: Andy Vaughn Date: Sat, 21 Nov 2020 19:43:59 -0800 Subject: [PATCH] consistent php settings between development container and travis ci --- .travis.yml | 2 ++ Dockerfile | 6 ++-- development.ini | 52 +++++++++++++++++++++++++++++++++ tests/CircularDependencyOne.php | 2 ++ 4 files changed, 60 insertions(+), 2 deletions(-) create mode 100644 development.ini diff --git a/.travis.yml b/.travis.yml index 693cb9f..9f7d6d5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,8 @@ cache: directories: - vendor +before_install: phpenv config add development.ini + install: composer install script: diff --git a/Dockerfile b/Dockerfile index e6fce6c..0bd6788 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,9 +6,11 @@ RUN apt-get update && apt-get install -y \ libzip-dev \ unzip -# php interpreter +# php ENV PHP_PECL_XDEBUG_VERSION=2.9.8 ENV PHP_PECL_ZIP_VERSION=1.19.1 RUN pecl install xdebug-${PHP_PECL_XDEBUG_VERSION} \ && pecl install zip-${PHP_PECL_ZIP_VERSION} \ - && docker-php-ext-enable xdebug zip \ No newline at end of file + && docker-php-ext-enable xdebug zip +RUN rm /usr/local/etc/php/php.ini-* +ADD development.ini /usr/local/etc/php/php.ini \ No newline at end of file diff --git a/development.ini b/development.ini new file mode 100644 index 0000000..a4f0989 --- /dev/null +++ b/development.ini @@ -0,0 +1,52 @@ +[PHP] +allow_call_time_pass_reference = Off +allow_url_fopen = Off +allow_url_include = Off +asp_tags = Off +auto_globals_jit = On +default_mimetype = "text/html" +default_socket_timeout = 60 +display_errors = Off +display_startup_errors = Off +enable_dl = Off +engine = On +error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR|E_PARSE +expose_php = On +file_uploads = On +html_errors = Off +ignore_repeated_errors = Off +ignore_repeated_source = Off +implicit_flush = Off +log_errors = On +log_errors_max_len = 1024 +magic_quotes_gpc = Off +magic_quotes_runtime = Off +magic_quotes_sybase = Off +max_execution_time = 30 +max_input_time = 60 +memory_limit = 128M +output_buffering = 4096 +post_max_size = 256M +precision = 14 +register_argc_argv = Off +register_globals = Off +register_long_arrays = Off +report_memleaks = On +request_order = "GP" +safe_mode = Off +serialize_precision = 100 +short_open_tag = Off +unserialize_callback_func = +upload_max_filesize = 256M +variables_order = "GPCS" +y2k_compliance = On +zlib.output_compression = Off + +[Date] +date.timezone = UTC + +[Syslog] +define_syslog_variables = Off + +[bcmath] +bcmath.scale = 0 diff --git a/tests/CircularDependencyOne.php b/tests/CircularDependencyOne.php index a9bcca6..c3d2501 100644 --- a/tests/CircularDependencyOne.php +++ b/tests/CircularDependencyOne.php @@ -16,6 +16,8 @@ */ namespace modethirteen\OpenContainer\Tests; +use phpDocumentor\Reflection\DocBlock\Tags\Property; + /** * Class CircularDependencyOne * @package modethirteen\OpenContainer\Tests