File tree Expand file tree Collapse file tree 6 files changed +35
-3
lines changed Expand file tree Collapse file tree 6 files changed +35
-3
lines changed Original file line number Diff line number Diff line change 33## 1.8.0
44
55- Upgrade Imagick to version 7.1.1-38 and build with support for AVIF format (aom encoder).
6+ - Added support for [ MongoDB driver for PHP] ( https://pecl.php.net/package/mongodb ) 2.0.0
67
78## 1.7.2
89
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ functions:
6464| gnupg | `${bref-extra:gnupg-php-81}` |
6565| GMP | `${bref-extra:gmp-php-81}` |
6666| gRPC | `${bref-extra:grpc-php-81}` |
67- | h3 | `${bref-extra:h3-php-81}` |
67+ | h3 | `${bref-extra:h3-php-81}` |
6868| Igbinary | `${bref-extra:igbinary-php-81}` |
6969| Imagick | `${bref-extra:imagick-php-81}` |
7070| IMAP | `${bref-extra:imap-php-81}` |
@@ -73,7 +73,8 @@ functions:
7373| MaxMind DB | `${bref-extra:maxminddb-php-81}` |
7474| Memcache | `${bref-extra:memcache-php-81}` |
7575| Memcached | `${bref-extra:memcached-php-81}` |
76- | MongoDB | `${bref-extra:mongodb-php-81}` |
76+ | MongoDB v1.x | `${bref-extra:mongodb-php-81` |
77+ | MongoDB v2.x | `${bref-extra:mongodb2-php-81}` |
7778| MsgPack | `${bref-extra:msgpack-php-81}` |
7879| Newrelic | `${bref-extra:newrelic-php-81}` |
7980| ODBC Snowflake | `${bref-extra:odbc-snowflake-php-81}` |
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ ARG PHP_VERSION
22ARG BREF_VERSION
33FROM bref/build-php-$PHP_VERSION:$BREF_VERSION AS ext
44
5- RUN pecl install --force mongodb
5+ RUN pecl install --force mongodb-1.20.0
66RUN cp `php-config --extension-dir`/mongodb.so /tmp/mongodb.so
77RUN echo 'extension=mongodb.so' > /tmp/ext.ini
88
Original file line number Diff line number Diff line change 1+ ARG PHP_VERSION
2+ ARG BREF_VERSION
3+ FROM bref/build-php-$PHP_VERSION:$BREF_VERSION AS ext
4+
5+ RUN pecl install --force mongodb-2.0.0
6+ RUN cp `php-config --extension-dir`/mongodb.so /tmp/mongodb.so
7+ RUN echo 'extension=mongodb.so' > /tmp/ext.ini
8+
9+ # Build the final image with just the files we need
10+ FROM scratch
11+
12+ # Copy the things we installed to the final image
13+ COPY --from=ext /tmp/mongodb.so /opt/bref/extensions/mongodb.so
14+ COPY --from=ext /tmp/ext.ini /opt/bref/etc/php/conf.d/ext-mongodb.ini
Original file line number Diff line number Diff line change 1+ {
2+ "php" : [
3+ " 81" ,
4+ " 82" ,
5+ " 83" ,
6+ " 84"
7+ ]
8+ }
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ if (!class_exists ($ class = MongoDB \Driver \Manager::class)) {
4+ echo sprintf ('FAIL: Class "%s" does not exist. ' , $ class ).PHP_EOL ;
5+ exit (1 );
6+ }
7+
8+ exit (0 );
You can’t perform that action at this time.
0 commit comments