maxmind / MaxMind-DB-Reader-php

PHP Reader for the MaxMind DB Database Format
Apache License 2.0
640 stars 80 forks source link

error when install c extension for php7 #41

Closed timespaceuniverse closed 7 years ago

timespaceuniverse commented 8 years ago

after compiling and install of maxminddb . I start to config and install to get the maxminddb.so . but when i restart the php7 service . i get this error: NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/opt/remi/php70/root/usr/lib64/php/modules/maxminddb.so' - /opt/remi/php70/root/usr/lib64/php/modules/maxminddb.so: undefined symbol: zval_used_for_init in Unknown on line 0

oschwald commented 8 years ago

Are you sure you used the phpize for PHP 7 and not an older version that you may have installed? Also, are you using at least version 1.1.0 of this library?

timespaceuniverse commented 8 years ago

ok ,i will try your ideas.

timespaceuniverse commented 8 years ago

i want also ask you another question as my server has a lot of request per second. The geolite-city-2 db is around 100MB . 100MB * 400 request is large memory? (say i have 400 request per second ). Is there any problem for fast requests?

oschwald commented 8 years ago

If you are using the extension, the database is memory mapped, which is shared between open instances. 400 requests for second should not be a problem.

timespaceuniverse commented 8 years ago

Thank you very much

oschwald commented 7 years ago

Closing as it appears that you worked out the issue. Please let us know if that is not the case.

jd19007 commented 6 years ago

Im getting this error now as well with cPanel