in reply to Apache handler passing

It would seem that in routine A it's quite possible that $r->prev isn't set as you test it in assigning $request_uri but in the next line you pass $r->prev to verify without testing it at all. The error suggests that $r->prev is not set.

cheers,

J