On Wednesday 09 May 2012, Jan Kaluža wrote:
> > I would favor the compatibility layer approach personally. I have
> > some code on CPAN that uses remote_ip, so I don't really want to
> > go change that to support 2.4 just yet.
> 
> If you find a way how to do it, tell me :). As I said, I think 90%
> of  httpd modules uses remote_ip/remote_addr in the meaning of
> useragent_ip/useragent_addr.
> 
> So, there's currently used conn_rec->remote_ip and new 
> request_rec->useragent_ip. I can't imagine how would you write
> some  layer to map current conn_rec->remote_ip to
> request_rec->remote_ip, since there's no way how to get particular
> request_rec from conn_rec. I just think it can't be done
> transparently and there will be need to change the modules
> anyway...

Also, conn_rec->remote_ip is probably the smaller issue compared to 
ap_requires() being gone. IMHO, there is no way to implement $r-
>requires() in a compatible way. So at least all modules doing 
authorization need be changed to use the new APIs.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@perl.apache.org
For additional commands, e-mail: dev-h...@perl.apache.org

Reply via email to