Skip to content

Commit 8af1c6c

Browse files
authored
Merge pull request #267 from thecodingmachine/support-php8.0-mongodb-swoole-zip-blackfire
Support more PHP 8.0 extensions
2 parents 6132554 + 2751569 commit 8af1c6c

File tree

14 files changed

+45
-5
lines changed

14 files changed

+45
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Minor changes
66

77
* **2021-09-22**
8+
* Support more PHP 8.0 extensions | Added : mongodb, swoole, zip and blackfire.
89
* Enhance builder | Use BuildKit, add header to blueprint exported files and start a Makefile for common build usages.
910

1011
### Initial

HELP.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# HELP
2+
3+
## Need help
4+
5+
* [ ] Script who test all available extensions in one pass
6+
* [ ] BuildKit is now use without trouble, for extend it, use of docker buildx bake may helpful
7+
* [ ] We need lighten the images
8+
* [ ] Link and document one tool who help create packaged app with the slim image
9+
10+
## Tips
11+
12+
### How to test extensions available
13+
14+
* Build the slim image
15+
* Run it with docker and try extensions with follow commands
16+
```bash
17+
docker run -it --rm thecodingmachine/php:8.1-v4-slim-apache sudo bash
18+
apt-get update
19+
apt-cache search --names-only php8.1-zip
20+
```
21+
* Pay attention of extensions installed by pickle (not listed on apt repo)
22+
23+
Some links with information updated :
24+
* [One list of php extensions supported in PHP 8.0](https://blog.remirepo.net/post/2020/09/21/PHP-extensions-status-with-upcoming-PHP-8.0)
25+
26+
### Compare list extensions between versions
27+
28+
```bash
29+
diff -q ./extensions/core ./extensions/8.0
30+
```

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ Below is a list of extensions available in this image:
157157
- *mcrypt* is not available anymore in PHP 7.3+
158158
- *weakref* is not compatible with PHP 7.3+ (but weak references were added to the PHP core in PHP 7.4)
159159
- *sybase* extension is not available in v4 (use v3)
160-
- *ev*, *event*, *gnupg*, *mongodb*, *rdkafka*, *swoole*, *uploadprogress*, *xmlrpc*, *blackfire* are not available in PHP 8.0+
160+
- *ev*, *event*, *gnupg*, *uploadprogress*, *xmlrpc* are not available in PHP 8.0+
161+
- *amqp*, *apcu*, *ast*, *ds*, *gettext*, *grpc*, *igbinary*, *imagick*, *mailparse*, *memcached*, *mongodb*, *msgpack*, *mysqli*, *pcov*, *rdkafka*, *redis*, *swoole*, *uploadprogress*, *uuid*, *xdebug*, *yaml* are not available in PHP 8.1+ (RC)
161162

162163
### Enabling/disabling extensions in the fat image
163164

build-and-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ RESULT=`docker run --rm -e CRON_SCHEDULE_1="* * * * * * *" -e CRON_COMMAND_1="wh
191191
#[[ "$?" = "1" ]]
192192
#set -e
193193

194-
if [[ "${PHP_VERSION}" != "8.0" ]] && [[ "${PHP_VERSION}" != "8.1" ]]; then
194+
if [[ "${PHP_VERSION}" != "8.1" ]]; then
195195
# Let's check that the "xdebug.client_host" contains a value different from "no value"
196196
docker run --rm -e PHP_EXTENSION_XDEBUG=1 thecodingmachine/php:${PHP_VERSION}-${BRANCH}-${BRANCH_VARIANT} php -i | grep xdebug.client_host| grep -v "no value"
197197

extensions/8.0/blackfire

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../core/blackfire

extensions/8.0/ev

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../core/ev

extensions/8.0/gnupg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../core/gnupg

extensions/8.0/mongodb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../core/mongodb

extensions/8.0/rdkafka

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../core/rdkafka

extensions/8.0/sqlite3

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../core/sqlite3/
1+
../core/sqlite3

0 commit comments

Comments
 (0)