Skip to content

Commit

Permalink
Fix event extension installation
Browse files Browse the repository at this point in the history
This doesn't add the extension to php.ini if the installation fails.
  • Loading branch information
kelunik committed Dec 19, 2017
1 parent 3f08f61 commit 502b4be
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions travis/install-event.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/usr/bin/env bash

curl -LS https://pecl.php.net/get/event | 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();')";
curl -LS https://pecl.php.net/get/event | 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();')";

0 comments on commit 502b4be

Please sign in to comment.