anshuwap / mollify

Automatically exported from code.google.com/p/mollify
0 stars 0 forks source link

Call to undefined function apache_request_headers() #417

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

with the latest mollify version 1.8.9 I get the error:
"call to undefined function apache_request_headers()"

The method is called from backend/include/Request.class.php

The problem is caused due to the fact that I'm running mollify in an FCGI 
environment with apache2.
With help of this post I could solve the problem for now:
http://stackoverflow.com/questions/2916232/call-to-undefined-function-apache-req
uest-headers
.. by putting the "replacement method" in the Request.class.php file

Best regards,
    Markus

Original issue reported on code.google.com by recht...@dotquality.de on 25 Jul 2012 at 11:03

GoogleCodeExporter commented 9 years ago
Thanks for reporting, I'll add this.

The replacement code did not look very optimal, so I guess I may put entire 
X-Forwarder-For -feature (as this is the only user of the apache headers) 
behind a setting.

Original comment by samuli.j...@gmail.com on 25 Jul 2012 at 7:13

GoogleCodeExporter commented 9 years ago
Fixed in 1.8.9.1

Original comment by samuli.j...@gmail.com on 26 Jul 2012 at 8:31