mirror of
https://github.com/danog/parallel.git
synced 2024-11-29 20:29:00 +01:00
Custom php.ini for webserver
This commit is contained in:
parent
7ee97e2ef0
commit
6afbe00dd6
@ -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);
|
||||
}
|
||||
|
@ -1 +0,0 @@
|
||||
../vendor/amphp/sync/travis/install-pthreads.sh
|
12
travis/install-pthreads.sh
Executable file
12
travis/install-pthreads.sh
Executable 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();')"
|
Loading…
Reference in New Issue
Block a user