Skip to content

Commit

Permalink
consistent php settings between development container and travis ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Vaughn committed Nov 22, 2020
1 parent c26bb20 commit 033085e
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ cache:
directories:
- vendor

before_install: phpenv config add development.ini

install: composer install

script:
Expand Down
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
&& docker-php-ext-enable xdebug zip
RUN rm /usr/local/etc/php/php.ini-*
ADD development.ini /usr/local/etc/php/php.ini
52 changes: 52 additions & 0 deletions development.ini
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions tests/CircularDependencyOne.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
*/
namespace modethirteen\OpenContainer\Tests;

use phpDocumentor\Reflection\DocBlock\Tags\Property;

/**
* Class CircularDependencyOne
* @package modethirteen\OpenContainer\Tests
Expand Down

0 comments on commit 033085e

Please sign in to comment.