1
0
mirror of https://github.com/danog/parallel.git synced 2024-11-26 12:24:40 +01:00

Custom php.ini for webserver

This commit is contained in:
Daniil Gentili 2020-02-11 23:52:07 +01:00
parent 7ee97e2ef0
commit 6afbe00dd6
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 13 additions and 2 deletions

View File

@ -16,7 +16,7 @@ class ProcessWebTest extends AsyncTestCase
private static $proc;
public static function setUpBeforeClass(): void
{
self::$proc = \proc_open(self::locateBinary()." -S localhost:8080", [2 => ['pipe', 'r']], $pipes, $root = \realpath(__DIR__.'/../../'));
self::$proc = \proc_open(self::locateBinary()." -S localhost:8080", [2 => ['pipe', 'r']], $pipes, $root = \realpath(__DIR__.'/../../'), ['PHPRC' => '/tmp']);
while (!@\file_get_contents('http://localhost:8080/composer.json')) {
\usleep(500);
}

View File

@ -1 +0,0 @@
../vendor/amphp/sync/travis/install-pthreads.sh

12
travis/install-pthreads.sh Executable file
View File

@ -0,0 +1,12 @@
#!/usr/bin/env bash
git clone https://github.com/krakjoe/pthreads;
pushd pthreads;
git checkout master;
phpize;
./configure;
make;
make install;
popd;
cp "$(php -r 'echo php_ini_loaded_file();')" /tmp
echo "extension=pthreads.so" >> "$(php -r 'echo php_ini_loaded_file();')"