fix SIGSEGV on apache 2.2
Merge pull request #1 from hiboma/fix-SIEGSEGV-on-2.2

fix SIGSEGV on apache 2.2