Closed nrbrook closed 10 years ago
Thanks for the report. This should be done in the MaxMind DB repo as GeoIP2 only requires bcmath indirectly.
Thanks, I created https://github.com/nrbrook/MaxMind-DB-Reader-php/commit/fbdcbdecd7f606499f391b162cefb25a5eef266c on the MaxMind DB repo
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.