-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from boesing/feature/php81
PHP 8.1 support
- Loading branch information
Showing
21 changed files
with
588 additions
and
1,396 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ | |
/phpcs.xml export-ignore | ||
/phpunit.xml.dist export-ignore | ||
/test/ export-ignore | ||
/autoload-dev/ export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,8 @@ | |
"mongodb", | ||
"mysql", | ||
"pgsql" | ||
] | ||
], | ||
"ignore_php_platform_requirements": { | ||
"8.1": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
PHP_VERSION="$1" | ||
|
||
if ! [[ "${PHP_VERSION}" =~ 8\.1 ]]; then | ||
echo "MongoDB extension is only installed from source for PHP 8.1, ${PHP_VERSION} detected." | ||
exit 0; | ||
fi | ||
|
||
set +e | ||
|
||
CURRENT_WORKING_DIRECTORY=$(pwd) | ||
|
||
cd $TMPDIR | ||
git clone https://github.com/mongodb/mongo-php-driver | ||
cd mongo-php-driver | ||
|
||
git submodule deinit --all -f | ||
git submodule update --init | ||
phpize | ||
./configure | ||
make | ||
make install | ||
|
||
echo "extension=mongodb.so" > /etc/php/${PHP_VERSION}/mods-available/mongodb.ini | ||
|
||
cd $CURRENT_WORKING_DIRECTORY | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
WORKING_DIRECTORY=$2 | ||
JOB=$3 | ||
PHP_VERSION=$(echo "${JOB}" | jq -r '.php') | ||
|
||
${WORKING_DIRECTORY}/.laminas-ci/install-mongodb-extension-from-source.sh "${PHP_VERSION}" || exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
if (\PHP_VERSION_ID < 80100) { | ||
#[Attribute(Attribute::TARGET_METHOD)] | ||
final class ReturnTypeWillChange | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.