1
0
mirror of https://github.com/danog/amp.git synced 2024-11-30 04:29:08 +01:00
amp/travis/install-event.sh
Niklas Keller 82835325d0 Prevent ext-event 2.4.0RC1 and use 2.3.0 instead
PHP 7.2 in combination with ext-event 2.4.0RC1 throws exceptions with invalid file descriptors, while everything works fine with 2.3.0 or PHP < 7.2.

This is a temporary fix to get the build green again.

Relates to #221.
2018-04-30 22:47:14 +02:00

11 lines
306 B
Bash
Executable File

#!/usr/bin/env bash
curl -LS https://pecl.php.net/get/event-2.3.0 | tar -xz \
&& pushd event-* \
&& phpize \
&& ./configure --with-event-core --with-event-extra --with-event-pthreads \
&& make \
&& make install \
&& popd \
&& echo "extension=event.so" >> "$(php -r 'echo php_ini_loaded_file();')";