this is the answer I was given...
PATHINFO works fine, except there is a php bug with it.
If your using php, php breaks it, and you probably need to have it look for $_SERVER["ORIG_PATH_INFO"] also, instead of just $_SERVER["PATH_INFO"]
A search/replace should get it working.