Mantis - Quercus
Viewing Issue Advanced Details
3175 minor always 12-13-08 13:17 01-04-09 14:41
koreth  
 
urgent  
new 4.0.0  
open  
none    
none  
0003175: Backtraces contain odd paths when using URL rewriting
In my resin-web.xml:

<rewrite-dispatch>
  <forward regexp="^(.*)$" target="/html/$1" />
</rewrite-dispatch>

Then I have <webapp_root>/html/test/backtrace.php (note this is in a subdirectory):

<?php
include_once "<webapp_root>/lib/foo2.php";
function foo1() {
  print_r(debug_backtrace());
}
call_foo1();

And <webapp_root>/lib/foo2.php:

<?php
function call_foo1() {
  foo1();
}

Quercus prints a backtrace that has a path of <webapp_root>/html/test/lib/foo2.php rather than <webapp_root>/lib/foo2.php for the function call_foo2().

This only happens if the requested page is in a subdirectory of <webapp_root>/html; the paths look fine for files that are directly in the html directory.

There are no notes attached to this issue.