Wednesday, October 22, 2008

Maxmind GeoIP Memory Leak

Configuration:
  • PHP 5.2.6
  • Pecl GEOIP 1.0.3
  • Geoip 1.4.4
It wasn't easy to find out, but finally I found the reason why our scripts eating up all the memory:
geoip_org_by_name() function currently has a memory leak. Hopefully Maxmind will fix it soon, until that we'll use my Memory Leak Protector class.

Submitted to the PECL module page.