Skip to content

Commit 48e921a

Browse files
committed
Force 'E' to be present in php.ini so environment variables are picked up
This is needed as run-tests provides its own environment to tests using proc_open(). Since we use 'make tests', the only way of injecting environment variable usage is by forcing it for the instanciating php process, which we can only do via php.ini since we are running run-tests through the 'tests' make target.
1 parent 56d6d3a commit 48e921a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ before_install:
2424
- sudo apt-get install -y mongodb-org
2525
- sudo apt-get install gdb valgrind
2626
- sudo apt-get install cdbs debhelper build-essential python-lxml
27+
- php -r 'if ( ! ($f = php_ini_loaded_file())) { $f = PHP_CONFIG_FILE_PATH . "/php.ini"; } file_put_contents($f, "variables_order=EGPCS\n", FILE_APPEND); $a = file($f, FILE_IGNORE_NEW_LINES); var_dump($a[count($a)-1]);'
2728

2829
before_script:
2930
- ulimit -a

0 commit comments

Comments
 (0)