8000 minor #36932 Enable APCu for the php 8 build (derrabus) · symfony/symfony@acbaf00 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit acbaf00

Browse files
minor #36932 Enable APCu for the php 8 build (derrabus)
This PR was merged into the 3.4 branch. Discussion ---------- Enable APCu for the php 8 build | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | #36872 | License | MIT | Doc PR | N/A This PR enables APCu for the php 8 build on Travis. Since the latest version release on PECL produces a lot of runtime warnings, I'm pulling the latest master commit from github. Commits ------- e3e1558 Enable APCu for the php 8 build.
2 parents 5ebcd26 + e3e1558 commit acbaf00

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.travis.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,23 @@ before_install:
139139
}
140140
export -f tpecl
141141
142+
install_apcu_dev () {
143+
local ref=$1
144+
local INI=$2
145+
146+
wget https://github.com/krakjoe/apcu/archive/${ref}.zip
147+
unzip ${ref}.zip
148+
cd apcu-${ref}
149+
phpize
150+
./configure
151+
make
152+
mv modules/apcu.so $(php -r "echo ini_get('extension_dir');")
153+
echo 'extension = apcu.so' >> $INI
154+
cd ..
155+
rm -rf apcu-${ref} ${ref}.zip
156+
}
157+
export -f install_apcu_dev
158+
142159
- |
143160
# Install sigchild-enabled PHP to test the Process component on the lowest PHP matrix line
144161
if [[ ! $deps && $TRAVIS_PHP_VERSION = ${MIN_PHP%.*} && ! -d php-$MIN_PHP/sapi ]]; then
@@ -192,6 +209,7 @@ before_install:
192209
tfold ext.mongodb tpecl mongodb-1.6.0 mongodb.so $INI
193210
elif [[ $PHP = nightly ]]; then
194211
tfold ext.memcached tpecl memcached-3.1.5 memcached.so $INI
212+
tfold ext.apcu install_apcu_dev 9c36db45100d4d27ec33072f4be90f1f5a0108b7 $INI
195213
fi
196214
done
197215

0 commit comments

Comments
 (0)
0