Skip to content

Commit

Permalink
Update composer.json to require bcmath
Browse files Browse the repository at this point in the history
I tried running GeoIP2 on a box without the BC Math PHP extension and got the error:

Fatal error: Call to undefined function MaxMind\Db\Reader\bcadd() in /home/vagrant/Akkroo/publish/vendor/maxmind-db/reader/src/MaxMind/Db/Reader/Decoder.php on line 252

The library should depend on ext-bcmath to ensure users do not run in to this problem.
  • Loading branch information
nrbrook committed Nov 12, 2013
1 parent 8bf8442 commit 530a207
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"require": {
"guzzle/guzzle": "3.*",
"maxmind-db/reader": "0.2.*",
"ext-bcmath":"*",
"php": ">=5.3.1"
},
"require-dev": {
Expand Down

0 comments on commit 530a207

Please sign in to comment.