logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

[Issue 209] New - printStackTrace() in GenericException shows wrong depende: msg#00000

Subject: [Issue 209] New - printStackTrace() in GenericException shows wrong dependences
http://cowiki.tigris.org/issues/show_bug.cgi?id=209
                  Issue #:|209
                  Summary:|printStackTrace() in GenericException shows wrong
                          |dependences
                Component:|cowiki
                  Version:|current
                 Platform:|All
               OS/Version:|All
                      URL:|
                   Status:|NEW
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P5
             Subcomponent:|Project
              Assigned to:|paulha
              Reported by:|dgorski






------- Additional comments from 
dgorski-jqHnx1hy4Dsdnm+yROfE0A@xxxxxxxxxxxxxxxx Mon Mar 14 21:44:58 -0800 2005 
-------
The basic exception interceptor in GenericException generates wrong dependences
and shows wrong file numbers with wrong classes/methods/files. This occurs
probably due to a changed PHPs output of Exception::getTrace().

To reproduce it, go somewhere deep in the code and do a

  throw GenericException("foo");

you will see that paths/methods/classes etc. are wrong.

An example I ran into:

* class Config throws ConfigNotReadableException in line 81
* method Registry::getIniConfigAsArray() rethrows in line 205
* method Registry::getTplConf() rethrows in line 158
* method Registry::setTemplate() rethrows in line 104
* method Registry::__construct() rethrows in line 55
* method RuntimeContext::getInstance() rethrows in line 121
* in file core.base.php ->getRegistry() rethrows in line 99
* in file index.php include_once() terminates in line 74

"* method Registry::getIniConfigAsArray() rethrows in line 205" is wrong, it's
not Registry's method, it's a method the Config class.

Besides this is also wrong:

"* in file core.base.php ->getRegistry() rethrows in line 99", as it shouldn't
point "->".



<Prev in Thread] Current Thread [Next in Thread>