Skip to content

Commit 2fc0a37

Browse files
committed
Updates to use a new MongoDB lib that supports php7.
1 parent 594fa94 commit 2fc0a37

5 files changed

Lines changed: 619 additions & 340 deletions

File tree

.travis.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
language: php
22
php:
3+
- 7.0
34
- 5.6
4-
- 5.4
5+
- 5.5
56
env:
6-
- EXT_VERSION=1.3.7 DB_PACKAGE=mongodb-10gen
7-
- EXT_VERSION=1.3.7 DB_PACKAGE=mongodb-org
8-
- EXT_VERSION=1.5.4 DB_PACKAGE=mongodb-10gen
9-
- EXT_VERSION=1.5.4 DB_PACKAGE=mongodb-org
7+
- EXT_VERSION=1.0 DB_PACKAGE=mongodb-10gen
8+
- EXT_VERSION=1.0 DB_PACKAGE=mongodb-org
9+
- EXT_VERSION=1.1 DB_PACKAGE=mongodb-10gen
10+
- EXT_VERSION=1.1 DB_PACKAGE=mongodb-org
1011
services:
1112
- redis-server
1213
before_install:
@@ -16,7 +17,7 @@ before_install:
1617
- "sudo apt-get install ${DB_PACKAGE}"
1718
before_script:
1819
- composer self-update || true
19-
- yes '' | pecl install -f mongo-${EXT_VERSION}
20+
- yes '' | pecl install -f mongodb-${EXT_VERSION}
2021
# wait for mongo, start is only needed for 2.4 package, see http://tldp.org/LDP/abs/html/devref1.html for description of this syntax.
2122
- sudo service mongodb start; bash -c 'while ! exec 6<>/dev/tcp/localhost/27017; do echo "$(date) - still trying to connect to mongo"; sleep 1; done'
2223
script: ./build.php

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
],
2222
"license": "MIT",
2323
"require": {
24-
"php": "~5.4",
24+
"php": "~5.5||~7.0",
2525
"dominionenterprises/util": "~1.4",
2626
"guzzle/http": "~3.7",
2727
"ext-curl": "*",
@@ -32,11 +32,11 @@
3232
"satooshi/php-coveralls": "~0.6.1",
3333
"squizlabs/php_codesniffer": "~1.5",
3434
"dominionenterprises/dws-coding-standard": "~1.1",
35-
"ext-mongo": ">=1.3.5,<2.0",
35+
"mongodb/mongodb": "^1.0.0",
3636
"predis/predis": "~1.0"
3737
},
3838
"suggests": {
39-
"ext-mongo": ">=1.3.5,<2.0",
39+
"mongodb/mongodb": "^1.0.0",
4040
"predis/predis": "~1.0"
4141
},
4242
"autoload": {

0 commit comments

Comments
 (0)