Skip to content

Commit

Permalink
minor #30030 Use system wide memcached.so (tvlooy)
Browse files Browse the repository at this point in the history
This PR was merged into the 3.4 branch.

Discussion
----------

Use system wide memcached.so

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | WiP
| License       | MIT

requested by #29624 (comment)

let's see what travis is going to do with this ...

Commits
-------

8d171f4 Use system wide memcached.so
  • Loading branch information
nicolas-grekas committed Feb 1, 2019
2 parents 38d5528 + 8d171f4 commit baceb18
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions .travis.yml
Expand Up @@ -156,6 +156,7 @@ before_install:
echo hhvm.jit = 0 >> $INI
echo apc.enable_cli = 1 >> $INI
echo extension = redis.so >> $INI
echo extension = memcached.so >> $INI
if [[ $PHP = 5.* ]]; then
echo extension = memcache.so >> $INI
echo extension = mongo.so >> $INI
Expand Down Expand Up @@ -187,31 +188,6 @@ before_install:
tfold ext.apcu tpecl apcu-5.1.16 apcu.so $INI
tfold ext.mongodb tpecl mongodb-1.6.0alpha1 mongodb.so $INI
fi
if [[ $PHP == 7.3 ]]; then
# System libmemcached is missing sasl
LIBMEMCACHED_VERSION=1.0.18
wget "https://launchpad.net/libmemcached/1.0/${LIBMEMCACHED_VERSION}/+download/libmemcached-${LIBMEMCACHED_VERSION}.tar.gz" -O libmemcached-${LIBMEMCACHED_VERSION}.tar.gz
tar xvfz libmemcached-${LIBMEMCACHED_VERSION}.tar.gz
cd "libmemcached-${LIBMEMCACHED_VERSION}"
mkdir -p /opt/libmemcached/${LIBMEMCACHED_VERSION}
./configure --prefix="/opt/libmemcached/${LIBMEMCACHED_VERSION}" LDFLAGS="-lpthread"
make
make install
cd -
EXTMEMCACHED_VERSION=3.1.3
wget https://pecl.php.net/get/memcached-${EXTMEMCACHED_VERSION}.tgz
tar xzvf memcached-${EXTMEMCACHED_VERSION}.tgz
cd memcached-${EXTMEMCACHED_VERSION}
phpize
./configure --with-libmemcached-dir=/opt/libmemcached/${LIBMEMCACHED_VERSION}
make
sudo make install
cd -
fi
echo extension = memcached.so >> $INI
done
- |
Expand Down

0 comments on commit baceb18

Please sign in to comment.