It worked prior to 5.18 because the stringification used to happen only when passing the environment to child processes.
An alternative would be ensuring that +GlobalRequest is turned on for /eg, which in turn would allow use of Apache2::RequestUtil->request (although per bug 1579219 I at least would prefer that the check be wrapped well enough so that mod_perl remains an optional dependency for OpenSRF :) )
Using %ENV to pass the request object around won't work for Perl 5.18 and later, as stuff assigned to %ENV gets immediately stringified:
http:// perldoc. perl.org/ perlvar. html#%25ENV
It worked prior to 5.18 because the stringification used to happen only when passing the environment to child processes.
An alternative would be ensuring that +GlobalRequest is turned on for /eg, which in turn would allow use of Apache2: :RequestUtil- >request (although per bug 1579219 I at least would prefer that the check be wrapped well enough so that mod_perl remains an optional dependency for OpenSRF :) )
Removing pullrequest for now.